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