@hawksightco/hawk-sdk 1.2.91 → 1.2.93

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.
@@ -160,9 +160,6 @@ export type IndexYieldFarming = {
160
160
  }
161
161
  ];
162
162
  };
163
- "relations": [
164
- "authority"
165
- ];
166
163
  },
167
164
  {
168
165
  "name": "farm";
@@ -205,9 +202,6 @@ export type IndexYieldFarming = {
205
202
  }
206
203
  ];
207
204
  };
208
- "relations": [
209
- "authority"
210
- ];
211
205
  },
212
206
  {
213
207
  "name": "strategy";
@@ -2312,9 +2306,6 @@ export type IndexYieldFarming = {
2312
2306
  "name": "ownerFee";
2313
2307
  "isMut": true;
2314
2308
  "isSigner": false;
2315
- "docs": [
2316
- "Owner fee account (Hawksight)"
2317
- ];
2318
2309
  }
2319
2310
  ];
2320
2311
  "args": [];
@@ -2326,9 +2317,6 @@ export type IndexYieldFarming = {
2326
2317
  "name": "state";
2327
2318
  "isMut": true;
2328
2319
  "isSigner": false;
2329
- "docs": [
2330
- "Hawksight state account"
2331
- ];
2332
2320
  "pda": {
2333
2321
  "seeds": [
2334
2322
  {
@@ -2343,17 +2331,11 @@ export type IndexYieldFarming = {
2343
2331
  "name": "farm";
2344
2332
  "isMut": true;
2345
2333
  "isSigner": false;
2346
- "docs": [
2347
- "Hawksight multi-index farm"
2348
- ];
2349
2334
  },
2350
2335
  {
2351
2336
  "name": "user";
2352
2337
  "isMut": true;
2353
2338
  "isSigner": false;
2354
- "docs": [
2355
- "User PDA relative to farm"
2356
- ];
2357
2339
  "pda": {
2358
2340
  "seeds": [
2359
2341
  {
@@ -2374,49 +2356,31 @@ export type IndexYieldFarming = {
2374
2356
  }
2375
2357
  ];
2376
2358
  };
2377
- "relations": [
2378
- "authority"
2379
- ];
2380
2359
  },
2381
2360
  {
2382
2361
  "name": "authority";
2383
2362
  "isMut": false;
2384
2363
  "isSigner": true;
2385
- "docs": [
2386
- "User wallet"
2387
- ];
2388
2364
  },
2389
2365
  {
2390
2366
  "name": "userReward";
2391
2367
  "isMut": true;
2392
2368
  "isSigner": false;
2393
- "docs": [
2394
- "User wallet reward account"
2395
- ];
2396
2369
  },
2397
2370
  {
2398
2371
  "name": "ownerReward";
2399
2372
  "isMut": true;
2400
2373
  "isSigner": false;
2401
- "docs": [
2402
- "Owner reward account"
2403
- ];
2404
2374
  },
2405
2375
  {
2406
2376
  "name": "creatorReward";
2407
2377
  "isMut": true;
2408
2378
  "isSigner": false;
2409
- "docs": [
2410
- "Farm creator reward account"
2411
- ];
2412
2379
  },
2413
2380
  {
2414
2381
  "name": "redemptionToken";
2415
2382
  "isMut": true;
2416
2383
  "isSigner": false;
2417
- "docs": [
2418
- "User pda rewards token (tokens to withdraw)"
2419
- ];
2420
2384
  },
2421
2385
  {
2422
2386
  "name": "extraRewardVault";
@@ -2427,42 +2391,27 @@ export type IndexYieldFarming = {
2427
2391
  "name": "userExtraVault";
2428
2392
  "isMut": true;
2429
2393
  "isSigner": false;
2430
- "docs": [
2431
- "User wallet extra reward account"
2432
- ];
2433
2394
  },
2434
2395
  {
2435
2396
  "name": "systemProgram";
2436
2397
  "isMut": false;
2437
2398
  "isSigner": false;
2438
- "docs": [
2439
- "System program account"
2440
- ];
2441
2399
  },
2442
2400
  {
2443
2401
  "name": "tokenProgram";
2444
2402
  "isMut": false;
2445
2403
  "isSigner": false;
2446
- "docs": [
2447
- "Token program account"
2448
- ];
2449
2404
  },
2450
2405
  {
2451
2406
  "name": "clock";
2452
2407
  "isMut": false;
2453
2408
  "isSigner": false;
2454
- "docs": [
2455
- "Clock sysvar"
2456
- ];
2457
2409
  }
2458
2410
  ];
2459
2411
  "args": [];
2460
2412
  },
2461
2413
  {
2462
2414
  "name": "newUser";
2463
- "docs": [
2464
- "Create index yield farming user"
2465
- ];
2466
2415
  "accounts": [
2467
2416
  {
2468
2417
  "name": "farm";
@@ -2593,13 +2542,6 @@ export type IndexYieldFarming = {
2593
2542
  },
2594
2543
  {
2595
2544
  "name": "newStrategy";
2596
- "docs": [
2597
- "Create new strategy",
2598
- "",
2599
- "0 - Saber farm strategy (not yet implemented)",
2600
- "1 - Quarry merge mine",
2601
- "2 - Solend"
2602
- ];
2603
2545
  "accounts": [];
2604
2546
  "args": [
2605
2547
  {
@@ -2610,13 +2552,6 @@ export type IndexYieldFarming = {
2610
2552
  },
2611
2553
  {
2612
2554
  "name": "newStrategyUser";
2613
- "docs": [
2614
- "Create new user on given strategy",
2615
- "",
2616
- "0 - Saber farm strategy (not yet implemented)",
2617
- "1 - Quarry merge mine`",
2618
- "2 - Sunny merge mine (not yet implemented)"
2619
- ];
2620
2555
  "accounts": [];
2621
2556
  "args": [
2622
2557
  {
@@ -2627,49 +2562,31 @@ export type IndexYieldFarming = {
2627
2562
  },
2628
2563
  {
2629
2564
  "name": "swapOrca";
2630
- "docs": [
2631
- "Perform orca swap"
2632
- ];
2633
2565
  "accounts": [
2634
2566
  {
2635
2567
  "name": "orcaSwapProgram";
2636
2568
  "isMut": false;
2637
2569
  "isSigner": false;
2638
- "docs": [
2639
- "Orca SPL Swap Program"
2640
- ];
2641
2570
  },
2642
2571
  {
2643
2572
  "name": "tokenProgramId";
2644
2573
  "isMut": false;
2645
2574
  "isSigner": false;
2646
- "docs": [
2647
- "Token Program"
2648
- ];
2649
2575
  },
2650
2576
  {
2651
2577
  "name": "swap";
2652
2578
  "isMut": false;
2653
2579
  "isSigner": false;
2654
- "docs": [
2655
- "Orca Swap AMM ID"
2656
- ];
2657
2580
  },
2658
2581
  {
2659
2582
  "name": "authority";
2660
2583
  "isMut": false;
2661
2584
  "isSigner": false;
2662
- "docs": [
2663
- "AMM authority account"
2664
- ];
2665
2585
  },
2666
2586
  {
2667
2587
  "name": "userPda";
2668
2588
  "isMut": true;
2669
2589
  "isSigner": false;
2670
- "docs": [
2671
- "User PDA (Multi-index farm user)"
2672
- ];
2673
2590
  "pda": {
2674
2591
  "seeds": [
2675
2592
  {
@@ -2700,49 +2617,31 @@ export type IndexYieldFarming = {
2700
2617
  "name": "source";
2701
2618
  "isMut": true;
2702
2619
  "isSigner": false;
2703
- "docs": [
2704
- "Token account input"
2705
- ];
2706
2620
  },
2707
2621
  {
2708
2622
  "name": "swapSource";
2709
2623
  "isMut": true;
2710
2624
  "isSigner": false;
2711
- "docs": [
2712
- "Token account where input goes (mint must be equal with source)"
2713
- ];
2714
2625
  },
2715
2626
  {
2716
2627
  "name": "swapDestination";
2717
2628
  "isMut": true;
2718
2629
  "isSigner": false;
2719
- "docs": [
2720
- "Token account where output comes from (mint must be equal with destination)"
2721
- ];
2722
2630
  },
2723
2631
  {
2724
2632
  "name": "destination";
2725
2633
  "isMut": true;
2726
2634
  "isSigner": false;
2727
- "docs": [
2728
- "Token account output"
2729
- ];
2730
2635
  },
2731
2636
  {
2732
2637
  "name": "poolMint";
2733
2638
  "isMut": true;
2734
2639
  "isSigner": false;
2735
- "docs": [
2736
- "Swap LP Mint"
2737
- ];
2738
2640
  },
2739
2641
  {
2740
2642
  "name": "poolFee";
2741
2643
  "isMut": true;
2742
2644
  "isSigner": false;
2743
- "docs": [
2744
- "Fee account (based on destination mint)"
2745
- ];
2746
2645
  }
2747
2646
  ];
2748
2647
  "args": [
@@ -2758,49 +2657,31 @@ export type IndexYieldFarming = {
2758
2657
  },
2759
2658
  {
2760
2659
  "name": "swapPartialOrca";
2761
- "docs": [
2762
- "Perform orca swap (partial swap)"
2763
- ];
2764
2660
  "accounts": [
2765
2661
  {
2766
2662
  "name": "orcaSwapProgram";
2767
2663
  "isMut": false;
2768
2664
  "isSigner": false;
2769
- "docs": [
2770
- "Orca SPL Swap Program"
2771
- ];
2772
2665
  },
2773
2666
  {
2774
2667
  "name": "tokenProgramId";
2775
2668
  "isMut": false;
2776
2669
  "isSigner": false;
2777
- "docs": [
2778
- "Token Program"
2779
- ];
2780
2670
  },
2781
2671
  {
2782
2672
  "name": "swap";
2783
2673
  "isMut": false;
2784
2674
  "isSigner": false;
2785
- "docs": [
2786
- "Orca Swap AMM ID"
2787
- ];
2788
2675
  },
2789
2676
  {
2790
2677
  "name": "authority";
2791
2678
  "isMut": false;
2792
2679
  "isSigner": false;
2793
- "docs": [
2794
- "AMM authority account"
2795
- ];
2796
2680
  },
2797
2681
  {
2798
2682
  "name": "userPda";
2799
2683
  "isMut": true;
2800
2684
  "isSigner": false;
2801
- "docs": [
2802
- "User PDA (Multi-index farm user)"
2803
- ];
2804
2685
  "pda": {
2805
2686
  "seeds": [
2806
2687
  {
@@ -2831,49 +2712,31 @@ export type IndexYieldFarming = {
2831
2712
  "name": "source";
2832
2713
  "isMut": true;
2833
2714
  "isSigner": false;
2834
- "docs": [
2835
- "Token account input"
2836
- ];
2837
2715
  },
2838
2716
  {
2839
2717
  "name": "swapSource";
2840
2718
  "isMut": true;
2841
2719
  "isSigner": false;
2842
- "docs": [
2843
- "Token account where input goes (mint must be equal with source)"
2844
- ];
2845
2720
  },
2846
2721
  {
2847
2722
  "name": "swapDestination";
2848
2723
  "isMut": true;
2849
2724
  "isSigner": false;
2850
- "docs": [
2851
- "Token account where output comes from (mint must be equal with destination)"
2852
- ];
2853
2725
  },
2854
2726
  {
2855
2727
  "name": "destination";
2856
2728
  "isMut": true;
2857
2729
  "isSigner": false;
2858
- "docs": [
2859
- "Token account output"
2860
- ];
2861
2730
  },
2862
2731
  {
2863
2732
  "name": "poolMint";
2864
2733
  "isMut": true;
2865
2734
  "isSigner": false;
2866
- "docs": [
2867
- "Swap LP Mint"
2868
- ];
2869
2735
  },
2870
2736
  {
2871
2737
  "name": "poolFee";
2872
2738
  "isMut": true;
2873
2739
  "isSigner": false;
2874
- "docs": [
2875
- "Fee account (based on destination mint)"
2876
- ];
2877
2740
  }
2878
2741
  ];
2879
2742
  "args": [
@@ -2889,17 +2752,11 @@ export type IndexYieldFarming = {
2889
2752
  },
2890
2753
  {
2891
2754
  "name": "saberSupplyLiquidity";
2892
- "docs": [
2893
- "Perform token swap"
2894
- ];
2895
2755
  "accounts": [
2896
2756
  {
2897
2757
  "name": "saberSwapProgram";
2898
2758
  "isMut": false;
2899
2759
  "isSigner": false;
2900
- "docs": [
2901
- "Saber stable swap program"
2902
- ];
2903
2760
  },
2904
2761
  {
2905
2762
  "name": "user";
@@ -2908,25 +2765,16 @@ export type IndexYieldFarming = {
2908
2765
  "name": "tokenProgram";
2909
2766
  "isMut": false;
2910
2767
  "isSigner": false;
2911
- "docs": [
2912
- "The spl_token program."
2913
- ];
2914
2768
  },
2915
2769
  {
2916
2770
  "name": "swapAuthority";
2917
2771
  "isMut": false;
2918
2772
  "isSigner": false;
2919
- "docs": [
2920
- "The authority of the swap."
2921
- ];
2922
2773
  },
2923
2774
  {
2924
2775
  "name": "userAuthority";
2925
2776
  "isMut": true;
2926
2777
  "isSigner": false;
2927
- "docs": [
2928
- "The authority of the user."
2929
- ];
2930
2778
  "pda": {
2931
2779
  "seeds": [
2932
2780
  {
@@ -2952,25 +2800,16 @@ export type IndexYieldFarming = {
2952
2800
  "name": "userWallet";
2953
2801
  "isMut": false;
2954
2802
  "isSigner": true;
2955
- "docs": [
2956
- "Transaction signer"
2957
- ];
2958
2803
  },
2959
2804
  {
2960
2805
  "name": "farm";
2961
2806
  "isMut": false;
2962
2807
  "isSigner": false;
2963
- "docs": [
2964
- "Multi-index farm (conatains farm asset infos)"
2965
- ];
2966
2808
  },
2967
2809
  {
2968
2810
  "name": "swap";
2969
2811
  "isMut": false;
2970
2812
  "isSigner": false;
2971
- "docs": [
2972
- "Swap AMM ID."
2973
- ];
2974
2813
  }
2975
2814
  ];
2976
2815
  },
@@ -2981,17 +2820,11 @@ export type IndexYieldFarming = {
2981
2820
  "name": "user";
2982
2821
  "isMut": true;
2983
2822
  "isSigner": false;
2984
- "docs": [
2985
- "The token account associated with the user."
2986
- ];
2987
2823
  },
2988
2824
  {
2989
2825
  "name": "reserve";
2990
2826
  "isMut": true;
2991
2827
  "isSigner": false;
2992
- "docs": [
2993
- "The token account for the pool's reserves of this token."
2994
- ];
2995
2828
  }
2996
2829
  ];
2997
2830
  },
@@ -3002,17 +2835,11 @@ export type IndexYieldFarming = {
3002
2835
  "name": "user";
3003
2836
  "isMut": true;
3004
2837
  "isSigner": false;
3005
- "docs": [
3006
- "The token account associated with the user."
3007
- ];
3008
2838
  },
3009
2839
  {
3010
2840
  "name": "reserve";
3011
2841
  "isMut": true;
3012
2842
  "isSigner": false;
3013
- "docs": [
3014
- "The token account for the pool's reserves of this token."
3015
- ];
3016
2843
  }
3017
2844
  ];
3018
2845
  },
@@ -3020,17 +2847,11 @@ export type IndexYieldFarming = {
3020
2847
  "name": "poolMint";
3021
2848
  "isMut": true;
3022
2849
  "isSigner": false;
3023
- "docs": [
3024
- "The pool mint of the swap."
3025
- ];
3026
2850
  },
3027
2851
  {
3028
2852
  "name": "outputLp";
3029
2853
  "isMut": true;
3030
2854
  "isSigner": false;
3031
- "docs": [
3032
- "The output account for LP tokens."
3033
- ];
3034
2855
  }
3035
2856
  ];
3036
2857
  "args": [
@@ -3042,17 +2863,11 @@ export type IndexYieldFarming = {
3042
2863
  },
3043
2864
  {
3044
2865
  "name": "saberUnsupplyLiquidity";
3045
- "docs": [
3046
- "Perform token swap"
3047
- ];
3048
2866
  "accounts": [
3049
2867
  {
3050
2868
  "name": "saberSwapProgram";
3051
2869
  "isMut": false;
3052
2870
  "isSigner": false;
3053
- "docs": [
3054
- "Saber stable swap program"
3055
- ];
3056
2871
  },
3057
2872
  {
3058
2873
  "name": "user";
@@ -3061,25 +2876,16 @@ export type IndexYieldFarming = {
3061
2876
  "name": "tokenProgram";
3062
2877
  "isMut": false;
3063
2878
  "isSigner": false;
3064
- "docs": [
3065
- "The spl_token program."
3066
- ];
3067
2879
  },
3068
2880
  {
3069
2881
  "name": "swapAuthority";
3070
2882
  "isMut": false;
3071
2883
  "isSigner": false;
3072
- "docs": [
3073
- "The authority of the swap."
3074
- ];
3075
2884
  },
3076
2885
  {
3077
2886
  "name": "userAuthority";
3078
2887
  "isMut": true;
3079
2888
  "isSigner": false;
3080
- "docs": [
3081
- "The authority of the user."
3082
- ];
3083
2889
  "pda": {
3084
2890
  "seeds": [
3085
2891
  {
@@ -3105,25 +2911,16 @@ export type IndexYieldFarming = {
3105
2911
  "name": "userWallet";
3106
2912
  "isMut": false;
3107
2913
  "isSigner": true;
3108
- "docs": [
3109
- "Transaction signer"
3110
- ];
3111
2914
  },
3112
2915
  {
3113
2916
  "name": "farm";
3114
2917
  "isMut": false;
3115
2918
  "isSigner": false;
3116
- "docs": [
3117
- "Multi-index farm (conatains farm asset infos)"
3118
- ];
3119
2919
  },
3120
2920
  {
3121
2921
  "name": "swap";
3122
2922
  "isMut": false;
3123
2923
  "isSigner": false;
3124
- "docs": [
3125
- "Swap AMM ID."
3126
- ];
3127
2924
  }
3128
2925
  ];
3129
2926
  },
@@ -3131,35 +2928,16 @@ export type IndexYieldFarming = {
3131
2928
  "name": "poolMint";
3132
2929
  "isMut": true;
3133
2930
  "isSigner": false;
3134
- "docs": [
3135
- "The pool mint of the swap."
3136
- ];
3137
2931
  },
3138
2932
  {
3139
2933
  "name": "inputLp";
3140
2934
  "isMut": true;
3141
2935
  "isSigner": false;
3142
- "docs": [
3143
- "The input (user)'s LP token account"
3144
- ];
3145
2936
  },
3146
2937
  {
3147
2938
  "name": "quoteReserves";
3148
2939
  "isMut": true;
3149
2940
  "isSigner": false;
3150
- "docs": [
3151
- "The TokenAccount holding the swap's reserves of quote tokens; i.e., the token not being withdrawn.",
3152
- "",
3153
- "- If withdrawing token A, this is `swap_info.token_b.reserves`.",
3154
- "- If withdrawing token B, this is `swap_info.token_a.reserves`.",
3155
- "",
3156
- "These reserves are needed for the withdraw_one instruction since the",
3157
- "StableSwap `D` invariant requires both the base and quote reserves",
3158
- "to determine how many tokens are paid out to users withdrawing from",
3159
- "the swap.",
3160
- "",
3161
- "*For more info, see [stable_swap_client::state::SwapTokenInfo::reserves].*"
3162
- ];
3163
2941
  },
3164
2942
  {
3165
2943
  "name": "output";
@@ -3171,17 +2949,11 @@ export type IndexYieldFarming = {
3171
2949
  "name": "user";
3172
2950
  "isMut": true;
3173
2951
  "isSigner": false;
3174
- "docs": [
3175
- "The token account associated with the user."
3176
- ];
3177
2952
  },
3178
2953
  {
3179
2954
  "name": "reserve";
3180
2955
  "isMut": true;
3181
2956
  "isSigner": false;
3182
- "docs": [
3183
- "The token account for the pool's reserves of this token."
3184
- ];
3185
2957
  }
3186
2958
  ];
3187
2959
  },
@@ -3189,17 +2961,11 @@ export type IndexYieldFarming = {
3189
2961
  "name": "fees";
3190
2962
  "isMut": true;
3191
2963
  "isSigner": false;
3192
- "docs": [
3193
- "The token account for the fees associated with the token."
3194
- ];
3195
2964
  },
3196
2965
  {
3197
2966
  "name": "ownerFee";
3198
2967
  "isMut": true;
3199
2968
  "isSigner": false;
3200
- "docs": [
3201
- "Owner fee account (Hawksight)"
3202
- ];
3203
2969
  }
3204
2970
  ];
3205
2971
  }
@@ -3213,17 +2979,11 @@ export type IndexYieldFarming = {
3213
2979
  },
3214
2980
  {
3215
2981
  "name": "wrapUsdcToUsdc9";
3216
- "docs": [
3217
- "Wrap USDC to USDC-9"
3218
- ];
3219
2982
  "accounts": [
3220
2983
  {
3221
2984
  "name": "userPda";
3222
2985
  "isMut": false;
3223
2986
  "isSigner": false;
3224
- "docs": [
3225
- "User PDA account"
3226
- ];
3227
2987
  "pda": {
3228
2988
  "seeds": [
3229
2989
  {
@@ -3244,90 +3004,57 @@ export type IndexYieldFarming = {
3244
3004
  }
3245
3005
  ];
3246
3006
  };
3247
- "relations": [
3248
- "authority"
3249
- ];
3250
3007
  },
3251
3008
  {
3252
3009
  "name": "authority";
3253
3010
  "isMut": true;
3254
3011
  "isSigner": true;
3255
- "docs": [
3256
- "User wallet"
3257
- ];
3258
3012
  },
3259
3013
  {
3260
3014
  "name": "wrapper";
3261
3015
  "isMut": false;
3262
3016
  "isSigner": false;
3263
- "docs": [
3264
- "Wrapper account."
3265
- ];
3266
3017
  },
3267
3018
  {
3268
3019
  "name": "wrapperMint";
3269
3020
  "isMut": true;
3270
3021
  "isSigner": false;
3271
- "docs": [
3272
- "Mint of the wrapper."
3273
- ];
3274
3022
  },
3275
3023
  {
3276
3024
  "name": "wrapperUnderlyingTokens";
3277
3025
  "isMut": true;
3278
3026
  "isSigner": false;
3279
- "docs": [
3280
- "Wrapper's token account containing the underlying tokens."
3281
- ];
3282
3027
  },
3283
3028
  {
3284
3029
  "name": "userUnderlyingTokens";
3285
3030
  "isMut": true;
3286
3031
  "isSigner": false;
3287
- "docs": [
3288
- "User's token account for the underlying tokens."
3289
- ];
3290
3032
  },
3291
3033
  {
3292
3034
  "name": "userWrappedTokens";
3293
3035
  "isMut": true;
3294
3036
  "isSigner": false;
3295
- "docs": [
3296
- "User's token account for wrapped tokens."
3297
- ];
3298
3037
  },
3299
3038
  {
3300
3039
  "name": "tokenProgram";
3301
3040
  "isMut": false;
3302
3041
  "isSigner": false;
3303
- "docs": [
3304
- "SPL Token program."
3305
- ];
3306
3042
  },
3307
3043
  {
3308
3044
  "name": "usdc9WrapperProgram";
3309
3045
  "isMut": false;
3310
3046
  "isSigner": false;
3311
- "docs": [
3312
- "USDC-9 Wrapper Program"
3313
- ];
3314
3047
  }
3315
3048
  ];
3316
3049
  "args": [];
3317
3050
  },
3318
3051
  {
3319
3052
  "name": "unwrapUsdc9ToUsdc";
3320
- "docs": [
3321
- "Unwrap USDC-9 to USDC"
3322
- ];
3323
3053
  "accounts": [
3324
3054
  {
3325
3055
  "name": "userPda";
3326
3056
  "isMut": false;
3327
3057
  "isSigner": false;
3328
- "docs": [
3329
- "User PDA account"
3330
- ];
3331
3058
  "pda": {
3332
3059
  "seeds": [
3333
3060
  {
@@ -3348,90 +3075,57 @@ export type IndexYieldFarming = {
3348
3075
  }
3349
3076
  ];
3350
3077
  };
3351
- "relations": [
3352
- "authority"
3353
- ];
3354
3078
  },
3355
3079
  {
3356
3080
  "name": "authority";
3357
3081
  "isMut": true;
3358
3082
  "isSigner": true;
3359
- "docs": [
3360
- "User wallet"
3361
- ];
3362
3083
  },
3363
3084
  {
3364
3085
  "name": "wrapper";
3365
3086
  "isMut": false;
3366
3087
  "isSigner": false;
3367
- "docs": [
3368
- "Wrapper account."
3369
- ];
3370
3088
  },
3371
3089
  {
3372
3090
  "name": "wrapperMint";
3373
3091
  "isMut": true;
3374
3092
  "isSigner": false;
3375
- "docs": [
3376
- "Mint of the wrapper."
3377
- ];
3378
3093
  },
3379
3094
  {
3380
3095
  "name": "wrapperUnderlyingTokens";
3381
3096
  "isMut": true;
3382
3097
  "isSigner": false;
3383
- "docs": [
3384
- "Wrapper's token account containing the underlying tokens."
3385
- ];
3386
3098
  },
3387
3099
  {
3388
3100
  "name": "userUnderlyingTokens";
3389
3101
  "isMut": true;
3390
3102
  "isSigner": false;
3391
- "docs": [
3392
- "User's token account for the underlying tokens."
3393
- ];
3394
3103
  },
3395
3104
  {
3396
3105
  "name": "userWrappedTokens";
3397
3106
  "isMut": true;
3398
3107
  "isSigner": false;
3399
- "docs": [
3400
- "User's token account for wrapped tokens."
3401
- ];
3402
3108
  },
3403
3109
  {
3404
3110
  "name": "tokenProgram";
3405
3111
  "isMut": false;
3406
3112
  "isSigner": false;
3407
- "docs": [
3408
- "SPL Token program."
3409
- ];
3410
3113
  },
3411
3114
  {
3412
3115
  "name": "usdc9WrapperProgram";
3413
3116
  "isMut": false;
3414
3117
  "isSigner": false;
3415
- "docs": [
3416
- "USDC-9 Wrapper Program"
3417
- ];
3418
3118
  }
3419
3119
  ];
3420
3120
  "args": [];
3421
3121
  },
3422
3122
  {
3423
3123
  "name": "wrapSolToWsol";
3424
- "docs": [
3425
- "Wrap SOL to wSOL"
3426
- ];
3427
3124
  "accounts": [
3428
3125
  {
3429
3126
  "name": "userPda";
3430
3127
  "isMut": false;
3431
3128
  "isSigner": false;
3432
- "docs": [
3433
- "User PDA account"
3434
- ];
3435
3129
  "pda": {
3436
3130
  "seeds": [
3437
3131
  {
@@ -3452,25 +3146,16 @@ export type IndexYieldFarming = {
3452
3146
  }
3453
3147
  ];
3454
3148
  };
3455
- "relations": [
3456
- "authority"
3457
- ];
3458
3149
  },
3459
3150
  {
3460
3151
  "name": "authority";
3461
3152
  "isMut": true;
3462
3153
  "isSigner": true;
3463
- "docs": [
3464
- "User wallet"
3465
- ];
3466
3154
  },
3467
3155
  {
3468
3156
  "name": "userPdaLamport";
3469
3157
  "isMut": true;
3470
3158
  "isSigner": false;
3471
- "docs": [
3472
- "User PDA lamport account"
3473
- ];
3474
3159
  "pda": {
3475
3160
  "seeds": [
3476
3161
  {
@@ -3491,66 +3176,42 @@ export type IndexYieldFarming = {
3491
3176
  "name": "userWrappedSol";
3492
3177
  "isMut": true;
3493
3178
  "isSigner": false;
3494
- "docs": [
3495
- "User's token account for wrapped tokens."
3496
- ];
3497
3179
  },
3498
3180
  {
3499
3181
  "name": "wsolMint";
3500
3182
  "isMut": false;
3501
3183
  "isSigner": false;
3502
- "docs": [
3503
- "WSOL Mint"
3504
- ];
3505
3184
  },
3506
3185
  {
3507
3186
  "name": "rent";
3508
3187
  "isMut": false;
3509
3188
  "isSigner": false;
3510
- "docs": [
3511
- "Rent sysvar"
3512
- ];
3513
3189
  },
3514
3190
  {
3515
3191
  "name": "tokenProgram";
3516
3192
  "isMut": false;
3517
3193
  "isSigner": false;
3518
- "docs": [
3519
- "SPL Token program."
3520
- ];
3521
3194
  },
3522
3195
  {
3523
3196
  "name": "associatedTokenProgram";
3524
3197
  "isMut": false;
3525
3198
  "isSigner": false;
3526
- "docs": [
3527
- "Associated token program required to create user_wrapped_sol"
3528
- ];
3529
3199
  },
3530
3200
  {
3531
3201
  "name": "systemProgram";
3532
3202
  "isMut": false;
3533
3203
  "isSigner": false;
3534
- "docs": [
3535
- "System Program"
3536
- ];
3537
3204
  }
3538
3205
  ];
3539
3206
  "args": [];
3540
3207
  },
3541
3208
  {
3542
3209
  "name": "unwrapWsolToSol";
3543
- "docs": [
3544
- "Unwrap wSOL to SOL"
3545
- ];
3546
3210
  "accounts": [
3547
3211
  {
3548
3212
  "name": "userPda";
3549
3213
  "isMut": false;
3550
3214
  "isSigner": false;
3551
- "docs": [
3552
- "User PDA account"
3553
- ];
3554
3215
  "pda": {
3555
3216
  "seeds": [
3556
3217
  {
@@ -3571,25 +3232,16 @@ export type IndexYieldFarming = {
3571
3232
  }
3572
3233
  ];
3573
3234
  };
3574
- "relations": [
3575
- "authority"
3576
- ];
3577
3235
  },
3578
3236
  {
3579
3237
  "name": "authority";
3580
3238
  "isMut": true;
3581
3239
  "isSigner": true;
3582
- "docs": [
3583
- "User wallet"
3584
- ];
3585
3240
  },
3586
3241
  {
3587
3242
  "name": "userPdaLamport";
3588
3243
  "isMut": true;
3589
3244
  "isSigner": false;
3590
- "docs": [
3591
- "User PDA lamport account"
3592
- ];
3593
3245
  "pda": {
3594
3246
  "seeds": [
3595
3247
  {
@@ -3610,62 +3262,37 @@ export type IndexYieldFarming = {
3610
3262
  "name": "userWrappedSol";
3611
3263
  "isMut": true;
3612
3264
  "isSigner": false;
3613
- "docs": [
3614
- "User's token account for wrapped tokens."
3615
- ];
3616
3265
  },
3617
3266
  {
3618
3267
  "name": "wsolMint";
3619
3268
  "isMut": false;
3620
3269
  "isSigner": false;
3621
- "docs": [
3622
- "WSOL Mint"
3623
- ];
3624
3270
  },
3625
3271
  {
3626
3272
  "name": "rent";
3627
3273
  "isMut": false;
3628
3274
  "isSigner": false;
3629
- "docs": [
3630
- "Rent sysvar"
3631
- ];
3632
3275
  },
3633
3276
  {
3634
3277
  "name": "tokenProgram";
3635
3278
  "isMut": false;
3636
3279
  "isSigner": false;
3637
- "docs": [
3638
- "SPL Token program."
3639
- ];
3640
3280
  },
3641
3281
  {
3642
3282
  "name": "associatedTokenProgram";
3643
3283
  "isMut": false;
3644
3284
  "isSigner": false;
3645
- "docs": [
3646
- "Associated token program required to create user_wrapped_sol"
3647
- ];
3648
3285
  },
3649
3286
  {
3650
3287
  "name": "systemProgram";
3651
3288
  "isMut": false;
3652
3289
  "isSigner": false;
3653
- "docs": [
3654
- "System Program"
3655
- ];
3656
3290
  }
3657
3291
  ];
3658
3292
  "args": [];
3659
3293
  },
3660
3294
  {
3661
3295
  "name": "claimRewards";
3662
- "docs": [
3663
- "Claim rewards from strategy",
3664
- "",
3665
- "0 - Saber farm strategy (not yet implemented)",
3666
- "1 - Quarry merge mine (disabled, must use iyf_strategy_quarry directly)",
3667
- "2 - ?"
3668
- ];
3669
3296
  "accounts": [];
3670
3297
  "args": [
3671
3298
  {
@@ -3676,9 +3303,6 @@ export type IndexYieldFarming = {
3676
3303
  },
3677
3304
  {
3678
3305
  "name": "marinadeDeposit";
3679
- "docs": [
3680
- "Deposit to marinade"
3681
- ];
3682
3306
  "accounts": [
3683
3307
  {
3684
3308
  "name": "common";
@@ -3687,17 +3311,11 @@ export type IndexYieldFarming = {
3687
3311
  "name": "farm";
3688
3312
  "isMut": false;
3689
3313
  "isSigner": false;
3690
- "docs": [
3691
- "Index yield farm account"
3692
- ];
3693
3314
  },
3694
3315
  {
3695
3316
  "name": "userPda";
3696
3317
  "isMut": true;
3697
3318
  "isSigner": false;
3698
- "docs": [
3699
- "User PDA where we store last action state"
3700
- ];
3701
3319
  "pda": {
3702
3320
  "seeds": [
3703
3321
  {
@@ -3723,73 +3341,46 @@ export type IndexYieldFarming = {
3723
3341
  "name": "payer";
3724
3342
  "isMut": true;
3725
3343
  "isSigner": true;
3726
- "docs": [
3727
- "Authority account (transaction payer)"
3728
- ];
3729
3344
  },
3730
3345
  {
3731
3346
  "name": "state";
3732
3347
  "isMut": true;
3733
3348
  "isSigner": false;
3734
- "docs": [
3735
- "Marinade state account"
3736
- ];
3737
3349
  },
3738
3350
  {
3739
3351
  "name": "msolMint";
3740
3352
  "isMut": true;
3741
3353
  "isSigner": false;
3742
- "docs": [
3743
- "Marinade SOL Mint"
3744
- ];
3745
3354
  },
3746
3355
  {
3747
3356
  "name": "liqPoolSolLegPda";
3748
3357
  "isMut": true;
3749
3358
  "isSigner": false;
3750
- "docs": [
3751
- "Marinade SOL Liquid Pool"
3752
- ];
3753
3359
  },
3754
3360
  {
3755
3361
  "name": "liqPoolMsolLeg";
3756
3362
  "isMut": true;
3757
3363
  "isSigner": false;
3758
- "docs": [
3759
- "Marinade mSOL Liquid Pool"
3760
- ];
3761
3364
  },
3762
3365
  {
3763
3366
  "name": "systemProgram";
3764
3367
  "isMut": false;
3765
3368
  "isSigner": false;
3766
- "docs": [
3767
- "System program"
3768
- ];
3769
3369
  },
3770
3370
  {
3771
3371
  "name": "tokenProgram";
3772
3372
  "isMut": false;
3773
3373
  "isSigner": false;
3774
- "docs": [
3775
- "Token program"
3776
- ];
3777
3374
  },
3778
3375
  {
3779
3376
  "name": "marinadeProgram";
3780
3377
  "isMut": false;
3781
3378
  "isSigner": false;
3782
- "docs": [
3783
- "Marinade program"
3784
- ];
3785
3379
  },
3786
3380
  {
3787
3381
  "name": "rent";
3788
3382
  "isMut": false;
3789
3383
  "isSigner": false;
3790
- "docs": [
3791
- "Rent sysvar"
3792
- ];
3793
3384
  }
3794
3385
  ];
3795
3386
  },
@@ -3797,25 +3388,16 @@ export type IndexYieldFarming = {
3797
3388
  "name": "liqPoolMsolLegAuthority";
3798
3389
  "isMut": false;
3799
3390
  "isSigner": false;
3800
- "docs": [
3801
- "Marinade mSOL Liquidity authority account"
3802
- ];
3803
3391
  },
3804
3392
  {
3805
3393
  "name": "reservePda";
3806
3394
  "isMut": true;
3807
3395
  "isSigner": false;
3808
- "docs": [
3809
- "Marinade SOL reserve account"
3810
- ];
3811
3396
  },
3812
3397
  {
3813
3398
  "name": "transferFrom";
3814
3399
  "isMut": true;
3815
3400
  "isSigner": false;
3816
- "docs": [
3817
- "Source lamport (PDA owned by IYF)"
3818
- ];
3819
3401
  "pda": {
3820
3402
  "seeds": [
3821
3403
  {
@@ -3838,26 +3420,17 @@ export type IndexYieldFarming = {
3838
3420
  "name": "mintTo";
3839
3421
  "isMut": true;
3840
3422
  "isSigner": false;
3841
- "docs": [
3842
- "Destination mSOL"
3843
- ];
3844
3423
  },
3845
3424
  {
3846
3425
  "name": "msolMintAuthority";
3847
3426
  "isMut": false;
3848
3427
  "isSigner": false;
3849
- "docs": [
3850
- "Marinade SOL Mint Authority"
3851
- ];
3852
3428
  }
3853
3429
  ];
3854
3430
  "args": [];
3855
3431
  },
3856
3432
  {
3857
3433
  "name": "marinadeWithdraw";
3858
- "docs": [
3859
- "Withdraw from marinade"
3860
- ];
3861
3434
  "accounts": [
3862
3435
  {
3863
3436
  "name": "common";
@@ -3866,17 +3439,11 @@ export type IndexYieldFarming = {
3866
3439
  "name": "farm";
3867
3440
  "isMut": false;
3868
3441
  "isSigner": false;
3869
- "docs": [
3870
- "Index yield farm account"
3871
- ];
3872
3442
  },
3873
3443
  {
3874
3444
  "name": "userPda";
3875
3445
  "isMut": true;
3876
3446
  "isSigner": false;
3877
- "docs": [
3878
- "User PDA where we store last action state"
3879
- ];
3880
3447
  "pda": {
3881
3448
  "seeds": [
3882
3449
  {
@@ -3902,73 +3469,46 @@ export type IndexYieldFarming = {
3902
3469
  "name": "payer";
3903
3470
  "isMut": true;
3904
3471
  "isSigner": true;
3905
- "docs": [
3906
- "Authority account (transaction payer)"
3907
- ];
3908
3472
  },
3909
3473
  {
3910
3474
  "name": "state";
3911
3475
  "isMut": true;
3912
3476
  "isSigner": false;
3913
- "docs": [
3914
- "Marinade state account"
3915
- ];
3916
3477
  },
3917
3478
  {
3918
3479
  "name": "msolMint";
3919
3480
  "isMut": true;
3920
3481
  "isSigner": false;
3921
- "docs": [
3922
- "Marinade SOL Mint"
3923
- ];
3924
3482
  },
3925
3483
  {
3926
3484
  "name": "liqPoolSolLegPda";
3927
3485
  "isMut": true;
3928
3486
  "isSigner": false;
3929
- "docs": [
3930
- "Marinade SOL Liquid Pool"
3931
- ];
3932
3487
  },
3933
3488
  {
3934
3489
  "name": "liqPoolMsolLeg";
3935
3490
  "isMut": true;
3936
3491
  "isSigner": false;
3937
- "docs": [
3938
- "Marinade mSOL Liquid Pool"
3939
- ];
3940
3492
  },
3941
3493
  {
3942
3494
  "name": "systemProgram";
3943
3495
  "isMut": false;
3944
3496
  "isSigner": false;
3945
- "docs": [
3946
- "System program"
3947
- ];
3948
3497
  },
3949
3498
  {
3950
3499
  "name": "tokenProgram";
3951
3500
  "isMut": false;
3952
3501
  "isSigner": false;
3953
- "docs": [
3954
- "Token program"
3955
- ];
3956
3502
  },
3957
3503
  {
3958
3504
  "name": "marinadeProgram";
3959
3505
  "isMut": false;
3960
3506
  "isSigner": false;
3961
- "docs": [
3962
- "Marinade program"
3963
- ];
3964
3507
  },
3965
3508
  {
3966
3509
  "name": "rent";
3967
3510
  "isMut": false;
3968
3511
  "isSigner": false;
3969
- "docs": [
3970
- "Rent sysvar"
3971
- ];
3972
3512
  }
3973
3513
  ];
3974
3514
  },
@@ -3976,25 +3516,16 @@ export type IndexYieldFarming = {
3976
3516
  "name": "treasuryMsolAccount";
3977
3517
  "isMut": true;
3978
3518
  "isSigner": false;
3979
- "docs": [
3980
- "Marinade mSol treasury account"
3981
- ];
3982
3519
  },
3983
3520
  {
3984
3521
  "name": "getMsolFrom";
3985
3522
  "isMut": true;
3986
3523
  "isSigner": false;
3987
- "docs": [
3988
- "Source mSOL"
3989
- ];
3990
3524
  },
3991
3525
  {
3992
3526
  "name": "transferSolTo";
3993
3527
  "isMut": true;
3994
3528
  "isSigner": false;
3995
- "docs": [
3996
- "Destination lamport"
3997
- ];
3998
3529
  "pda": {
3999
3530
  "seeds": [
4000
3531
  {
@@ -4025,9 +3556,6 @@ export type IndexYieldFarming = {
4025
3556
  },
4026
3557
  {
4027
3558
  "name": "solendDeposit";
4028
- "docs": [
4029
- "Solend deposit"
4030
- ];
4031
3559
  "accounts": [
4032
3560
  {
4033
3561
  "name": "transferAuthority";
@@ -4059,33 +3587,21 @@ export type IndexYieldFarming = {
4059
3587
  "name": "strategy";
4060
3588
  "isMut": false;
4061
3589
  "isSigner": false;
4062
- "docs": [
4063
- "Strategy account to derive strategy user account"
4064
- ];
4065
3590
  },
4066
3591
  {
4067
3592
  "name": "payer";
4068
3593
  "isMut": false;
4069
3594
  "isSigner": true;
4070
- "docs": [
4071
- "Transaction signer and authorized owner of mm_owner account"
4072
- ];
4073
3595
  },
4074
3596
  {
4075
3597
  "name": "sourceToken";
4076
3598
  "isMut": true;
4077
3599
  "isSigner": false;
4078
- "docs": [
4079
- "Source liquidity (deposit) / collateral (withdraw)"
4080
- ];
4081
3600
  },
4082
3601
  {
4083
3602
  "name": "destinationToken";
4084
3603
  "isMut": true;
4085
3604
  "isSigner": false;
4086
- "docs": [
4087
- "Destination collateral (deposit) / liquidity (withdraw)"
4088
- ];
4089
3605
  },
4090
3606
  {
4091
3607
  "name": "reserve";
@@ -4140,9 +3656,6 @@ export type IndexYieldFarming = {
4140
3656
  "name": "tokenProgram";
4141
3657
  "isMut": false;
4142
3658
  "isSigner": false;
4143
- "docs": [
4144
- "[anchor_spl::token] program."
4145
- ];
4146
3659
  },
4147
3660
  {
4148
3661
  "name": "strategyProgram";
@@ -4153,17 +3666,11 @@ export type IndexYieldFarming = {
4153
3666
  "name": "farm";
4154
3667
  "isMut": false;
4155
3668
  "isSigner": false;
4156
- "docs": [
4157
- "Index yield farming multi-index farm account"
4158
- ];
4159
3669
  },
4160
3670
  {
4161
3671
  "name": "ownerFee";
4162
3672
  "isMut": true;
4163
3673
  "isSigner": false;
4164
- "docs": [
4165
- "Owner fee account (Hawksight)"
4166
- ];
4167
3674
  }
4168
3675
  ];
4169
3676
  "args": [
@@ -4175,9 +3682,6 @@ export type IndexYieldFarming = {
4175
3682
  },
4176
3683
  {
4177
3684
  "name": "solendWithdraw";
4178
- "docs": [
4179
- "Solend withdraw"
4180
- ];
4181
3685
  "accounts": [
4182
3686
  {
4183
3687
  "name": "transferAuthority";
@@ -4209,33 +3713,21 @@ export type IndexYieldFarming = {
4209
3713
  "name": "strategy";
4210
3714
  "isMut": false;
4211
3715
  "isSigner": false;
4212
- "docs": [
4213
- "Strategy account to derive strategy user account"
4214
- ];
4215
3716
  },
4216
3717
  {
4217
3718
  "name": "payer";
4218
3719
  "isMut": false;
4219
3720
  "isSigner": true;
4220
- "docs": [
4221
- "Transaction signer and authorized owner of mm_owner account"
4222
- ];
4223
3721
  },
4224
3722
  {
4225
3723
  "name": "sourceToken";
4226
3724
  "isMut": true;
4227
3725
  "isSigner": false;
4228
- "docs": [
4229
- "Source liquidity (deposit) / collateral (withdraw)"
4230
- ];
4231
3726
  },
4232
3727
  {
4233
3728
  "name": "destinationToken";
4234
3729
  "isMut": true;
4235
3730
  "isSigner": false;
4236
- "docs": [
4237
- "Destination collateral (deposit) / liquidity (withdraw)"
4238
- ];
4239
3731
  },
4240
3732
  {
4241
3733
  "name": "reserve";
@@ -4290,9 +3782,6 @@ export type IndexYieldFarming = {
4290
3782
  "name": "tokenProgram";
4291
3783
  "isMut": false;
4292
3784
  "isSigner": false;
4293
- "docs": [
4294
- "[anchor_spl::token] program."
4295
- ];
4296
3785
  },
4297
3786
  {
4298
3787
  "name": "strategyProgram";
@@ -4303,17 +3792,11 @@ export type IndexYieldFarming = {
4303
3792
  "name": "farm";
4304
3793
  "isMut": false;
4305
3794
  "isSigner": false;
4306
- "docs": [
4307
- "Index yield farming multi-index farm account"
4308
- ];
4309
3795
  },
4310
3796
  {
4311
3797
  "name": "ownerFee";
4312
3798
  "isMut": true;
4313
3799
  "isSigner": false;
4314
- "docs": [
4315
- "Owner fee account (Hawksight)"
4316
- ];
4317
3800
  }
4318
3801
  ];
4319
3802
  "args": [
@@ -4329,25 +3812,16 @@ export type IndexYieldFarming = {
4329
3812
  },
4330
3813
  {
4331
3814
  "name": "portInitObligation";
4332
- "docs": [
4333
- "Init port finance obligation account"
4334
- ];
4335
3815
  "accounts": [
4336
3816
  {
4337
3817
  "name": "farm";
4338
3818
  "isMut": false;
4339
3819
  "isSigner": false;
4340
- "docs": [
4341
- "Index yield farming multi-index farm account"
4342
- ];
4343
3820
  },
4344
3821
  {
4345
3822
  "name": "userPda";
4346
3823
  "isMut": true;
4347
3824
  "isSigner": false;
4348
- "docs": [
4349
- "User PDA (Transfer authority)"
4350
- ];
4351
3825
  "pda": {
4352
3826
  "seeds": [
4353
3827
  {
@@ -4373,9 +3847,6 @@ export type IndexYieldFarming = {
4373
3847
  "name": "obligation";
4374
3848
  "isMut": true;
4375
3849
  "isSigner": false;
4376
- "docs": [
4377
- "Obligation PDA owned by our program (not yet initialized)"
4378
- ];
4379
3850
  "pda": {
4380
3851
  "seeds": [
4381
3852
  {
@@ -4402,82 +3873,52 @@ export type IndexYieldFarming = {
4402
3873
  "name": "payer";
4403
3874
  "isMut": false;
4404
3875
  "isSigner": true;
4405
- "docs": [
4406
- "Transaction payer and the obligation owner."
4407
- ];
4408
3876
  },
4409
3877
  {
4410
3878
  "name": "lendingMarket";
4411
3879
  "isMut": false;
4412
3880
  "isSigner": false;
4413
- "docs": [
4414
- "Port lending market"
4415
- ];
4416
3881
  },
4417
3882
  {
4418
3883
  "name": "portLendingProgram";
4419
3884
  "isMut": false;
4420
3885
  "isSigner": false;
4421
- "docs": [
4422
- "Port finance lending program"
4423
- ];
4424
3886
  },
4425
3887
  {
4426
3888
  "name": "clock";
4427
3889
  "isMut": false;
4428
3890
  "isSigner": false;
4429
- "docs": [
4430
- "Clock sysvar"
4431
- ];
4432
3891
  },
4433
3892
  {
4434
3893
  "name": "rent";
4435
3894
  "isMut": false;
4436
3895
  "isSigner": false;
4437
- "docs": [
4438
- "Rent sysvar"
4439
- ];
4440
3896
  },
4441
3897
  {
4442
3898
  "name": "tokenProgram";
4443
3899
  "isMut": false;
4444
3900
  "isSigner": false;
4445
- "docs": [
4446
- "Token program"
4447
- ];
4448
3901
  },
4449
3902
  {
4450
3903
  "name": "systemProgram";
4451
3904
  "isMut": false;
4452
3905
  "isSigner": false;
4453
- "docs": [
4454
- "System program"
4455
- ];
4456
3906
  }
4457
3907
  ];
4458
3908
  "args": [];
4459
3909
  },
4460
3910
  {
4461
3911
  "name": "portInitStakeAccount";
4462
- "docs": [
4463
- "Init port finance stake account"
4464
- ];
4465
3912
  "accounts": [
4466
3913
  {
4467
3914
  "name": "farm";
4468
3915
  "isMut": false;
4469
3916
  "isSigner": false;
4470
- "docs": [
4471
- "Index yield farming multi-index farm account"
4472
- ];
4473
3917
  },
4474
3918
  {
4475
3919
  "name": "userPda";
4476
3920
  "isMut": true;
4477
3921
  "isSigner": false;
4478
- "docs": [
4479
- "User PDA (Transfer authority)"
4480
- ];
4481
3922
  "pda": {
4482
3923
  "seeds": [
4483
3924
  {
@@ -4503,9 +3944,6 @@ export type IndexYieldFarming = {
4503
3944
  "name": "stakeAccount";
4504
3945
  "isMut": true;
4505
3946
  "isSigner": false;
4506
- "docs": [
4507
- "Stake account PDA owned by our program (not yet initialized)"
4508
- ];
4509
3947
  "pda": {
4510
3948
  "seeds": [
4511
3949
  {
@@ -4532,130 +3970,82 @@ export type IndexYieldFarming = {
4532
3970
  "name": "payer";
4533
3971
  "isMut": false;
4534
3972
  "isSigner": true;
4535
- "docs": [
4536
- "Transaction payer and obligation and stake account owner"
4537
- ];
4538
3973
  },
4539
3974
  {
4540
3975
  "name": "stakingPool";
4541
3976
  "isMut": false;
4542
3977
  "isSigner": false;
4543
- "docs": [
4544
- "Port staking pool account"
4545
- ];
4546
3978
  },
4547
3979
  {
4548
3980
  "name": "rent";
4549
3981
  "isMut": false;
4550
3982
  "isSigner": false;
4551
- "docs": [
4552
- "Rent sysvar"
4553
- ];
4554
3983
  },
4555
3984
  {
4556
3985
  "name": "portStakingProgram";
4557
3986
  "isMut": false;
4558
3987
  "isSigner": false;
4559
- "docs": [
4560
- "Port finance lending program"
4561
- ];
4562
3988
  },
4563
3989
  {
4564
3990
  "name": "systemProgram";
4565
3991
  "isMut": false;
4566
3992
  "isSigner": false;
4567
- "docs": [
4568
- "System program"
4569
- ];
4570
3993
  }
4571
3994
  ];
4572
3995
  "args": [];
4573
3996
  },
4574
3997
  {
4575
3998
  "name": "portDeposit";
4576
- "docs": [
4577
- "Deposit to port finance"
4578
- ];
4579
3999
  "accounts": [
4580
4000
  {
4581
4001
  "name": "farm";
4582
4002
  "isMut": false;
4583
4003
  "isSigner": false;
4584
- "docs": [
4585
- "Index yield farming multi-index farm account"
4586
- ];
4587
4004
  },
4588
4005
  {
4589
4006
  "name": "source";
4590
4007
  "isMut": true;
4591
4008
  "isSigner": false;
4592
- "docs": [
4593
- "Source token owned by user pda (transfer_authority)"
4594
- ];
4595
4009
  },
4596
4010
  {
4597
4011
  "name": "destination";
4598
4012
  "isMut": true;
4599
4013
  "isSigner": false;
4600
- "docs": [
4601
- "Destination token owned by user pda (transfer_authority)"
4602
- ];
4603
4014
  },
4604
4015
  {
4605
4016
  "name": "reserve";
4606
4017
  "isMut": true;
4607
4018
  "isSigner": false;
4608
- "docs": [
4609
- "Port reserve account"
4610
- ];
4611
4019
  },
4612
4020
  {
4613
4021
  "name": "reserveLiquiditySupply";
4614
4022
  "isMut": true;
4615
4023
  "isSigner": false;
4616
- "docs": [
4617
- "Port reserve supply liquidity account"
4618
- ];
4619
4024
  },
4620
4025
  {
4621
4026
  "name": "reserveCollateralMint";
4622
4027
  "isMut": true;
4623
4028
  "isSigner": false;
4624
- "docs": [
4625
- "Port reserve collateral mint"
4626
- ];
4627
4029
  },
4628
4030
  {
4629
4031
  "name": "lendingMarket";
4630
4032
  "isMut": false;
4631
4033
  "isSigner": false;
4632
- "docs": [
4633
- "Port finance market account"
4634
- ];
4635
4034
  },
4636
4035
  {
4637
4036
  "name": "lendingMarketAuthority";
4638
4037
  "isMut": false;
4639
4038
  "isSigner": false;
4640
- "docs": [
4641
- "Port lending market authority"
4642
- ];
4643
4039
  },
4644
4040
  {
4645
4041
  "name": "destinationCollateral";
4646
4042
  "isMut": true;
4647
4043
  "isSigner": false;
4648
- "docs": [
4649
- "Destination collateral"
4650
- ];
4651
4044
  },
4652
4045
  {
4653
4046
  "name": "obligation";
4654
4047
  "isMut": true;
4655
4048
  "isSigner": false;
4656
- "docs": [
4657
- "Obligation PDA owned by our program (not yet initialized)"
4658
- ];
4659
4049
  "pda": {
4660
4050
  "seeds": [
4661
4051
  {
@@ -4682,17 +4072,11 @@ export type IndexYieldFarming = {
4682
4072
  "name": "payer";
4683
4073
  "isMut": false;
4684
4074
  "isSigner": true;
4685
- "docs": [
4686
- "Transaction payer"
4687
- ];
4688
4075
  },
4689
4076
  {
4690
4077
  "name": "stakeAccount";
4691
4078
  "isMut": true;
4692
4079
  "isSigner": false;
4693
- "docs": [
4694
- "Port finance stake account"
4695
- ];
4696
4080
  "pda": {
4697
4081
  "seeds": [
4698
4082
  {
@@ -4719,17 +4103,11 @@ export type IndexYieldFarming = {
4719
4103
  "name": "stakingPool";
4720
4104
  "isMut": true;
4721
4105
  "isSigner": false;
4722
- "docs": [
4723
- "Port finance staking pool"
4724
- ];
4725
4106
  },
4726
4107
  {
4727
4108
  "name": "transferAuthority";
4728
4109
  "isMut": true;
4729
4110
  "isSigner": false;
4730
- "docs": [
4731
- "User PDA (Transfer authority)"
4732
- ];
4733
4111
  "pda": {
4734
4112
  "seeds": [
4735
4113
  {
@@ -4755,58 +4133,37 @@ export type IndexYieldFarming = {
4755
4133
  "name": "clock";
4756
4134
  "isMut": false;
4757
4135
  "isSigner": false;
4758
- "docs": [
4759
- "Sysvar clock"
4760
- ];
4761
4136
  },
4762
4137
  {
4763
4138
  "name": "tokenProgram";
4764
4139
  "isMut": false;
4765
4140
  "isSigner": false;
4766
- "docs": [
4767
- "Token program"
4768
- ];
4769
4141
  },
4770
4142
  {
4771
4143
  "name": "portLendingProgram";
4772
4144
  "isMut": false;
4773
4145
  "isSigner": false;
4774
- "docs": [
4775
- "Port lending program. This is actually used by deposit_and_collateralize instruction via port staking program"
4776
- ];
4777
4146
  },
4778
4147
  {
4779
4148
  "name": "portStakingProgram";
4780
4149
  "isMut": false;
4781
4150
  "isSigner": false;
4782
- "docs": [
4783
- "Port staking program"
4784
- ];
4785
4151
  }
4786
4152
  ];
4787
4153
  "args": [];
4788
4154
  },
4789
4155
  {
4790
4156
  "name": "portWithdraw";
4791
- "docs": [
4792
- "Withdraw from port finance"
4793
- ];
4794
4157
  "accounts": [
4795
4158
  {
4796
4159
  "name": "farm";
4797
4160
  "isMut": false;
4798
4161
  "isSigner": false;
4799
- "docs": [
4800
- "Index yield farming multi-index farm account"
4801
- ];
4802
4162
  },
4803
4163
  {
4804
4164
  "name": "userPda";
4805
4165
  "isMut": true;
4806
4166
  "isSigner": false;
4807
- "docs": [
4808
- "Index yield farming user pda account"
4809
- ];
4810
4167
  "pda": {
4811
4168
  "seeds": [
4812
4169
  {
@@ -4832,41 +4189,26 @@ export type IndexYieldFarming = {
4832
4189
  "name": "sourceCollateral";
4833
4190
  "isMut": true;
4834
4191
  "isSigner": false;
4835
- "docs": [
4836
- "Port finance source collateral"
4837
- ];
4838
4192
  },
4839
4193
  {
4840
4194
  "name": "destinationCollateral";
4841
4195
  "isMut": true;
4842
4196
  "isSigner": false;
4843
- "docs": [
4844
- "User destination collateral"
4845
- ];
4846
4197
  },
4847
4198
  {
4848
4199
  "name": "destinationLiquidity";
4849
4200
  "isMut": true;
4850
4201
  "isSigner": false;
4851
- "docs": [
4852
- "User destination liquidity"
4853
- ];
4854
4202
  },
4855
4203
  {
4856
4204
  "name": "reserve";
4857
4205
  "isMut": true;
4858
4206
  "isSigner": false;
4859
- "docs": [
4860
- "Port finance reserve account"
4861
- ];
4862
4207
  },
4863
4208
  {
4864
4209
  "name": "obligation";
4865
4210
  "isMut": true;
4866
4211
  "isSigner": false;
4867
- "docs": [
4868
- "User obligation account"
4869
- ];
4870
4212
  "pda": {
4871
4213
  "seeds": [
4872
4214
  {
@@ -4893,25 +4235,16 @@ export type IndexYieldFarming = {
4893
4235
  "name": "lendingMarket";
4894
4236
  "isMut": false;
4895
4237
  "isSigner": false;
4896
- "docs": [
4897
- "Port lending account"
4898
- ];
4899
4238
  },
4900
4239
  {
4901
4240
  "name": "lendingMarketAuthority";
4902
4241
  "isMut": false;
4903
4242
  "isSigner": false;
4904
- "docs": [
4905
- "Lending market authority"
4906
- ];
4907
4243
  },
4908
4244
  {
4909
4245
  "name": "stakeAccount";
4910
4246
  "isMut": true;
4911
4247
  "isSigner": false;
4912
- "docs": [
4913
- "User staking account"
4914
- ];
4915
4248
  "pda": {
4916
4249
  "seeds": [
4917
4250
  {
@@ -4938,73 +4271,46 @@ export type IndexYieldFarming = {
4938
4271
  "name": "stakingPool";
4939
4272
  "isMut": true;
4940
4273
  "isSigner": false;
4941
- "docs": [
4942
- "Port staking pool"
4943
- ];
4944
4274
  },
4945
4275
  {
4946
4276
  "name": "payer";
4947
4277
  "isMut": false;
4948
4278
  "isSigner": true;
4949
- "docs": [
4950
- "Obligation owner (Transaction payer and authority)"
4951
- ];
4952
4279
  },
4953
4280
  {
4954
4281
  "name": "reserveLiquiditySupply";
4955
4282
  "isMut": true;
4956
4283
  "isSigner": false;
4957
- "docs": [
4958
- "Port reserve supply liquidity account"
4959
- ];
4960
4284
  },
4961
4285
  {
4962
4286
  "name": "reserveCollateralMint";
4963
4287
  "isMut": true;
4964
4288
  "isSigner": false;
4965
- "docs": [
4966
- "Port reserve collateral mint"
4967
- ];
4968
4289
  },
4969
4290
  {
4970
4291
  "name": "clock";
4971
4292
  "isMut": false;
4972
4293
  "isSigner": false;
4973
- "docs": [
4974
- "Sysvar clock"
4975
- ];
4976
4294
  },
4977
4295
  {
4978
4296
  "name": "tokenProgram";
4979
4297
  "isMut": false;
4980
4298
  "isSigner": false;
4981
- "docs": [
4982
- "Token program"
4983
- ];
4984
4299
  },
4985
4300
  {
4986
4301
  "name": "portLendingProgram";
4987
4302
  "isMut": false;
4988
4303
  "isSigner": false;
4989
- "docs": [
4990
- "Port lending program. This is actually the program that is being invoked."
4991
- ];
4992
4304
  },
4993
4305
  {
4994
4306
  "name": "portStakingProgram";
4995
4307
  "isMut": false;
4996
4308
  "isSigner": false;
4997
- "docs": [
4998
- "Port staking program"
4999
- ];
5000
4309
  },
5001
4310
  {
5002
4311
  "name": "ownerFee";
5003
4312
  "isMut": true;
5004
4313
  "isSigner": false;
5005
- "docs": [
5006
- "Owner fee account (Hawksight)"
5007
- ];
5008
4314
  }
5009
4315
  ];
5010
4316
  "args": [
@@ -5016,89 +4322,56 @@ export type IndexYieldFarming = {
5016
4322
  },
5017
4323
  {
5018
4324
  "name": "portDepositWithOracle";
5019
- "docs": [
5020
- "Deposit to port finance"
5021
- ];
5022
4325
  "accounts": [
5023
4326
  {
5024
4327
  "name": "farm";
5025
4328
  "isMut": false;
5026
4329
  "isSigner": false;
5027
- "docs": [
5028
- "Index yield farming multi-index farm account"
5029
- ];
5030
4330
  },
5031
4331
  {
5032
4332
  "name": "source";
5033
4333
  "isMut": true;
5034
4334
  "isSigner": false;
5035
- "docs": [
5036
- "Source token owned by user pda (transfer_authority)"
5037
- ];
5038
4335
  },
5039
4336
  {
5040
4337
  "name": "destination";
5041
4338
  "isMut": true;
5042
4339
  "isSigner": false;
5043
- "docs": [
5044
- "Destination token owned by user pda (transfer_authority)"
5045
- ];
5046
4340
  },
5047
4341
  {
5048
4342
  "name": "reserve";
5049
4343
  "isMut": true;
5050
4344
  "isSigner": false;
5051
- "docs": [
5052
- "Port reserve account"
5053
- ];
5054
4345
  },
5055
4346
  {
5056
4347
  "name": "reserveLiquiditySupply";
5057
4348
  "isMut": true;
5058
4349
  "isSigner": false;
5059
- "docs": [
5060
- "Port reserve supply liquidity account"
5061
- ];
5062
4350
  },
5063
4351
  {
5064
4352
  "name": "reserveCollateralMint";
5065
4353
  "isMut": true;
5066
4354
  "isSigner": false;
5067
- "docs": [
5068
- "Port reserve collateral mint"
5069
- ];
5070
4355
  },
5071
4356
  {
5072
4357
  "name": "lendingMarket";
5073
4358
  "isMut": false;
5074
4359
  "isSigner": false;
5075
- "docs": [
5076
- "Port finance market account"
5077
- ];
5078
4360
  },
5079
4361
  {
5080
4362
  "name": "lendingMarketAuthority";
5081
4363
  "isMut": false;
5082
4364
  "isSigner": false;
5083
- "docs": [
5084
- "Port lending market authority"
5085
- ];
5086
4365
  },
5087
4366
  {
5088
4367
  "name": "destinationCollateral";
5089
4368
  "isMut": true;
5090
4369
  "isSigner": false;
5091
- "docs": [
5092
- "Destination collateral"
5093
- ];
5094
4370
  },
5095
4371
  {
5096
4372
  "name": "obligation";
5097
4373
  "isMut": true;
5098
4374
  "isSigner": false;
5099
- "docs": [
5100
- "Obligation PDA owned by our program (not yet initialized)"
5101
- ];
5102
4375
  "pda": {
5103
4376
  "seeds": [
5104
4377
  {
@@ -5125,17 +4398,11 @@ export type IndexYieldFarming = {
5125
4398
  "name": "payer";
5126
4399
  "isMut": false;
5127
4400
  "isSigner": true;
5128
- "docs": [
5129
- "Transaction payer"
5130
- ];
5131
4401
  },
5132
4402
  {
5133
4403
  "name": "stakeAccount";
5134
4404
  "isMut": true;
5135
4405
  "isSigner": false;
5136
- "docs": [
5137
- "Port finance stake account"
5138
- ];
5139
4406
  "pda": {
5140
4407
  "seeds": [
5141
4408
  {
@@ -5162,17 +4429,11 @@ export type IndexYieldFarming = {
5162
4429
  "name": "stakingPool";
5163
4430
  "isMut": true;
5164
4431
  "isSigner": false;
5165
- "docs": [
5166
- "Port finance staking pool"
5167
- ];
5168
4432
  },
5169
4433
  {
5170
4434
  "name": "transferAuthority";
5171
4435
  "isMut": true;
5172
4436
  "isSigner": false;
5173
- "docs": [
5174
- "User PDA (Transfer authority)"
5175
- ];
5176
4437
  "pda": {
5177
4438
  "seeds": [
5178
4439
  {
@@ -5198,66 +4459,42 @@ export type IndexYieldFarming = {
5198
4459
  "name": "oracle";
5199
4460
  "isMut": false;
5200
4461
  "isSigner": false;
5201
- "docs": [
5202
- "Oracle account"
5203
- ];
5204
4462
  },
5205
4463
  {
5206
4464
  "name": "clock";
5207
4465
  "isMut": false;
5208
4466
  "isSigner": false;
5209
- "docs": [
5210
- "Sysvar clock"
5211
- ];
5212
4467
  },
5213
4468
  {
5214
4469
  "name": "tokenProgram";
5215
4470
  "isMut": false;
5216
4471
  "isSigner": false;
5217
- "docs": [
5218
- "Token program"
5219
- ];
5220
4472
  },
5221
4473
  {
5222
4474
  "name": "portLendingProgram";
5223
4475
  "isMut": false;
5224
4476
  "isSigner": false;
5225
- "docs": [
5226
- "Port lending program. This is actually used by deposit_and_collateralize instruction via port staking program"
5227
- ];
5228
4477
  },
5229
4478
  {
5230
4479
  "name": "portStakingProgram";
5231
4480
  "isMut": false;
5232
4481
  "isSigner": false;
5233
- "docs": [
5234
- "Port staking program"
5235
- ];
5236
4482
  }
5237
4483
  ];
5238
4484
  "args": [];
5239
4485
  },
5240
4486
  {
5241
4487
  "name": "portWithdrawWithOracle";
5242
- "docs": [
5243
- "Withdraw from port finance"
5244
- ];
5245
4488
  "accounts": [
5246
4489
  {
5247
4490
  "name": "farm";
5248
4491
  "isMut": false;
5249
4492
  "isSigner": false;
5250
- "docs": [
5251
- "Index yield farming multi-index farm account"
5252
- ];
5253
4493
  },
5254
4494
  {
5255
4495
  "name": "userPda";
5256
4496
  "isMut": true;
5257
4497
  "isSigner": false;
5258
- "docs": [
5259
- "Index yield farming user pda account"
5260
- ];
5261
4498
  "pda": {
5262
4499
  "seeds": [
5263
4500
  {
@@ -5283,41 +4520,26 @@ export type IndexYieldFarming = {
5283
4520
  "name": "sourceCollateral";
5284
4521
  "isMut": true;
5285
4522
  "isSigner": false;
5286
- "docs": [
5287
- "Port finance source collateral"
5288
- ];
5289
4523
  },
5290
4524
  {
5291
4525
  "name": "destinationCollateral";
5292
4526
  "isMut": true;
5293
4527
  "isSigner": false;
5294
- "docs": [
5295
- "User destination collateral"
5296
- ];
5297
4528
  },
5298
4529
  {
5299
4530
  "name": "destinationLiquidity";
5300
4531
  "isMut": true;
5301
4532
  "isSigner": false;
5302
- "docs": [
5303
- "User destination liquidity"
5304
- ];
5305
4533
  },
5306
4534
  {
5307
4535
  "name": "reserve";
5308
4536
  "isMut": true;
5309
4537
  "isSigner": false;
5310
- "docs": [
5311
- "Port finance reserve account"
5312
- ];
5313
4538
  },
5314
4539
  {
5315
4540
  "name": "obligation";
5316
4541
  "isMut": true;
5317
4542
  "isSigner": false;
5318
- "docs": [
5319
- "User obligation account"
5320
- ];
5321
4543
  "pda": {
5322
4544
  "seeds": [
5323
4545
  {
@@ -5344,25 +4566,16 @@ export type IndexYieldFarming = {
5344
4566
  "name": "lendingMarket";
5345
4567
  "isMut": false;
5346
4568
  "isSigner": false;
5347
- "docs": [
5348
- "Port lending account"
5349
- ];
5350
4569
  },
5351
4570
  {
5352
4571
  "name": "lendingMarketAuthority";
5353
4572
  "isMut": false;
5354
4573
  "isSigner": false;
5355
- "docs": [
5356
- "Lending market authority"
5357
- ];
5358
4574
  },
5359
4575
  {
5360
4576
  "name": "stakeAccount";
5361
4577
  "isMut": true;
5362
4578
  "isSigner": false;
5363
- "docs": [
5364
- "User staking account"
5365
- ];
5366
4579
  "pda": {
5367
4580
  "seeds": [
5368
4581
  {
@@ -5389,81 +4602,51 @@ export type IndexYieldFarming = {
5389
4602
  "name": "stakingPool";
5390
4603
  "isMut": true;
5391
4604
  "isSigner": false;
5392
- "docs": [
5393
- "Port staking pool"
5394
- ];
5395
4605
  },
5396
4606
  {
5397
4607
  "name": "payer";
5398
4608
  "isMut": false;
5399
4609
  "isSigner": true;
5400
- "docs": [
5401
- "Obligation owner (Transaction payer and authority)"
5402
- ];
5403
4610
  },
5404
4611
  {
5405
4612
  "name": "reserveLiquiditySupply";
5406
4613
  "isMut": true;
5407
4614
  "isSigner": false;
5408
- "docs": [
5409
- "Port reserve supply liquidity account"
5410
- ];
5411
4615
  },
5412
4616
  {
5413
4617
  "name": "reserveCollateralMint";
5414
4618
  "isMut": true;
5415
4619
  "isSigner": false;
5416
- "docs": [
5417
- "Port reserve collateral mint"
5418
- ];
5419
4620
  },
5420
4621
  {
5421
4622
  "name": "oracle";
5422
4623
  "isMut": false;
5423
4624
  "isSigner": false;
5424
- "docs": [
5425
- "Oracle account"
5426
- ];
5427
4625
  },
5428
4626
  {
5429
4627
  "name": "clock";
5430
4628
  "isMut": false;
5431
4629
  "isSigner": false;
5432
- "docs": [
5433
- "Sysvar clock"
5434
- ];
5435
4630
  },
5436
4631
  {
5437
4632
  "name": "tokenProgram";
5438
4633
  "isMut": false;
5439
4634
  "isSigner": false;
5440
- "docs": [
5441
- "Token program"
5442
- ];
5443
4635
  },
5444
4636
  {
5445
4637
  "name": "portLendingProgram";
5446
4638
  "isMut": false;
5447
4639
  "isSigner": false;
5448
- "docs": [
5449
- "Port lending program. This is actually the program that is being invoked."
5450
- ];
5451
4640
  },
5452
4641
  {
5453
4642
  "name": "portStakingProgram";
5454
4643
  "isMut": false;
5455
4644
  "isSigner": false;
5456
- "docs": [
5457
- "Port staking program"
5458
- ];
5459
4645
  },
5460
4646
  {
5461
4647
  "name": "ownerFee";
5462
4648
  "isMut": true;
5463
4649
  "isSigner": false;
5464
- "docs": [
5465
- "Owner fee account (Hawksight)"
5466
- ];
5467
4650
  }
5468
4651
  ];
5469
4652
  "args": [
@@ -5475,25 +4658,16 @@ export type IndexYieldFarming = {
5475
4658
  },
5476
4659
  {
5477
4660
  "name": "portClaimRewards";
5478
- "docs": [
5479
- "Claim rewards from port finanace"
5480
- ];
5481
4661
  "accounts": [
5482
4662
  {
5483
4663
  "name": "farm";
5484
4664
  "isMut": false;
5485
4665
  "isSigner": false;
5486
- "docs": [
5487
- "Multi-index farm"
5488
- ];
5489
4666
  },
5490
4667
  {
5491
4668
  "name": "userPda";
5492
4669
  "isMut": true;
5493
4670
  "isSigner": false;
5494
- "docs": [
5495
- "User PDA"
5496
- ];
5497
4671
  "pda": {
5498
4672
  "seeds": [
5499
4673
  {
@@ -5519,17 +4693,11 @@ export type IndexYieldFarming = {
5519
4693
  "name": "payer";
5520
4694
  "isMut": true;
5521
4695
  "isSigner": true;
5522
- "docs": [
5523
- "Transaction payer"
5524
- ];
5525
4696
  },
5526
4697
  {
5527
4698
  "name": "stakeAccount";
5528
4699
  "isMut": true;
5529
4700
  "isSigner": false;
5530
- "docs": [
5531
- "User stake account"
5532
- ];
5533
4701
  "pda": {
5534
4702
  "seeds": [
5535
4703
  {
@@ -5556,90 +4724,57 @@ export type IndexYieldFarming = {
5556
4724
  "name": "stakingPool";
5557
4725
  "isMut": true;
5558
4726
  "isSigner": false;
5559
- "docs": [
5560
- "Port finance staking pool"
5561
- ];
5562
4727
  },
5563
4728
  {
5564
4729
  "name": "rewardTokenPool";
5565
4730
  "isMut": true;
5566
4731
  "isSigner": false;
5567
- "docs": [
5568
- "Port finance reward token pool"
5569
- ];
5570
4732
  },
5571
4733
  {
5572
4734
  "name": "rewardDest";
5573
4735
  "isMut": true;
5574
4736
  "isSigner": false;
5575
- "docs": [
5576
- "User token reward destination"
5577
- ];
5578
4737
  },
5579
4738
  {
5580
4739
  "name": "stakingProgramAuthority";
5581
4740
  "isMut": true;
5582
4741
  "isSigner": false;
5583
- "docs": [
5584
- "Port finance staking program authority account"
5585
- ];
5586
4742
  },
5587
4743
  {
5588
4744
  "name": "clock";
5589
4745
  "isMut": false;
5590
4746
  "isSigner": false;
5591
- "docs": [
5592
- "Sysvar clock"
5593
- ];
5594
4747
  },
5595
4748
  {
5596
4749
  "name": "tokenProgram";
5597
4750
  "isMut": false;
5598
4751
  "isSigner": false;
5599
- "docs": [
5600
- "Token program"
5601
- ];
5602
4752
  },
5603
4753
  {
5604
4754
  "name": "portStakingProgram";
5605
4755
  "isMut": false;
5606
4756
  "isSigner": false;
5607
- "docs": [
5608
- "Port finance staking program"
5609
- ];
5610
4757
  },
5611
4758
  {
5612
4759
  "name": "ownerFee";
5613
4760
  "isMut": true;
5614
4761
  "isSigner": false;
5615
- "docs": [
5616
- "Owner fee account (Hawksight)"
5617
- ];
5618
4762
  }
5619
4763
  ];
5620
4764
  "args": [];
5621
4765
  },
5622
4766
  {
5623
4767
  "name": "fraktDeposit";
5624
- "docs": [
5625
- "Deposit to frakt"
5626
- ];
5627
4768
  "accounts": [
5628
4769
  {
5629
4770
  "name": "farm";
5630
4771
  "isMut": false;
5631
4772
  "isSigner": false;
5632
- "docs": [
5633
- "Hawksight farm account"
5634
- ];
5635
4773
  },
5636
4774
  {
5637
4775
  "name": "userPda";
5638
4776
  "isMut": true;
5639
4777
  "isSigner": false;
5640
- "docs": [
5641
- "Hawksight user pda account"
5642
- ];
5643
4778
  "pda": {
5644
4779
  "seeds": [
5645
4780
  {
@@ -5660,43 +4795,26 @@ export type IndexYieldFarming = {
5660
4795
  }
5661
4796
  ];
5662
4797
  };
5663
- "relations": [
5664
- "farm",
5665
- "authority"
5666
- ];
5667
4798
  },
5668
4799
  {
5669
4800
  "name": "authority";
5670
4801
  "isMut": true;
5671
4802
  "isSigner": true;
5672
- "docs": [
5673
- "User wallet"
5674
- ];
5675
4803
  },
5676
4804
  {
5677
4805
  "name": "liquidityPool";
5678
4806
  "isMut": true;
5679
4807
  "isSigner": false;
5680
- "docs": [
5681
- "Frakt liquidity pool",
5682
- "This account is either LiquidityPool or PriceBasedLiquidityPool, thus we leave the validation to frakt themselves."
5683
- ];
5684
4808
  },
5685
4809
  {
5686
4810
  "name": "liqOwner";
5687
4811
  "isMut": true;
5688
4812
  "isSigner": false;
5689
- "docs": [
5690
- "Frakt liquidity pool owner"
5691
- ];
5692
4813
  },
5693
4814
  {
5694
4815
  "name": "deposit";
5695
4816
  "isMut": true;
5696
4817
  "isSigner": false;
5697
- "docs": [
5698
- "Frakt deposit account"
5699
- ];
5700
4818
  "pda": {
5701
4819
  "seeds": [
5702
4820
  {
@@ -5726,9 +4844,6 @@ export type IndexYieldFarming = {
5726
4844
  "name": "userPdaLamport";
5727
4845
  "isMut": true;
5728
4846
  "isSigner": false;
5729
- "docs": [
5730
- "Lamport PDA"
5731
- ];
5732
4847
  "pda": {
5733
4848
  "seeds": [
5734
4849
  {
@@ -5749,50 +4864,32 @@ export type IndexYieldFarming = {
5749
4864
  "name": "rent";
5750
4865
  "isMut": false;
5751
4866
  "isSigner": false;
5752
- "docs": [
5753
- "Rent sysvar"
5754
- ];
5755
4867
  },
5756
4868
  {
5757
4869
  "name": "systemProgram";
5758
4870
  "isMut": false;
5759
4871
  "isSigner": false;
5760
- "docs": [
5761
- "System program"
5762
- ];
5763
4872
  },
5764
4873
  {
5765
4874
  "name": "fraktProgram";
5766
4875
  "isMut": false;
5767
4876
  "isSigner": false;
5768
- "docs": [
5769
- "Frakt program"
5770
- ];
5771
4877
  }
5772
4878
  ];
5773
4879
  "args": [];
5774
4880
  },
5775
4881
  {
5776
4882
  "name": "fraktWithdraw";
5777
- "docs": [
5778
- "Withdraw from frakt"
5779
- ];
5780
4883
  "accounts": [
5781
4884
  {
5782
4885
  "name": "farm";
5783
4886
  "isMut": false;
5784
4887
  "isSigner": false;
5785
- "docs": [
5786
- "Hawksight farm account"
5787
- ];
5788
4888
  },
5789
4889
  {
5790
4890
  "name": "userPda";
5791
4891
  "isMut": true;
5792
4892
  "isSigner": false;
5793
- "docs": [
5794
- "Hawksight user pda account"
5795
- ];
5796
4893
  "pda": {
5797
4894
  "seeds": [
5798
4895
  {
@@ -5813,35 +4910,21 @@ export type IndexYieldFarming = {
5813
4910
  }
5814
4911
  ];
5815
4912
  };
5816
- "relations": [
5817
- "farm",
5818
- "authority"
5819
- ];
5820
4913
  },
5821
4914
  {
5822
4915
  "name": "authority";
5823
4916
  "isMut": true;
5824
4917
  "isSigner": true;
5825
- "docs": [
5826
- "User wallet"
5827
- ];
5828
4918
  },
5829
4919
  {
5830
4920
  "name": "liquidityPool";
5831
4921
  "isMut": true;
5832
4922
  "isSigner": false;
5833
- "docs": [
5834
- "Frakt liquidity pool",
5835
- "This account is either LiquidityPool or PriceBasedLiquidityPool, thus we leave the validation to frakt themselves."
5836
- ];
5837
4923
  },
5838
4924
  {
5839
4925
  "name": "deposit";
5840
4926
  "isMut": true;
5841
4927
  "isSigner": false;
5842
- "docs": [
5843
- "Frakt deposit account"
5844
- ];
5845
4928
  "pda": {
5846
4929
  "seeds": [
5847
4930
  {
@@ -5866,17 +4949,11 @@ export type IndexYieldFarming = {
5866
4949
  "path": "frakt_program";
5867
4950
  };
5868
4951
  };
5869
- "relations": [
5870
- "liquidity_pool"
5871
- ];
5872
4952
  },
5873
4953
  {
5874
4954
  "name": "userPdaLamport";
5875
4955
  "isMut": true;
5876
4956
  "isSigner": false;
5877
- "docs": [
5878
- "Lamport PDA"
5879
- ];
5880
4957
  "pda": {
5881
4958
  "seeds": [
5882
4959
  {
@@ -5897,41 +4974,26 @@ export type IndexYieldFarming = {
5897
4974
  "name": "liqOwner";
5898
4975
  "isMut": true;
5899
4976
  "isSigner": false;
5900
- "docs": [
5901
- "Frakt liquidity pool owner"
5902
- ];
5903
4977
  },
5904
4978
  {
5905
4979
  "name": "admin";
5906
4980
  "isMut": true;
5907
4981
  "isSigner": false;
5908
- "docs": [
5909
- "Frakt admin account"
5910
- ];
5911
4982
  },
5912
4983
  {
5913
4984
  "name": "systemProgram";
5914
4985
  "isMut": false;
5915
4986
  "isSigner": false;
5916
- "docs": [
5917
- "System program"
5918
- ];
5919
4987
  },
5920
4988
  {
5921
4989
  "name": "fraktProgram";
5922
4990
  "isMut": false;
5923
4991
  "isSigner": false;
5924
- "docs": [
5925
- "Frakt program"
5926
- ];
5927
4992
  },
5928
4993
  {
5929
4994
  "name": "ownerFee";
5930
4995
  "isMut": true;
5931
4996
  "isSigner": false;
5932
- "docs": [
5933
- "Owner fee account (Hawksight)"
5934
- ];
5935
4997
  }
5936
4998
  ];
5937
4999
  "args": [
@@ -5948,17 +5010,11 @@ export type IndexYieldFarming = {
5948
5010
  "name": "farm";
5949
5011
  "isMut": false;
5950
5012
  "isSigner": false;
5951
- "docs": [
5952
- "Hawksight farm account"
5953
- ];
5954
5013
  },
5955
5014
  {
5956
5015
  "name": "userPda";
5957
5016
  "isMut": true;
5958
5017
  "isSigner": false;
5959
- "docs": [
5960
- "Hawksight user pda account"
5961
- ];
5962
5018
  "pda": {
5963
5019
  "seeds": [
5964
5020
  {
@@ -5979,26 +5035,16 @@ export type IndexYieldFarming = {
5979
5035
  }
5980
5036
  ];
5981
5037
  };
5982
- "relations": [
5983
- "farm",
5984
- "authority"
5985
- ];
5986
5038
  },
5987
5039
  {
5988
5040
  "name": "authority";
5989
5041
  "isMut": true;
5990
5042
  "isSigner": true;
5991
- "docs": [
5992
- "User wallet"
5993
- ];
5994
5043
  },
5995
5044
  {
5996
5045
  "name": "userPdaLamport";
5997
5046
  "isMut": true;
5998
5047
  "isSigner": false;
5999
- "docs": [
6000
- "Lamport PDA"
6001
- ];
6002
5048
  "pda": {
6003
5049
  "seeds": [
6004
5050
  {
@@ -6019,18 +5065,11 @@ export type IndexYieldFarming = {
6019
5065
  "name": "liquidityPool";
6020
5066
  "isMut": true;
6021
5067
  "isSigner": false;
6022
- "docs": [
6023
- "Frakt liquidity pool",
6024
- "This account is either LiquidityPool or PriceBasedLiquidityPool, thus we leave the validation to frakt themselves."
6025
- ];
6026
5068
  },
6027
5069
  {
6028
5070
  "name": "deposit";
6029
5071
  "isMut": true;
6030
5072
  "isSigner": false;
6031
- "docs": [
6032
- "Frakt deposit account"
6033
- ];
6034
5073
  "pda": {
6035
5074
  "seeds": [
6036
5075
  {
@@ -6055,74 +5094,47 @@ export type IndexYieldFarming = {
6055
5094
  "path": "frakt_program";
6056
5095
  };
6057
5096
  };
6058
- "relations": [
6059
- "liquidity_pool"
6060
- ];
6061
5097
  },
6062
5098
  {
6063
5099
  "name": "liqOwner";
6064
5100
  "isMut": true;
6065
5101
  "isSigner": false;
6066
- "docs": [
6067
- "Frakt liquidity pool owner"
6068
- ];
6069
5102
  },
6070
5103
  {
6071
5104
  "name": "admin";
6072
5105
  "isMut": true;
6073
5106
  "isSigner": false;
6074
- "docs": [
6075
- "Frakt admin account"
6076
- ];
6077
5107
  },
6078
5108
  {
6079
5109
  "name": "systemProgram";
6080
5110
  "isMut": false;
6081
5111
  "isSigner": false;
6082
- "docs": [
6083
- "System program"
6084
- ];
6085
5112
  },
6086
5113
  {
6087
5114
  "name": "fraktProgram";
6088
5115
  "isMut": false;
6089
5116
  "isSigner": false;
6090
- "docs": [
6091
- "Frakt program"
6092
- ];
6093
5117
  },
6094
5118
  {
6095
5119
  "name": "ownerFee";
6096
5120
  "isMut": true;
6097
5121
  "isSigner": false;
6098
- "docs": [
6099
- "Owner fee account (Hawksight)"
6100
- ];
6101
5122
  }
6102
5123
  ];
6103
5124
  "args": [];
6104
5125
  },
6105
5126
  {
6106
5127
  "name": "depositTokenToUserPda";
6107
- "docs": [
6108
- "Deposit token to User PDA"
6109
- ];
6110
5128
  "accounts": [
6111
5129
  {
6112
5130
  "name": "farm";
6113
5131
  "isMut": false;
6114
5132
  "isSigner": false;
6115
- "docs": [
6116
- "Multi-index farm account"
6117
- ];
6118
5133
  },
6119
5134
  {
6120
5135
  "name": "userPda";
6121
5136
  "isMut": true;
6122
5137
  "isSigner": false;
6123
- "docs": [
6124
- "User PDA account, relative to the given farm"
6125
- ];
6126
5138
  "pda": {
6127
5139
  "seeds": [
6128
5140
  {
@@ -6149,41 +5161,26 @@ export type IndexYieldFarming = {
6149
5161
  "name": "payer";
6150
5162
  "isMut": false;
6151
5163
  "isSigner": true;
6152
- "docs": [
6153
- "Account payer and authority of the user pda"
6154
- ];
6155
5164
  },
6156
5165
  {
6157
5166
  "name": "userToken";
6158
5167
  "isMut": true;
6159
5168
  "isSigner": false;
6160
- "docs": [
6161
- "User token input"
6162
- ];
6163
5169
  },
6164
5170
  {
6165
5171
  "name": "userPdaToken";
6166
5172
  "isMut": true;
6167
5173
  "isSigner": false;
6168
- "docs": [
6169
- "User token output, indirectly owned by the payer through user pda."
6170
- ];
6171
5174
  },
6172
5175
  {
6173
5176
  "name": "ownerFeeToken";
6174
5177
  "isMut": true;
6175
5178
  "isSigner": false;
6176
- "docs": [
6177
- "Hawksight fee token account"
6178
- ];
6179
5179
  },
6180
5180
  {
6181
5181
  "name": "tokenProgram";
6182
5182
  "isMut": false;
6183
5183
  "isSigner": false;
6184
- "docs": [
6185
- "Token program"
6186
- ];
6187
5184
  }
6188
5185
  ];
6189
5186
  "args": [
@@ -6195,25 +5192,16 @@ export type IndexYieldFarming = {
6195
5192
  },
6196
5193
  {
6197
5194
  "name": "withdrawTokenFromUserPda";
6198
- "docs": [
6199
- "Withdraw token from User PDA"
6200
- ];
6201
5195
  "accounts": [
6202
5196
  {
6203
5197
  "name": "farm";
6204
5198
  "isMut": false;
6205
5199
  "isSigner": false;
6206
- "docs": [
6207
- "Multi-index farm account"
6208
- ];
6209
5200
  },
6210
5201
  {
6211
5202
  "name": "userPda";
6212
5203
  "isMut": true;
6213
5204
  "isSigner": false;
6214
- "docs": [
6215
- "User PDA account, relative to the given farm"
6216
- ];
6217
5205
  "pda": {
6218
5206
  "seeds": [
6219
5207
  {
@@ -6240,74 +5228,47 @@ export type IndexYieldFarming = {
6240
5228
  "name": "payer";
6241
5229
  "isMut": false;
6242
5230
  "isSigner": true;
6243
- "docs": [
6244
- "Account payer and authority of the user pda"
6245
- ];
6246
5231
  },
6247
5232
  {
6248
5233
  "name": "userToken";
6249
5234
  "isMut": true;
6250
5235
  "isSigner": false;
6251
- "docs": [
6252
- "User token input"
6253
- ];
6254
5236
  },
6255
5237
  {
6256
5238
  "name": "userPdaToken";
6257
5239
  "isMut": true;
6258
5240
  "isSigner": false;
6259
- "docs": [
6260
- "User token output, indirectly owned by the payer through user pda."
6261
- ];
6262
5241
  },
6263
5242
  {
6264
5243
  "name": "ownerFeeToken";
6265
5244
  "isMut": true;
6266
5245
  "isSigner": false;
6267
- "docs": [
6268
- "Hawksight fee token account"
6269
- ];
6270
5246
  },
6271
5247
  {
6272
5248
  "name": "tokenProgram";
6273
5249
  "isMut": false;
6274
5250
  "isSigner": false;
6275
- "docs": [
6276
- "Token program"
6277
- ];
6278
5251
  }
6279
5252
  ];
6280
5253
  "args": [];
6281
5254
  },
6282
5255
  {
6283
5256
  "name": "depositLamportsToPda";
6284
- "docs": [
6285
- "Deposit lamports to user pda"
6286
- ];
6287
5257
  "accounts": [
6288
5258
  {
6289
5259
  "name": "farm";
6290
5260
  "isMut": false;
6291
5261
  "isSigner": false;
6292
- "docs": [
6293
- "Multi-index farm"
6294
- ];
6295
5262
  },
6296
5263
  {
6297
5264
  "name": "payer";
6298
5265
  "isMut": true;
6299
5266
  "isSigner": true;
6300
- "docs": [
6301
- "Transaction payer, user pda authority, and source of lamports"
6302
- ];
6303
5267
  },
6304
5268
  {
6305
5269
  "name": "userPda";
6306
5270
  "isMut": true;
6307
5271
  "isSigner": false;
6308
- "docs": [
6309
- "User PDA"
6310
- ];
6311
5272
  "pda": {
6312
5273
  "seeds": [
6313
5274
  {
@@ -6333,9 +5294,6 @@ export type IndexYieldFarming = {
6333
5294
  "name": "userPdaLamport";
6334
5295
  "isMut": true;
6335
5296
  "isSigner": false;
6336
- "docs": [
6337
- "User PDA lamport passthrough account"
6338
- ];
6339
5297
  "pda": {
6340
5298
  "seeds": [
6341
5299
  {
@@ -6356,25 +5314,16 @@ export type IndexYieldFarming = {
6356
5314
  "name": "ownerFeeAccount";
6357
5315
  "isMut": true;
6358
5316
  "isSigner": false;
6359
- "docs": [
6360
- "Owner fee account (Hawksight)"
6361
- ];
6362
5317
  },
6363
5318
  {
6364
5319
  "name": "systemProgram";
6365
5320
  "isMut": false;
6366
5321
  "isSigner": false;
6367
- "docs": [
6368
- "Transfers lamports"
6369
- ];
6370
5322
  },
6371
5323
  {
6372
5324
  "name": "rent";
6373
5325
  "isMut": false;
6374
5326
  "isSigner": false;
6375
- "docs": [
6376
- "Determine minimum withdrawable lamports"
6377
- ];
6378
5327
  }
6379
5328
  ];
6380
5329
  "args": [
@@ -6386,33 +5335,21 @@ export type IndexYieldFarming = {
6386
5335
  },
6387
5336
  {
6388
5337
  "name": "withdrawLamportsFromPda";
6389
- "docs": [
6390
- "Withdraw lamports from userpda"
6391
- ];
6392
5338
  "accounts": [
6393
5339
  {
6394
5340
  "name": "farm";
6395
5341
  "isMut": false;
6396
5342
  "isSigner": false;
6397
- "docs": [
6398
- "Multi-index farm"
6399
- ];
6400
5343
  },
6401
5344
  {
6402
5345
  "name": "payer";
6403
5346
  "isMut": true;
6404
5347
  "isSigner": true;
6405
- "docs": [
6406
- "Transaction payer, user pda authority, and source of lamports"
6407
- ];
6408
5348
  },
6409
5349
  {
6410
5350
  "name": "userPda";
6411
5351
  "isMut": true;
6412
5352
  "isSigner": false;
6413
- "docs": [
6414
- "User PDA"
6415
- ];
6416
5353
  "pda": {
6417
5354
  "seeds": [
6418
5355
  {
@@ -6438,9 +5375,6 @@ export type IndexYieldFarming = {
6438
5375
  "name": "userPdaLamport";
6439
5376
  "isMut": true;
6440
5377
  "isSigner": false;
6441
- "docs": [
6442
- "User PDA lamport passthrough account"
6443
- ];
6444
5378
  "pda": {
6445
5379
  "seeds": [
6446
5380
  {
@@ -6461,106 +5395,67 @@ export type IndexYieldFarming = {
6461
5395
  "name": "ownerFeeAccount";
6462
5396
  "isMut": true;
6463
5397
  "isSigner": false;
6464
- "docs": [
6465
- "Owner fee account (Hawksight)"
6466
- ];
6467
5398
  },
6468
5399
  {
6469
5400
  "name": "systemProgram";
6470
5401
  "isMut": false;
6471
5402
  "isSigner": false;
6472
- "docs": [
6473
- "Transfers lamports"
6474
- ];
6475
5403
  },
6476
5404
  {
6477
5405
  "name": "rent";
6478
5406
  "isMut": false;
6479
5407
  "isSigner": false;
6480
- "docs": [
6481
- "Determine minimum withdrawable lamports"
6482
- ];
6483
5408
  }
6484
5409
  ];
6485
5410
  "args": [];
6486
5411
  },
6487
5412
  {
6488
5413
  "name": "tulipDeposit";
6489
- "docs": [
6490
- "Deposit to tulip"
6491
- ];
6492
5414
  "accounts": [
6493
5415
  {
6494
5416
  "name": "farm";
6495
5417
  "isMut": false;
6496
5418
  "isSigner": false;
6497
- "docs": [
6498
- "Hawksight multi-index farm"
6499
- ];
6500
5419
  },
6501
5420
  {
6502
5421
  "name": "sourceLiquidity";
6503
5422
  "isMut": true;
6504
5423
  "isSigner": false;
6505
- "docs": [
6506
- "User pda liquidity token (input)"
6507
- ];
6508
5424
  },
6509
5425
  {
6510
5426
  "name": "destinationCollateral";
6511
5427
  "isMut": true;
6512
5428
  "isSigner": false;
6513
- "docs": [
6514
- "User pda collateral token (output)"
6515
- ];
6516
5429
  },
6517
5430
  {
6518
5431
  "name": "reserve";
6519
5432
  "isMut": true;
6520
5433
  "isSigner": false;
6521
- "docs": [
6522
- "Tulip reserve"
6523
- ];
6524
5434
  },
6525
5435
  {
6526
5436
  "name": "reserveLiquidity";
6527
5437
  "isMut": true;
6528
5438
  "isSigner": false;
6529
- "docs": [
6530
- "Tulip reserve liquidity token account"
6531
- ];
6532
5439
  },
6533
5440
  {
6534
5441
  "name": "reserveCollateralMint";
6535
5442
  "isMut": true;
6536
5443
  "isSigner": false;
6537
- "docs": [
6538
- "Tulip reserve collateral token account"
6539
- ];
6540
5444
  },
6541
5445
  {
6542
5446
  "name": "lendingMarket";
6543
5447
  "isMut": false;
6544
5448
  "isSigner": false;
6545
- "docs": [
6546
- "Tulip lending market"
6547
- ];
6548
5449
  },
6549
5450
  {
6550
5451
  "name": "lendingMarketAuthority";
6551
5452
  "isMut": false;
6552
5453
  "isSigner": false;
6553
- "docs": [
6554
- "Tulip lending market authority"
6555
- ];
6556
5454
  },
6557
5455
  {
6558
5456
  "name": "userPda";
6559
5457
  "isMut": true;
6560
5458
  "isSigner": false;
6561
- "docs": [
6562
- "User PDA"
6563
- ];
6564
5459
  "pda": {
6565
5460
  "seeds": [
6566
5461
  {
@@ -6581,138 +5476,87 @@ export type IndexYieldFarming = {
6581
5476
  }
6582
5477
  ];
6583
5478
  };
6584
- "relations": [
6585
- "authority"
6586
- ];
6587
5479
  },
6588
5480
  {
6589
5481
  "name": "authority";
6590
5482
  "isMut": true;
6591
5483
  "isSigner": true;
6592
- "docs": [
6593
- "User wallet (user pda authority)"
6594
- ];
6595
5484
  },
6596
5485
  {
6597
5486
  "name": "oracle";
6598
5487
  "isMut": false;
6599
5488
  "isSigner": false;
6600
- "docs": [
6601
- "Oracle account"
6602
- ];
6603
5489
  },
6604
5490
  {
6605
5491
  "name": "clock";
6606
5492
  "isMut": false;
6607
5493
  "isSigner": false;
6608
- "docs": [
6609
- "Clock sysvar"
6610
- ];
6611
5494
  },
6612
5495
  {
6613
5496
  "name": "tokenProgram";
6614
5497
  "isMut": false;
6615
5498
  "isSigner": false;
6616
- "docs": [
6617
- "SPL Token Program"
6618
- ];
6619
5499
  },
6620
5500
  {
6621
5501
  "name": "tulipProgram";
6622
5502
  "isMut": false;
6623
5503
  "isSigner": false;
6624
- "docs": [
6625
- "Tulip program"
6626
- ];
6627
5504
  }
6628
5505
  ];
6629
5506
  "args": [];
6630
5507
  },
6631
5508
  {
6632
5509
  "name": "tulipWithdraw";
6633
- "docs": [
6634
- "Withdraw from tulip"
6635
- ];
6636
5510
  "accounts": [
6637
5511
  {
6638
5512
  "name": "farm";
6639
5513
  "isMut": false;
6640
5514
  "isSigner": false;
6641
- "docs": [
6642
- "Hawksight multi-index farm"
6643
- ];
6644
5515
  },
6645
5516
  {
6646
5517
  "name": "sourceCollateral";
6647
5518
  "isMut": true;
6648
5519
  "isSigner": false;
6649
- "docs": [
6650
- "User pda source collateral (input token)"
6651
- ];
6652
5520
  },
6653
5521
  {
6654
5522
  "name": "destinationLiquidity";
6655
5523
  "isMut": true;
6656
5524
  "isSigner": false;
6657
- "docs": [
6658
- "User pda output liquidity (output token)"
6659
- ];
6660
5525
  },
6661
5526
  {
6662
5527
  "name": "reserve";
6663
5528
  "isMut": true;
6664
5529
  "isSigner": false;
6665
- "docs": [
6666
- "Tulip reserve account"
6667
- ];
6668
5530
  },
6669
5531
  {
6670
5532
  "name": "reserveCollateralMint";
6671
5533
  "isMut": true;
6672
5534
  "isSigner": false;
6673
- "docs": [
6674
- "Collateral mint"
6675
- ];
6676
5535
  },
6677
5536
  {
6678
5537
  "name": "reserveLiquidity";
6679
5538
  "isMut": true;
6680
5539
  "isSigner": false;
6681
- "docs": [
6682
- "Tulip reserve token account"
6683
- ];
6684
5540
  },
6685
5541
  {
6686
5542
  "name": "lendingMarket";
6687
5543
  "isMut": true;
6688
5544
  "isSigner": false;
6689
- "docs": [
6690
- "Tulip lending market"
6691
- ];
6692
5545
  },
6693
5546
  {
6694
5547
  "name": "lendingMarketAuthority";
6695
5548
  "isMut": false;
6696
5549
  "isSigner": false;
6697
- "docs": [
6698
- "Tulip lending market authority"
6699
- ];
6700
5550
  },
6701
5551
  {
6702
5552
  "name": "oracle";
6703
5553
  "isMut": false;
6704
5554
  "isSigner": false;
6705
- "docs": [
6706
- "Oracle account"
6707
- ];
6708
5555
  },
6709
5556
  {
6710
5557
  "name": "userPda";
6711
5558
  "isMut": true;
6712
5559
  "isSigner": false;
6713
- "docs": [
6714
- "User PDA"
6715
- ];
6716
5560
  "pda": {
6717
5561
  "seeds": [
6718
5562
  {
@@ -6733,49 +5577,31 @@ export type IndexYieldFarming = {
6733
5577
  }
6734
5578
  ];
6735
5579
  };
6736
- "relations": [
6737
- "authority"
6738
- ];
6739
5580
  },
6740
5581
  {
6741
5582
  "name": "authority";
6742
5583
  "isMut": true;
6743
5584
  "isSigner": true;
6744
- "docs": [
6745
- "User wallet (user pda authority)"
6746
- ];
6747
5585
  },
6748
5586
  {
6749
5587
  "name": "clock";
6750
5588
  "isMut": false;
6751
5589
  "isSigner": false;
6752
- "docs": [
6753
- "Clock sysvar"
6754
- ];
6755
5590
  },
6756
5591
  {
6757
5592
  "name": "tokenProgram";
6758
5593
  "isMut": false;
6759
5594
  "isSigner": false;
6760
- "docs": [
6761
- "SPL Token Program"
6762
- ];
6763
5595
  },
6764
5596
  {
6765
5597
  "name": "tulipProgram";
6766
5598
  "isMut": false;
6767
5599
  "isSigner": false;
6768
- "docs": [
6769
- "Tulip program"
6770
- ];
6771
5600
  },
6772
5601
  {
6773
5602
  "name": "ownerFee";
6774
5603
  "isMut": true;
6775
5604
  "isSigner": false;
6776
- "docs": [
6777
- "Owner fee account (Hawksight)"
6778
- ];
6779
5605
  }
6780
5606
  ];
6781
5607
  "args": [
@@ -6787,25 +5613,16 @@ export type IndexYieldFarming = {
6787
5613
  },
6788
5614
  {
6789
5615
  "name": "iyfExtensionExecute";
6790
- "docs": [
6791
- "Execute extension contract"
6792
- ];
6793
5616
  "accounts": [
6794
5617
  {
6795
5618
  "name": "farm";
6796
5619
  "isMut": false;
6797
5620
  "isSigner": false;
6798
- "docs": [
6799
- "Hawksight multi-index farm"
6800
- ];
6801
5621
  },
6802
5622
  {
6803
5623
  "name": "userPda";
6804
5624
  "isMut": true;
6805
5625
  "isSigner": false;
6806
- "docs": [
6807
- "Hawksight user pda"
6808
- ];
6809
5626
  "pda": {
6810
5627
  "seeds": [
6811
5628
  {
@@ -6826,33 +5643,21 @@ export type IndexYieldFarming = {
6826
5643
  }
6827
5644
  ];
6828
5645
  };
6829
- "relations": [
6830
- "authority"
6831
- ];
6832
5646
  },
6833
5647
  {
6834
5648
  "name": "authority";
6835
5649
  "isMut": true;
6836
5650
  "isSigner": false;
6837
- "docs": [
6838
- "User wallet"
6839
- ];
6840
5651
  },
6841
5652
  {
6842
5653
  "name": "iyfProgram";
6843
5654
  "isMut": false;
6844
5655
  "isSigner": false;
6845
- "docs": [
6846
- "Main index yield farming program"
6847
- ];
6848
5656
  },
6849
5657
  {
6850
5658
  "name": "iyfExtensionProgram";
6851
5659
  "isMut": false;
6852
5660
  "isSigner": false;
6853
- "docs": [
6854
- "Iyf Extension Program"
6855
- ];
6856
5661
  }
6857
5662
  ];
6858
5663
  "args": [
@@ -6864,26 +5669,16 @@ export type IndexYieldFarming = {
6864
5669
  },
6865
5670
  {
6866
5671
  "name": "resetLastAction";
6867
- "docs": [
6868
- "Reset last action",
6869
- "TODO: Needs to be disabled"
6870
- ];
6871
5672
  "accounts": [
6872
5673
  {
6873
5674
  "name": "farm";
6874
5675
  "isMut": false;
6875
5676
  "isSigner": false;
6876
- "docs": [
6877
- "Hawksight farm account"
6878
- ];
6879
5677
  },
6880
5678
  {
6881
5679
  "name": "userPda";
6882
5680
  "isMut": true;
6883
5681
  "isSigner": false;
6884
- "docs": [
6885
- "User PDA account"
6886
- ];
6887
5682
  "pda": {
6888
5683
  "seeds": [
6889
5684
  {
@@ -6904,17 +5699,11 @@ export type IndexYieldFarming = {
6904
5699
  }
6905
5700
  ];
6906
5701
  };
6907
- "relations": [
6908
- "authority"
6909
- ];
6910
5702
  },
6911
5703
  {
6912
5704
  "name": "authority";
6913
5705
  "isMut": true;
6914
5706
  "isSigner": true;
6915
- "docs": [
6916
- "User wallet"
6917
- ];
6918
5707
  }
6919
5708
  ];
6920
5709
  "args": [];
@@ -6926,9 +5715,6 @@ export type IndexYieldFarming = {
6926
5715
  "name": "userPda";
6927
5716
  "isMut": false;
6928
5717
  "isSigner": false;
6929
- "docs": [
6930
- "User PDA account"
6931
- ];
6932
5718
  "pda": {
6933
5719
  "seeds": [
6934
5720
  {
@@ -6949,33 +5735,21 @@ export type IndexYieldFarming = {
6949
5735
  }
6950
5736
  ];
6951
5737
  };
6952
- "relations": [
6953
- "authority"
6954
- ];
6955
5738
  },
6956
5739
  {
6957
5740
  "name": "authority";
6958
5741
  "isMut": true;
6959
5742
  "isSigner": true;
6960
- "docs": [
6961
- "User wallet"
6962
- ];
6963
5743
  },
6964
5744
  {
6965
5745
  "name": "mint";
6966
5746
  "isMut": false;
6967
5747
  "isSigner": false;
6968
- "docs": [
6969
- "Mint of token accounts to be transferred"
6970
- ];
6971
5748
  },
6972
5749
  {
6973
5750
  "name": "passthroughTokenAccount";
6974
5751
  "isMut": true;
6975
5752
  "isSigner": false;
6976
- "docs": [
6977
- "Passthrough token account owned by user pda"
6978
- ];
6979
5753
  "pda": {
6980
5754
  "seeds": [
6981
5755
  {
@@ -7007,9 +5781,6 @@ export type IndexYieldFarming = {
7007
5781
  "name": "storageTokenAccount";
7008
5782
  "isMut": true;
7009
5783
  "isSigner": false;
7010
- "docs": [
7011
- "Storage token account owned by user pda"
7012
- ];
7013
5784
  "pda": {
7014
5785
  "seeds": [
7015
5786
  {
@@ -7036,33 +5807,21 @@ export type IndexYieldFarming = {
7036
5807
  "name": "rent";
7037
5808
  "isMut": false;
7038
5809
  "isSigner": false;
7039
- "docs": [
7040
- "Rent sysvar"
7041
- ];
7042
5810
  },
7043
5811
  {
7044
5812
  "name": "tokenProgram";
7045
5813
  "isMut": false;
7046
5814
  "isSigner": false;
7047
- "docs": [
7048
- "SPL Token program."
7049
- ];
7050
5815
  },
7051
5816
  {
7052
5817
  "name": "associatedTokenProgram";
7053
5818
  "isMut": false;
7054
5819
  "isSigner": false;
7055
- "docs": [
7056
- "Associated token program for seed generation"
7057
- ];
7058
5820
  },
7059
5821
  {
7060
5822
  "name": "systemProgram";
7061
5823
  "isMut": false;
7062
5824
  "isSigner": false;
7063
- "docs": [
7064
- "System Program"
7065
- ];
7066
5825
  }
7067
5826
  ];
7068
5827
  "args": [];
@@ -7074,9 +5833,6 @@ export type IndexYieldFarming = {
7074
5833
  "name": "userPda";
7075
5834
  "isMut": false;
7076
5835
  "isSigner": false;
7077
- "docs": [
7078
- "User PDA account"
7079
- ];
7080
5836
  "pda": {
7081
5837
  "seeds": [
7082
5838
  {
@@ -7097,33 +5853,21 @@ export type IndexYieldFarming = {
7097
5853
  }
7098
5854
  ];
7099
5855
  };
7100
- "relations": [
7101
- "authority"
7102
- ];
7103
5856
  },
7104
5857
  {
7105
5858
  "name": "authority";
7106
5859
  "isMut": true;
7107
5860
  "isSigner": true;
7108
- "docs": [
7109
- "User wallet"
7110
- ];
7111
5861
  },
7112
5862
  {
7113
5863
  "name": "mint";
7114
5864
  "isMut": false;
7115
5865
  "isSigner": false;
7116
- "docs": [
7117
- "Mint of token accounts to be transferred"
7118
- ];
7119
5866
  },
7120
5867
  {
7121
5868
  "name": "passthroughTokenAccount";
7122
5869
  "isMut": true;
7123
5870
  "isSigner": false;
7124
- "docs": [
7125
- "Passthrough token account owned by user pda"
7126
- ];
7127
5871
  "pda": {
7128
5872
  "seeds": [
7129
5873
  {
@@ -7155,9 +5899,6 @@ export type IndexYieldFarming = {
7155
5899
  "name": "storageTokenAccount";
7156
5900
  "isMut": true;
7157
5901
  "isSigner": false;
7158
- "docs": [
7159
- "Storage token account owned by user pda"
7160
- ];
7161
5902
  "pda": {
7162
5903
  "seeds": [
7163
5904
  {
@@ -7184,33 +5925,21 @@ export type IndexYieldFarming = {
7184
5925
  "name": "rent";
7185
5926
  "isMut": false;
7186
5927
  "isSigner": false;
7187
- "docs": [
7188
- "Rent sysvar"
7189
- ];
7190
5928
  },
7191
5929
  {
7192
5930
  "name": "tokenProgram";
7193
5931
  "isMut": false;
7194
5932
  "isSigner": false;
7195
- "docs": [
7196
- "SPL Token program."
7197
- ];
7198
5933
  },
7199
5934
  {
7200
5935
  "name": "associatedTokenProgram";
7201
5936
  "isMut": false;
7202
5937
  "isSigner": false;
7203
- "docs": [
7204
- "Associated token program for seed generation"
7205
- ];
7206
5938
  },
7207
5939
  {
7208
5940
  "name": "systemProgram";
7209
5941
  "isMut": false;
7210
5942
  "isSigner": false;
7211
- "docs": [
7212
- "System Program"
7213
- ];
7214
5943
  }
7215
5944
  ];
7216
5945
  "args": [
@@ -7227,9 +5956,6 @@ export type IndexYieldFarming = {
7227
5956
  "name": "userPda";
7228
5957
  "isMut": false;
7229
5958
  "isSigner": false;
7230
- "docs": [
7231
- "Hawksight user pda (not authorized by user authority for now)"
7232
- ];
7233
5959
  "pda": {
7234
5960
  "seeds": [
7235
5961
  {
@@ -7256,17 +5982,11 @@ export type IndexYieldFarming = {
7256
5982
  "name": "authority";
7257
5983
  "isMut": true;
7258
5984
  "isSigner": true;
7259
- "docs": [
7260
- "Only hawksight authority or the user PDA's authority can execute this instruction"
7261
- ];
7262
5985
  },
7263
5986
  {
7264
5987
  "name": "jupiterProgram";
7265
5988
  "isMut": false;
7266
5989
  "isSigner": false;
7267
- "docs": [
7268
- "Jupiter Program"
7269
- ];
7270
5990
  }
7271
5991
  ];
7272
5992
  "args": [
@@ -7278,55 +5998,16 @@ export type IndexYieldFarming = {
7278
5998
  },
7279
5999
  {
7280
6000
  "name": "depositMultipleToken";
7281
- "docs": [
7282
- "Facilitates the deposit of multiple token types from the user's wallet into corresponding passthrough accounts.",
7283
- "This operation utilizes the `deposit_multiple` method, which may also create destination token accounts if necessary",
7284
- "using the CreateIdempotent instruction, ensuring a seamless deposit experience.",
7285
- "",
7286
- "# Arguments",
7287
- "* `amounts` - A vector of amounts corresponding to each token type being deposited. The function iterates through these",
7288
- "amounts and the `remaining_accounts` to perform deposits.",
7289
- "* `remaining_accounts` - A mutable reference to a vector of AccountInfo<'info>, which are dynamically",
7290
- "included in the transaction to support the deposit or withdrawal operations. These accounts must be",
7291
- "provided in multiples of four for each type of token being processed, with each group of four accounts",
7292
- "representing a distinct set of roles necessary for a single operation:",
7293
- "",
7294
- "- Mint account: The first account in each group identifies the mint of the token being deposited",
7295
- "or withdrawn. This account determines the type of token the operation will affect.",
7296
- "",
7297
- "- Deposit token account: The second account in the group is the source account for deposits,",
7298
- "indicating where the tokens are coming from during a deposit operation.",
7299
- "",
7300
- "- Passthrough token account: The third account is designated as the passthrough account. For deposits,",
7301
- "it receives tokens from the deposit token account. For withdrawals, tokens are moved from this account",
7302
- "to the user's wallet.",
7303
- "",
7304
- "- Fee token account: The fourth and final account in each group is used to collect fees associated",
7305
- "with the transaction. It may be involved in both deposits and withdrawals, depending on the",
7306
- "operation's specifics and the smart contract's fee logic.",
7307
- "",
7308
- "These accounts facilitate the movement of tokens with considerations for fees, ensuring that all",
7309
- "necessary token accounts are addressed within a single instruction for efficiency and atomicity.",
7310
- "",
7311
- "This function prepares the required accounts and forwards the call to `deposit_multiple` with the correct parameters,",
7312
- "ensuring the atomicity of multiple token deposits in one transaction."
7313
- ];
7314
6001
  "accounts": [
7315
6002
  {
7316
6003
  "name": "farm";
7317
6004
  "isMut": false;
7318
6005
  "isSigner": false;
7319
- "docs": [
7320
- "Hawksight multi-index farm"
7321
- ];
7322
6006
  },
7323
6007
  {
7324
6008
  "name": "userPda";
7325
6009
  "isMut": true;
7326
6010
  "isSigner": false;
7327
- "docs": [
7328
- "User PDA account, relative to the given farm"
7329
- ];
7330
6011
  "pda": {
7331
6012
  "seeds": [
7332
6013
  {
@@ -7352,9 +6033,6 @@ export type IndexYieldFarming = {
7352
6033
  "name": "payer";
7353
6034
  "isMut": false;
7354
6035
  "isSigner": true;
7355
- "docs": [
7356
- "Account payer and authority of the user pda"
7357
- ];
7358
6036
  },
7359
6037
  {
7360
6038
  "name": "hsFeeOwner";
@@ -7370,17 +6048,11 @@ export type IndexYieldFarming = {
7370
6048
  "name": "tokenProgram";
7371
6049
  "isMut": false;
7372
6050
  "isSigner": false;
7373
- "docs": [
7374
- "Token program"
7375
- ];
7376
6051
  },
7377
6052
  {
7378
6053
  "name": "systemProgram";
7379
6054
  "isMut": false;
7380
6055
  "isSigner": false;
7381
- "docs": [
7382
- "System proram"
7383
- ];
7384
6056
  }
7385
6057
  ];
7386
6058
  "args": [
@@ -7394,55 +6066,16 @@ export type IndexYieldFarming = {
7394
6066
  },
7395
6067
  {
7396
6068
  "name": "depositMultipleTokenV2";
7397
- "docs": [
7398
- "Facilitates the deposit of multiple token types from the user's wallet into corresponding passthrough accounts.",
7399
- "This operation utilizes the `deposit_multiple` method, which may also create destination token accounts if necessary",
7400
- "using the CreateIdempotent instruction, ensuring a seamless deposit experience.",
7401
- "",
7402
- "# Arguments",
7403
- "* `amounts` - A vector of amounts corresponding to each token type being deposited. The function iterates through these",
7404
- "amounts and the `remaining_accounts` to perform deposits.",
7405
- "* `remaining_accounts` - A mutable reference to a vector of AccountInfo<'info>, which are dynamically",
7406
- "included in the transaction to support the deposit or withdrawal operations. These accounts must be",
7407
- "provided in multiples of four for each type of token being processed, with each group of four accounts",
7408
- "representing a distinct set of roles necessary for a single operation:",
7409
- "",
7410
- "- Mint account: The first account in each group identifies the mint of the token being deposited",
7411
- "or withdrawn. This account determines the type of token the operation will affect.",
7412
- "",
7413
- "- Deposit token account: The second account in the group is the source account for deposits,",
7414
- "indicating where the tokens are coming from during a deposit operation.",
7415
- "",
7416
- "- Passthrough token account: The third account is designated as the passthrough account. For deposits,",
7417
- "it receives tokens from the deposit token account. For withdrawals, tokens are moved from this account",
7418
- "to the user's wallet.",
7419
- "",
7420
- "- Fee token account: The fourth and final account in each group is used to collect fees associated",
7421
- "with the transaction. It may be involved in both deposits and withdrawals, depending on the",
7422
- "operation's specifics and the smart contract's fee logic.",
7423
- "",
7424
- "These accounts facilitate the movement of tokens with considerations for fees, ensuring that all",
7425
- "necessary token accounts are addressed within a single instruction for efficiency and atomicity.",
7426
- "",
7427
- "This function prepares the required accounts and forwards the call to `deposit_multiple` with the correct parameters,",
7428
- "ensuring the atomicity of multiple token deposits in one transaction."
7429
- ];
7430
6069
  "accounts": [
7431
6070
  {
7432
6071
  "name": "farm";
7433
6072
  "isMut": false;
7434
6073
  "isSigner": false;
7435
- "docs": [
7436
- "Hawksight multi-index farm"
7437
- ];
7438
6074
  },
7439
6075
  {
7440
6076
  "name": "userPda";
7441
6077
  "isMut": true;
7442
6078
  "isSigner": false;
7443
- "docs": [
7444
- "User PDA account, relative to the given farm"
7445
- ];
7446
6079
  "pda": {
7447
6080
  "seeds": [
7448
6081
  {
@@ -7468,9 +6101,6 @@ export type IndexYieldFarming = {
7468
6101
  "name": "payer";
7469
6102
  "isMut": false;
7470
6103
  "isSigner": true;
7471
- "docs": [
7472
- "Account payer and authority of the user pda"
7473
- ];
7474
6104
  },
7475
6105
  {
7476
6106
  "name": "hsFeeOwner";
@@ -7486,17 +6116,11 @@ export type IndexYieldFarming = {
7486
6116
  "name": "tokenProgram";
7487
6117
  "isMut": false;
7488
6118
  "isSigner": false;
7489
- "docs": [
7490
- "Token program"
7491
- ];
7492
6119
  },
7493
6120
  {
7494
6121
  "name": "systemProgram";
7495
6122
  "isMut": false;
7496
6123
  "isSigner": false;
7497
- "docs": [
7498
- "System proram"
7499
- ];
7500
6124
  }
7501
6125
  ];
7502
6126
  "args": [
@@ -7514,53 +6138,16 @@ export type IndexYieldFarming = {
7514
6138
  },
7515
6139
  {
7516
6140
  "name": "withdrawMultipleToken";
7517
- "docs": [
7518
- "Handles the withdrawal of multiple token types from passthrough accounts back to the user's wallet.",
7519
- "Similar to the deposit operation, this method utilizes the `withdraw_multiple` method to conduct",
7520
- "withdrawals, which includes closing the passthrough accounts and refunding the rent to the user's wallet.",
7521
- "",
7522
- "# Arguments",
7523
- "* `remaining_accounts` - A mutable reference to a vector of AccountInfo<'info>, which are dynamically",
7524
- "included in the transaction to support the deposit or withdrawal operations. These accounts must be",
7525
- "provided in multiples of four for each type of token being processed, with each group of four accounts",
7526
- "representing a distinct set of roles necessary for a single operation:",
7527
- "",
7528
- "- Mint account: The first account in each group identifies the mint of the token being deposited",
7529
- "or withdrawn. This account determines the type of token the operation will affect.",
7530
- "",
7531
- "- Deposit token account: The second account in the group is the source account for deposits,",
7532
- "indicating where the tokens are coming from during a deposit operation.",
7533
- "",
7534
- "- Passthrough token account: The third account is designated as the passthrough account. For deposits,",
7535
- "it receives tokens from the deposit token account. For withdrawals, tokens are moved from this account",
7536
- "to the user's wallet.",
7537
- "",
7538
- "- Fee token account: The fourth and final account in each group is used to collect fees associated",
7539
- "with the transaction. It may be involved in both deposits and withdrawals, depending on the",
7540
- "operation's specifics and the smart contract's fee logic.",
7541
- "",
7542
- "These accounts facilitate the movement of tokens with considerations for fees, ensuring that all",
7543
- "necessary token accounts are addressed within a single instruction for efficiency and atomicity.",
7544
- "",
7545
- "This function prepares the necessary accounts from `ctx.remaining_accounts` and invokes `withdraw_multiple`",
7546
- "to execute the withdrawals and account closures in an atomic manner."
7547
- ];
7548
6141
  "accounts": [
7549
6142
  {
7550
6143
  "name": "farm";
7551
6144
  "isMut": false;
7552
6145
  "isSigner": false;
7553
- "docs": [
7554
- "Hawksight multi-index farm"
7555
- ];
7556
6146
  },
7557
6147
  {
7558
6148
  "name": "userPda";
7559
6149
  "isMut": true;
7560
6150
  "isSigner": false;
7561
- "docs": [
7562
- "User PDA account, relative to the given farm"
7563
- ];
7564
6151
  "pda": {
7565
6152
  "seeds": [
7566
6153
  {
@@ -7586,9 +6173,6 @@ export type IndexYieldFarming = {
7586
6173
  "name": "payer";
7587
6174
  "isMut": false;
7588
6175
  "isSigner": true;
7589
- "docs": [
7590
- "Account payer and authority of the user pda"
7591
- ];
7592
6176
  },
7593
6177
  {
7594
6178
  "name": "hsFeeOwner";
@@ -7604,70 +6188,27 @@ export type IndexYieldFarming = {
7604
6188
  "name": "tokenProgram";
7605
6189
  "isMut": false;
7606
6190
  "isSigner": false;
7607
- "docs": [
7608
- "Token program"
7609
- ];
7610
6191
  },
7611
6192
  {
7612
6193
  "name": "systemProgram";
7613
6194
  "isMut": false;
7614
6195
  "isSigner": false;
7615
- "docs": [
7616
- "System proram"
7617
- ];
7618
6196
  }
7619
6197
  ];
7620
6198
  "args": [];
7621
6199
  },
7622
6200
  {
7623
6201
  "name": "withdrawMultipleTokenV2";
7624
- "docs": [
7625
- "Handles the withdrawal of multiple token types from passthrough accounts back to the user's wallet.",
7626
- "Similar to the deposit operation, this method utilizes the `withdraw_multiple` method to conduct",
7627
- "withdrawals, which includes closing the passthrough accounts and refunding the rent to the user's wallet.",
7628
- "",
7629
- "# Arguments",
7630
- "* `remaining_accounts` - A mutable reference to a vector of AccountInfo<'info>, which are dynamically",
7631
- "included in the transaction to support the deposit or withdrawal operations. These accounts must be",
7632
- "provided in multiples of four for each type of token being processed, with each group of four accounts",
7633
- "representing a distinct set of roles necessary for a single operation:",
7634
- "",
7635
- "- Mint account: The first account in each group identifies the mint of the token being deposited",
7636
- "or withdrawn. This account determines the type of token the operation will affect.",
7637
- "",
7638
- "- Deposit token account: The second account in the group is the source account for deposits,",
7639
- "indicating where the tokens are coming from during a deposit operation.",
7640
- "",
7641
- "- Passthrough token account: The third account is designated as the passthrough account. For deposits,",
7642
- "it receives tokens from the deposit token account. For withdrawals, tokens are moved from this account",
7643
- "to the user's wallet.",
7644
- "",
7645
- "- Fee token account: The fourth and final account in each group is used to collect fees associated",
7646
- "with the transaction. It may be involved in both deposits and withdrawals, depending on the",
7647
- "operation's specifics and the smart contract's fee logic.",
7648
- "",
7649
- "These accounts facilitate the movement of tokens with considerations for fees, ensuring that all",
7650
- "necessary token accounts are addressed within a single instruction for efficiency and atomicity.",
7651
- "",
7652
- "This function prepares the necessary accounts from `ctx.remaining_accounts` and invokes `withdraw_multiple`",
7653
- "to execute the withdrawals and account closures in an atomic manner."
7654
- ];
7655
6202
  "accounts": [
7656
6203
  {
7657
6204
  "name": "farm";
7658
6205
  "isMut": false;
7659
6206
  "isSigner": false;
7660
- "docs": [
7661
- "Hawksight multi-index farm"
7662
- ];
7663
6207
  },
7664
6208
  {
7665
6209
  "name": "userPda";
7666
6210
  "isMut": true;
7667
6211
  "isSigner": false;
7668
- "docs": [
7669
- "User PDA account, relative to the given farm"
7670
- ];
7671
6212
  "pda": {
7672
6213
  "seeds": [
7673
6214
  {
@@ -7693,9 +6234,6 @@ export type IndexYieldFarming = {
7693
6234
  "name": "payer";
7694
6235
  "isMut": false;
7695
6236
  "isSigner": true;
7696
- "docs": [
7697
- "Account payer and authority of the user pda"
7698
- ];
7699
6237
  },
7700
6238
  {
7701
6239
  "name": "hsFeeOwner";
@@ -7711,17 +6249,11 @@ export type IndexYieldFarming = {
7711
6249
  "name": "tokenProgram";
7712
6250
  "isMut": false;
7713
6251
  "isSigner": false;
7714
- "docs": [
7715
- "Token program"
7716
- ];
7717
6252
  },
7718
6253
  {
7719
6254
  "name": "systemProgram";
7720
6255
  "isMut": false;
7721
6256
  "isSigner": false;
7722
- "docs": [
7723
- "System proram"
7724
- ];
7725
6257
  }
7726
6258
  ];
7727
6259
  "args": [
@@ -7746,9 +6278,6 @@ export type IndexYieldFarming = {
7746
6278
  "name": "userPda";
7747
6279
  "isMut": false;
7748
6280
  "isSigner": false;
7749
- "docs": [
7750
- "Hawksight user pda"
7751
- ];
7752
6281
  "pda": {
7753
6282
  "seeds": [
7754
6283
  {
@@ -7769,25 +6298,16 @@ export type IndexYieldFarming = {
7769
6298
  }
7770
6299
  ];
7771
6300
  };
7772
- "relations": [
7773
- "authority"
7774
- ];
7775
6301
  },
7776
6302
  {
7777
6303
  "name": "authority";
7778
6304
  "isMut": true;
7779
6305
  "isSigner": true;
7780
- "docs": [
7781
- "User wallet"
7782
- ];
7783
6306
  },
7784
6307
  {
7785
6308
  "name": "meteoraProgram";
7786
6309
  "isMut": false;
7787
6310
  "isSigner": false;
7788
- "docs": [
7789
- "Meteora Program"
7790
- ];
7791
6311
  }
7792
6312
  ];
7793
6313
  "args": [
@@ -7799,35 +6319,11 @@ export type IndexYieldFarming = {
7799
6319
  },
7800
6320
  {
7801
6321
  "name": "initializeStorageTokenAccount";
7802
- "docs": [
7803
- "Initializes a storage token account indempotently.",
7804
- "This operation checks if the storage_token_account is already set up. If so, it confirms the token account is owned by the specified `user_pda` and associated with the given `mint`. If not already initialized, it proceeds with the setup.",
7805
- "",
7806
- "Account Metadata:",
7807
- "- user_pda: The target user's PDA account.",
7808
- "- payer (signed, mutable): Account who will pay for the initialization / verification.",
7809
- "- mint: The token mint for which the storage account is being initialized.",
7810
- "- storage_token_account (mutable): The token account to be initialized or verified.",
7811
- "- rent: Account to cover rent exemptions.",
7812
- "- token_program: The SPL Token program account.",
7813
- "- system_program: The System program account.",
7814
- "",
7815
- "Pre-conditions:",
7816
- "- The storage_token_account must be of the `mint` type specified.",
7817
- "- Must be owned by `user_pda`. If these conditions are not met, the instruction fails with an error.",
7818
- "",
7819
- "Usage:",
7820
- "Calling this function initializes or verifies a storage token account.",
7821
- ""
7822
- ];
7823
6322
  "accounts": [
7824
6323
  {
7825
6324
  "name": "userPda";
7826
6325
  "isMut": false;
7827
6326
  "isSigner": false;
7828
- "docs": [
7829
- "User PDA account"
7830
- ];
7831
6327
  "pda": {
7832
6328
  "seeds": [
7833
6329
  {
@@ -7859,17 +6355,11 @@ export type IndexYieldFarming = {
7859
6355
  "name": "mint";
7860
6356
  "isMut": false;
7861
6357
  "isSigner": false;
7862
- "docs": [
7863
- "Mint of token accounts to be transferred"
7864
- ];
7865
6358
  },
7866
6359
  {
7867
6360
  "name": "storageTokenAccount";
7868
6361
  "isMut": true;
7869
6362
  "isSigner": false;
7870
- "docs": [
7871
- "Storage token account owned by user pda"
7872
- ];
7873
6363
  "pda": {
7874
6364
  "seeds": [
7875
6365
  {
@@ -7896,42 +6386,27 @@ export type IndexYieldFarming = {
7896
6386
  "name": "rent";
7897
6387
  "isMut": false;
7898
6388
  "isSigner": false;
7899
- "docs": [
7900
- "Rent sysvar"
7901
- ];
7902
6389
  },
7903
6390
  {
7904
6391
  "name": "tokenProgram";
7905
6392
  "isMut": false;
7906
6393
  "isSigner": false;
7907
- "docs": [
7908
- "SPL Token program."
7909
- ];
7910
6394
  },
7911
6395
  {
7912
6396
  "name": "systemProgram";
7913
6397
  "isMut": false;
7914
6398
  "isSigner": false;
7915
- "docs": [
7916
- "System Program"
7917
- ];
7918
6399
  }
7919
6400
  ];
7920
6401
  "args": [];
7921
6402
  },
7922
6403
  {
7923
6404
  "name": "setTransactionSlot";
7924
- "docs": [
7925
- "Set transaction slot to current clock"
7926
- ];
7927
6405
  "accounts": [
7928
6406
  {
7929
6407
  "name": "userPda";
7930
6408
  "isMut": true;
7931
6409
  "isSigner": false;
7932
- "docs": [
7933
- "User PDA"
7934
- ];
7935
6410
  "pda": {
7936
6411
  "seeds": [
7937
6412
  {
@@ -7964,17 +6439,11 @@ export type IndexYieldFarming = {
7964
6439
  },
7965
6440
  {
7966
6441
  "name": "verifyTransactionSlot";
7967
- "docs": [
7968
- "Verify transaction slot to be the same from user pda"
7969
- ];
7970
6442
  "accounts": [
7971
6443
  {
7972
6444
  "name": "userPda";
7973
6445
  "isMut": true;
7974
6446
  "isSigner": false;
7975
- "docs": [
7976
- "User PDA"
7977
- ];
7978
6447
  "pda": {
7979
6448
  "seeds": [
7980
6449
  {
@@ -8012,25 +6481,16 @@ export type IndexYieldFarming = {
8012
6481
  "name": "authority";
8013
6482
  "isMut": true;
8014
6483
  "isSigner": true;
8015
- "docs": [
8016
- "Only hawksight authority can execute this instruction (for now)"
8017
- ];
8018
6484
  },
8019
6485
  {
8020
6486
  "name": "tokenProgram";
8021
6487
  "isMut": false;
8022
6488
  "isSigner": false;
8023
- "docs": [
8024
- "Token program"
8025
- ];
8026
6489
  },
8027
6490
  {
8028
6491
  "name": "userPda";
8029
6492
  "isMut": false;
8030
6493
  "isSigner": false;
8031
- "docs": [
8032
- "User transfer authority"
8033
- ];
8034
6494
  "pda": {
8035
6495
  "seeds": [
8036
6496
  {
@@ -8057,25 +6517,16 @@ export type IndexYieldFarming = {
8057
6517
  "name": "userSourceTokenAccount";
8058
6518
  "isMut": true;
8059
6519
  "isSigner": false;
8060
- "docs": [
8061
- "Input token account"
8062
- ];
8063
6520
  },
8064
6521
  {
8065
6522
  "name": "userDestinationTokenAccount";
8066
6523
  "isMut": true;
8067
6524
  "isSigner": false;
8068
- "docs": [
8069
- "Output token account"
8070
- ];
8071
6525
  },
8072
6526
  {
8073
6527
  "name": "destinationMint";
8074
6528
  "isMut": false;
8075
6529
  "isSigner": false;
8076
- "docs": [
8077
- "Destination mint"
8078
- ];
8079
6530
  },
8080
6531
  {
8081
6532
  "name": "platformFeeAccount";
@@ -8091,9 +6542,6 @@ export type IndexYieldFarming = {
8091
6542
  "name": "jupiterProgram";
8092
6543
  "isMut": false;
8093
6544
  "isSigner": false;
8094
- "docs": [
8095
- "Jupiter Program"
8096
- ];
8097
6545
  }
8098
6546
  ];
8099
6547
  "args": [
@@ -8122,9 +6570,6 @@ export type IndexYieldFarming = {
8122
6570
  "name": "userPda";
8123
6571
  "isMut": false;
8124
6572
  "isSigner": false;
8125
- "docs": [
8126
- "User PDA account, relative to the given farm"
8127
- ];
8128
6573
  "pda": {
8129
6574
  "seeds": [
8130
6575
  {
@@ -8151,9 +6596,6 @@ export type IndexYieldFarming = {
8151
6596
  "name": "hsAuthority";
8152
6597
  "isMut": true;
8153
6598
  "isSigner": true;
8154
- "docs": [
8155
- "Hawksight authority wallet"
8156
- ];
8157
6599
  },
8158
6600
  {
8159
6601
  "name": "userTokenAccount";
@@ -8164,9 +6606,6 @@ export type IndexYieldFarming = {
8164
6606
  "name": "tokenProgram";
8165
6607
  "isMut": false;
8166
6608
  "isSigner": false;
8167
- "docs": [
8168
- "Token program"
8169
- ];
8170
6609
  }
8171
6610
  ];
8172
6611
  "args": [];
@@ -8178,17 +6617,11 @@ export type IndexYieldFarming = {
8178
6617
  "name": "raydiumProgram";
8179
6618
  "isMut": false;
8180
6619
  "isSigner": false;
8181
- "docs": [
8182
- "Raydium Program"
8183
- ];
8184
6620
  },
8185
6621
  {
8186
6622
  "name": "userPda";
8187
6623
  "isMut": false;
8188
6624
  "isSigner": false;
8189
- "docs": [
8190
- "Hawksight user pda"
8191
- ];
8192
6625
  "pda": {
8193
6626
  "seeds": [
8194
6627
  {
@@ -8209,25 +6642,16 @@ export type IndexYieldFarming = {
8209
6642
  }
8210
6643
  ];
8211
6644
  };
8212
- "relations": [
8213
- "authority"
8214
- ];
8215
6645
  },
8216
6646
  {
8217
6647
  "name": "authority";
8218
6648
  "isMut": false;
8219
6649
  "isSigner": true;
8220
- "docs": [
8221
- "User wallet or Hawk-fi authority account"
8222
- ];
8223
6650
  },
8224
6651
  {
8225
6652
  "name": "nftOwner";
8226
6653
  "isMut": true;
8227
6654
  "isSigner": false;
8228
- "docs": [
8229
- "NFT Owner (user pda lamport)"
8230
- ];
8231
6655
  "pda": {
8232
6656
  "seeds": [
8233
6657
  {
@@ -8259,9 +6683,6 @@ export type IndexYieldFarming = {
8259
6683
  "name": "userPda";
8260
6684
  "isMut": true;
8261
6685
  "isSigner": false;
8262
- "docs": [
8263
- "User PDA account, relative to the given farm"
8264
- ];
8265
6686
  "pda": {
8266
6687
  "seeds": [
8267
6688
  {
@@ -8287,9 +6708,6 @@ export type IndexYieldFarming = {
8287
6708
  "name": "userPdaLamport";
8288
6709
  "isMut": true;
8289
6710
  "isSigner": false;
8290
- "docs": [
8291
- "User PDA lamport passthrough account"
8292
- ];
8293
6711
  "pda": {
8294
6712
  "seeds": [
8295
6713
  {
@@ -8310,9 +6728,6 @@ export type IndexYieldFarming = {
8310
6728
  "name": "payer";
8311
6729
  "isMut": false;
8312
6730
  "isSigner": true;
8313
- "docs": [
8314
- "Account payer and authority of the user pda"
8315
- ];
8316
6731
  },
8317
6732
  {
8318
6733
  "name": "hsFeeOwner";
@@ -8328,17 +6743,11 @@ export type IndexYieldFarming = {
8328
6743
  "name": "tokenProgram";
8329
6744
  "isMut": false;
8330
6745
  "isSigner": false;
8331
- "docs": [
8332
- "Token program"
8333
- ];
8334
6746
  },
8335
6747
  {
8336
6748
  "name": "systemProgram";
8337
6749
  "isMut": false;
8338
6750
  "isSigner": false;
8339
- "docs": [
8340
- "System proram"
8341
- ];
8342
6751
  }
8343
6752
  ];
8344
6753
  "args": [
@@ -8361,9 +6770,6 @@ export type IndexYieldFarming = {
8361
6770
  "name": "userPda";
8362
6771
  "isMut": true;
8363
6772
  "isSigner": false;
8364
- "docs": [
8365
- "User PDA account, relative to the given farm"
8366
- ];
8367
6773
  "pda": {
8368
6774
  "seeds": [
8369
6775
  {
@@ -8389,9 +6795,6 @@ export type IndexYieldFarming = {
8389
6795
  "name": "userPdaLamport";
8390
6796
  "isMut": true;
8391
6797
  "isSigner": false;
8392
- "docs": [
8393
- "User PDA lamport passthrough account"
8394
- ];
8395
6798
  "pda": {
8396
6799
  "seeds": [
8397
6800
  {
@@ -8412,9 +6815,6 @@ export type IndexYieldFarming = {
8412
6815
  "name": "payer";
8413
6816
  "isMut": false;
8414
6817
  "isSigner": true;
8415
- "docs": [
8416
- "Account payer and authority of the user pda"
8417
- ];
8418
6818
  },
8419
6819
  {
8420
6820
  "name": "hsFeeOwner";
@@ -8430,17 +6830,11 @@ export type IndexYieldFarming = {
8430
6830
  "name": "tokenProgram";
8431
6831
  "isMut": false;
8432
6832
  "isSigner": false;
8433
- "docs": [
8434
- "Token program"
8435
- ];
8436
6833
  },
8437
6834
  {
8438
6835
  "name": "systemProgram";
8439
6836
  "isMut": false;
8440
6837
  "isSigner": false;
8441
- "docs": [
8442
- "System proram"
8443
- ];
8444
6838
  }
8445
6839
  ];
8446
6840
  "args": [
@@ -8452,17 +6846,11 @@ export type IndexYieldFarming = {
8452
6846
  },
8453
6847
  {
8454
6848
  "name": "iyfExtensionExecuteV2";
8455
- "docs": [
8456
- "Iyf Extension v2 (without the unnecessary accounts)"
8457
- ];
8458
6849
  "accounts": [
8459
6850
  {
8460
6851
  "name": "userPda";
8461
6852
  "isMut": false;
8462
6853
  "isSigner": false;
8463
- "docs": [
8464
- "Hawksight user pda"
8465
- ];
8466
6854
  "pda": {
8467
6855
  "seeds": [
8468
6856
  {
@@ -8489,17 +6877,11 @@ export type IndexYieldFarming = {
8489
6877
  "name": "authority";
8490
6878
  "isMut": false;
8491
6879
  "isSigner": true;
8492
- "docs": [
8493
- "User wallet or Hawk-fi authority account"
8494
- ];
8495
6880
  },
8496
6881
  {
8497
6882
  "name": "iyfExtensionProgram";
8498
6883
  "isMut": false;
8499
6884
  "isSigner": false;
8500
- "docs": [
8501
- "Iyf Extension Program"
8502
- ];
8503
6885
  }
8504
6886
  ];
8505
6887
  "args": [
@@ -8511,17 +6893,11 @@ export type IndexYieldFarming = {
8511
6893
  },
8512
6894
  {
8513
6895
  "name": "createLimitToken";
8514
- "docs": [
8515
- "Create limit token accounts"
8516
- ];
8517
6896
  "accounts": [
8518
6897
  {
8519
6898
  "name": "userPda";
8520
6899
  "isMut": false;
8521
6900
  "isSigner": false;
8522
- "docs": [
8523
- "User PDA account"
8524
- ];
8525
6901
  "pda": {
8526
6902
  "seeds": [
8527
6903
  {
@@ -8542,9 +6918,6 @@ export type IndexYieldFarming = {
8542
6918
  }
8543
6919
  ];
8544
6920
  };
8545
- "relations": [
8546
- "authority"
8547
- ];
8548
6921
  },
8549
6922
  {
8550
6923
  "name": "payer";
@@ -8555,17 +6928,11 @@ export type IndexYieldFarming = {
8555
6928
  "name": "authority";
8556
6929
  "isMut": true;
8557
6930
  "isSigner": false;
8558
- "docs": [
8559
- "User wallet"
8560
- ];
8561
6931
  },
8562
6932
  {
8563
6933
  "name": "limitToken";
8564
6934
  "isMut": true;
8565
6935
  "isSigner": false;
8566
- "docs": [
8567
- "Limit token X"
8568
- ];
8569
6936
  "pda": {
8570
6937
  "seeds": [
8571
6938
  {
@@ -8592,50 +6959,32 @@ export type IndexYieldFarming = {
8592
6959
  "name": "mint";
8593
6960
  "isMut": false;
8594
6961
  "isSigner": false;
8595
- "docs": [
8596
- "Token mint"
8597
- ];
8598
6962
  },
8599
6963
  {
8600
6964
  "name": "rent";
8601
6965
  "isMut": false;
8602
6966
  "isSigner": false;
8603
- "docs": [
8604
- "Rent sysvar"
8605
- ];
8606
6967
  },
8607
6968
  {
8608
6969
  "name": "tokenProgram";
8609
6970
  "isMut": false;
8610
6971
  "isSigner": false;
8611
- "docs": [
8612
- "SPL Token program."
8613
- ];
8614
6972
  },
8615
6973
  {
8616
6974
  "name": "systemProgram";
8617
6975
  "isMut": false;
8618
6976
  "isSigner": false;
8619
- "docs": [
8620
- "System Program"
8621
- ];
8622
6977
  }
8623
6978
  ];
8624
6979
  "args": [];
8625
6980
  },
8626
6981
  {
8627
6982
  "name": "closeLimitToken";
8628
- "docs": [
8629
- "Close limit token accounts"
8630
- ];
8631
6983
  "accounts": [
8632
6984
  {
8633
6985
  "name": "userPda";
8634
6986
  "isMut": false;
8635
6987
  "isSigner": false;
8636
- "docs": [
8637
- "User PDA account"
8638
- ];
8639
6988
  "pda": {
8640
6989
  "seeds": [
8641
6990
  {
@@ -8656,9 +7005,6 @@ export type IndexYieldFarming = {
8656
7005
  }
8657
7006
  ];
8658
7007
  };
8659
- "relations": [
8660
- "authority"
8661
- ];
8662
7008
  },
8663
7009
  {
8664
7010
  "name": "payer";
@@ -8669,17 +7015,11 @@ export type IndexYieldFarming = {
8669
7015
  "name": "authority";
8670
7016
  "isMut": true;
8671
7017
  "isSigner": false;
8672
- "docs": [
8673
- "User wallet"
8674
- ];
8675
7018
  },
8676
7019
  {
8677
7020
  "name": "limitToken";
8678
7021
  "isMut": true;
8679
7022
  "isSigner": false;
8680
- "docs": [
8681
- "Limit token X"
8682
- ];
8683
7023
  "pda": {
8684
7024
  "seeds": [
8685
7025
  {
@@ -8706,444 +7046,27 @@ export type IndexYieldFarming = {
8706
7046
  "name": "mint";
8707
7047
  "isMut": false;
8708
7048
  "isSigner": false;
8709
- "docs": [
8710
- "Token mint"
8711
- ];
8712
7049
  },
8713
7050
  {
8714
7051
  "name": "rent";
8715
7052
  "isMut": false;
8716
7053
  "isSigner": false;
8717
- "docs": [
8718
- "Rent sysvar"
8719
- ];
8720
7054
  },
8721
7055
  {
8722
7056
  "name": "tokenProgram";
8723
7057
  "isMut": false;
8724
7058
  "isSigner": false;
8725
- "docs": [
8726
- "SPL Token program."
8727
- ];
8728
7059
  },
8729
7060
  {
8730
7061
  "name": "systemProgram";
8731
7062
  "isMut": false;
8732
7063
  "isSigner": false;
8733
- "docs": [
8734
- "System Program"
8735
- ];
8736
7064
  }
8737
7065
  ];
8738
7066
  "args": [];
8739
- },
8740
- {
8741
- "name": "fuelDeposit";
8742
- "docs": [
8743
- "Deposit lamports to fuel account"
8744
- ];
8745
- "accounts": [
8746
- {
8747
- "name": "userPda";
8748
- "isMut": false;
8749
- "isSigner": false;
8750
- "docs": [
8751
- "User PDA"
8752
- ];
8753
- "pda": {
8754
- "seeds": [
8755
- {
8756
- "kind": "const";
8757
- "type": "string";
8758
- "value": "multi-user";
8759
- },
8760
- {
8761
- "kind": "account";
8762
- "type": "publicKey";
8763
- "account": "UserAccountMulti";
8764
- "path": "user_pda.farm";
8765
- },
8766
- {
8767
- "kind": "account";
8768
- "type": "publicKey";
8769
- "path": "authority";
8770
- }
8771
- ];
8772
- };
8773
- },
8774
- {
8775
- "name": "authority";
8776
- "isMut": true;
8777
- "isSigner": true;
8778
- "docs": [
8779
- "Transaction payer, user pda authority, and source of lamports"
8780
- ];
8781
- },
8782
- {
8783
- "name": "fuelAccount";
8784
- "isMut": true;
8785
- "isSigner": false;
8786
- "docs": [
8787
- "User PDA lamport passthrough account",
8788
- "The fuel account owner is user wallet, since it's possible that PDA owner could be user-pda-lamport (case of raydium)"
8789
- ];
8790
- "pda": {
8791
- "seeds": [
8792
- {
8793
- "kind": "const";
8794
- "type": "string";
8795
- "value": "fuel";
8796
- },
8797
- {
8798
- "kind": "account";
8799
- "type": "publicKey";
8800
- "account": "UserAccountMulti";
8801
- "path": "user_pda.authority";
8802
- }
8803
- ];
8804
- };
8805
- },
8806
- {
8807
- "name": "systemProgram";
8808
- "isMut": false;
8809
- "isSigner": false;
8810
- "docs": [
8811
- "Transfers lamports"
8812
- ];
8813
- }
8814
- ];
8815
- "args": [
8816
- {
8817
- "name": "amount";
8818
- "type": "u64";
8819
- }
8820
- ];
8821
- },
8822
- {
8823
- "name": "fuelWithdraw";
8824
- "docs": [
8825
- "Withdraw lamports from fuel account"
8826
- ];
8827
- "accounts": [
8828
- {
8829
- "name": "userPda";
8830
- "isMut": false;
8831
- "isSigner": false;
8832
- "docs": [
8833
- "User PDA"
8834
- ];
8835
- "pda": {
8836
- "seeds": [
8837
- {
8838
- "kind": "const";
8839
- "type": "string";
8840
- "value": "multi-user";
8841
- },
8842
- {
8843
- "kind": "account";
8844
- "type": "publicKey";
8845
- "account": "UserAccountMulti";
8846
- "path": "user_pda.farm";
8847
- },
8848
- {
8849
- "kind": "account";
8850
- "type": "publicKey";
8851
- "path": "authority";
8852
- }
8853
- ];
8854
- };
8855
- },
8856
- {
8857
- "name": "authority";
8858
- "isMut": true;
8859
- "isSigner": true;
8860
- "docs": [
8861
- "Transaction payer, user pda authority, and source of lamports"
8862
- ];
8863
- },
8864
- {
8865
- "name": "fuelAccount";
8866
- "isMut": true;
8867
- "isSigner": false;
8868
- "docs": [
8869
- "User PDA lamport passthrough account",
8870
- "The fuel account owner is user wallet, since it's possible that PDA owner could be user-pda-lamport (case of raydium)"
8871
- ];
8872
- "pda": {
8873
- "seeds": [
8874
- {
8875
- "kind": "const";
8876
- "type": "string";
8877
- "value": "fuel";
8878
- },
8879
- {
8880
- "kind": "account";
8881
- "type": "publicKey";
8882
- "account": "UserAccountMulti";
8883
- "path": "user_pda.authority";
8884
- }
8885
- ];
8886
- };
8887
- },
8888
- {
8889
- "name": "systemProgram";
8890
- "isMut": false;
8891
- "isSigner": false;
8892
- "docs": [
8893
- "Transfers lamports"
8894
- ];
8895
- }
8896
- ];
8897
- "args": [
8898
- {
8899
- "name": "amount";
8900
- "type": "u64";
8901
- }
8902
- ];
8903
- },
8904
- {
8905
- "name": "wrapFromFuel";
8906
- "docs": [
8907
- "Wrap lamports from fuel account to wsol"
8908
- ];
8909
- "accounts": [
8910
- {
8911
- "name": "userPda";
8912
- "isMut": false;
8913
- "isSigner": false;
8914
- "docs": [
8915
- "User PDA account"
8916
- ];
8917
- "pda": {
8918
- "seeds": [
8919
- {
8920
- "kind": "const";
8921
- "type": "string";
8922
- "value": "multi-user";
8923
- },
8924
- {
8925
- "kind": "account";
8926
- "type": "publicKey";
8927
- "account": "UserAccountMulti";
8928
- "path": "user_pda.farm";
8929
- },
8930
- {
8931
- "kind": "account";
8932
- "type": "publicKey";
8933
- "account": "UserAccountMulti";
8934
- "path": "user_pda.authority";
8935
- }
8936
- ];
8937
- };
8938
- },
8939
- {
8940
- "name": "authority";
8941
- "isMut": true;
8942
- "isSigner": true;
8943
- "docs": [
8944
- "User wallet"
8945
- ];
8946
- },
8947
- {
8948
- "name": "fuelAccount";
8949
- "isMut": true;
8950
- "isSigner": false;
8951
- "docs": [
8952
- "Fuel account"
8953
- ];
8954
- "pda": {
8955
- "seeds": [
8956
- {
8957
- "kind": "const";
8958
- "type": "string";
8959
- "value": "fuel";
8960
- },
8961
- {
8962
- "kind": "account";
8963
- "type": "publicKey";
8964
- "account": "UserAccountMulti";
8965
- "path": "user_pda.authority";
8966
- }
8967
- ];
8968
- };
8969
- },
8970
- {
8971
- "name": "userWrappedSol";
8972
- "isMut": true;
8973
- "isSigner": false;
8974
- "docs": [
8975
- "User's token account for wrapped tokens."
8976
- ];
8977
- },
8978
- {
8979
- "name": "wsolMint";
8980
- "isMut": false;
8981
- "isSigner": false;
8982
- "docs": [
8983
- "WSOL Mint"
8984
- ];
8985
- },
8986
- {
8987
- "name": "rent";
8988
- "isMut": false;
8989
- "isSigner": false;
8990
- "docs": [
8991
- "Rent sysvar"
8992
- ];
8993
- },
8994
- {
8995
- "name": "tokenProgram";
8996
- "isMut": false;
8997
- "isSigner": false;
8998
- "docs": [
8999
- "SPL Token program."
9000
- ];
9001
- },
9002
- {
9003
- "name": "associatedTokenProgram";
9004
- "isMut": false;
9005
- "isSigner": false;
9006
- "docs": [
9007
- "Associated token program required to create user_wrapped_sol"
9008
- ];
9009
- },
9010
- {
9011
- "name": "systemProgram";
9012
- "isMut": false;
9013
- "isSigner": false;
9014
- "docs": [
9015
- "System Program"
9016
- ];
9017
- }
9018
- ];
9019
- "args": [
9020
- {
9021
- "name": "amount";
9022
- "type": {
9023
- "option": "u64";
9024
- };
9025
- }
9026
- ];
9027
- },
9028
- {
9029
- "name": "unwrapToFuel";
9030
- "docs": [
9031
- "Unwrap wsol to lamports (to fuel account)"
9032
- ];
9033
- "accounts": [
9034
- {
9035
- "name": "userPda";
9036
- "isMut": false;
9037
- "isSigner": false;
9038
- "docs": [
9039
- "User PDA account"
9040
- ];
9041
- "pda": {
9042
- "seeds": [
9043
- {
9044
- "kind": "const";
9045
- "type": "string";
9046
- "value": "multi-user";
9047
- },
9048
- {
9049
- "kind": "account";
9050
- "type": "publicKey";
9051
- "account": "UserAccountMulti";
9052
- "path": "user_pda.farm";
9053
- },
9054
- {
9055
- "kind": "account";
9056
- "type": "publicKey";
9057
- "account": "UserAccountMulti";
9058
- "path": "user_pda.authority";
9059
- }
9060
- ];
9061
- };
9062
- },
9063
- {
9064
- "name": "authority";
9065
- "isMut": true;
9066
- "isSigner": true;
9067
- "docs": [
9068
- "User wallet"
9069
- ];
9070
- },
9071
- {
9072
- "name": "fuelAccount";
9073
- "isMut": true;
9074
- "isSigner": false;
9075
- "docs": [
9076
- "Fuel account"
9077
- ];
9078
- "pda": {
9079
- "seeds": [
9080
- {
9081
- "kind": "const";
9082
- "type": "string";
9083
- "value": "fuel";
9084
- },
9085
- {
9086
- "kind": "account";
9087
- "type": "publicKey";
9088
- "account": "UserAccountMulti";
9089
- "path": "user_pda.authority";
9090
- }
9091
- ];
9092
- };
9093
- },
9094
- {
9095
- "name": "userWrappedSol";
9096
- "isMut": true;
9097
- "isSigner": false;
9098
- "docs": [
9099
- "User's token account for wrapped tokens."
9100
- ];
9101
- },
9102
- {
9103
- "name": "wsolMint";
9104
- "isMut": false;
9105
- "isSigner": false;
9106
- "docs": [
9107
- "WSOL Mint"
9108
- ];
9109
- },
9110
- {
9111
- "name": "rent";
9112
- "isMut": false;
9113
- "isSigner": false;
9114
- "docs": [
9115
- "Rent sysvar"
9116
- ];
9117
- },
9118
- {
9119
- "name": "tokenProgram";
9120
- "isMut": false;
9121
- "isSigner": false;
9122
- "docs": [
9123
- "SPL Token program."
9124
- ];
9125
- },
9126
- {
9127
- "name": "associatedTokenProgram";
9128
- "isMut": false;
9129
- "isSigner": false;
9130
- "docs": [
9131
- "Associated token program required to create user_wrapped_sol"
9132
- ];
9133
- },
9134
- {
9135
- "name": "systemProgram";
9136
- "isMut": false;
9137
- "isSigner": false;
9138
- "docs": [
9139
- "System Program"
9140
- ];
9141
- }
9142
- ];
9143
- "args": [];
9144
- }
9145
- ];
9146
- "accounts": [
7067
+ }
7068
+ ];
7069
+ "accounts": [
9147
7070
  {
9148
7071
  "name": "stateAccount";
9149
7072
  "type": {
@@ -9364,9 +7287,6 @@ export type IndexYieldFarming = {
9364
7287
  },
9365
7288
  {
9366
7289
  "name": "UserAssetInfo";
9367
- "docs": [
9368
- "Deprecated: We kept this to be compatible with saber instructions"
9369
- ];
9370
7290
  "type": {
9371
7291
  "kind": "struct";
9372
7292
  "fields": [
@@ -9783,11 +7703,6 @@ export type IndexYieldFarming = {
9783
7703
  "code": 6036;
9784
7704
  "name": "InvalidNumOfAmountsInWithdrawMultiple";
9785
7705
  "msg": "Invalid number of amounts in withdraw instruction";
9786
- },
9787
- {
9788
- "code": 6037;
9789
- "name": "InvalidFuelAccount";
9790
- "msg": "Invalid fuel account";
9791
7706
  }
9792
7707
  ];
9793
7708
  };