@glamsystems/glam-sdk 1.0.14-alpha.4 → 1.0.14-alpha.6
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/index.cjs.js +50322 -20832
- package/index.esm.js +50167 -20833
- package/package.json +3 -3
- package/target/idl/ext_jupiter-staging.json +1960 -0
- package/target/idl/ext_jupiter.json +1960 -0
- package/target/idl/ext_orca-staging.json +2797 -0
- package/target/idl/ext_orca.json +2797 -0
- package/target/idl/glam_mint-staging.json +1452 -80
- package/target/idl/glam_mint.json +256 -1
- package/target/idl/glam_protocol-staging.json +22 -2
- package/target/idl/glam_protocol.json +584 -0
- package/target/types/ext_jupiter-staging.ts +1966 -0
- package/target/types/ext_jupiter.ts +1966 -0
- package/target/types/ext_orca-staging.ts +2803 -0
- package/target/types/ext_orca.ts +2803 -0
- package/target/types/glam_mint-staging.ts +1452 -80
- package/target/types/glam_mint.ts +256 -1
- package/target/types/glam_protocol-staging.ts +22 -2
- package/target/types/glam_protocol.ts +584 -0
- package/src/assets.d.ts +0 -40
- package/src/client/access.d.ts +0 -57
- package/src/client/base.d.ts +0 -180
- package/src/client/bridge.d.ts +0 -185
- package/src/client/bridgeRegistry.d.ts +0 -32
- package/src/client/cctp.d.ts +0 -156
- package/src/client/epi.d.ts +0 -78
- package/src/client/fees.d.ts +0 -33
- package/src/client/invest.d.ts +0 -37
- package/src/client/jupiter.d.ts +0 -45
- package/src/client/kamino/farm.d.ts +0 -39
- package/src/client/kamino/index.d.ts +0 -4
- package/src/client/kamino/lending.d.ts +0 -86
- package/src/client/kamino/types.d.ts +0 -56
- package/src/client/kamino/vaults.d.ts +0 -31
- package/src/client/marinade.d.ts +0 -42
- package/src/client/mint.d.ts +0 -127
- package/src/client/price.d.ts +0 -128
- package/src/client/stake-pool.d.ts +0 -39
- package/src/client/stake.d.ts +0 -34
- package/src/client/state.d.ts +0 -56
- package/src/client/timelock.d.ts +0 -31
- package/src/client/vault.d.ts +0 -90
- package/src/client.d.ts +0 -62
- package/src/clientConfig.d.ts +0 -29
- package/src/constants.d.ts +0 -82
- package/src/deser/base.d.ts +0 -18
- package/src/deser/index.d.ts +0 -3
- package/src/deser/integrationPolicies.d.ts +0 -106
- package/src/deser/kaminoLayouts.d.ts +0 -264
- package/src/deser/tokenAclLayouts.d.ts +0 -67
- package/src/error.d.ts +0 -29
- package/src/glamExports.d.ts +0 -5563
- package/src/globalConfig.d.ts +0 -22
- package/src/index.d.ts +0 -18
- package/src/models/acl.d.ts +0 -43
- package/src/models/index.d.ts +0 -8
- package/src/models/mint.d.ts +0 -64
- package/src/models/state.d.ts +0 -104
- package/src/models/types.d.ts +0 -28
- package/src/react/cluster-provider.d.ts +0 -22
- package/src/react/glam.d.ts +0 -47
- package/src/react/index.d.ts +0 -5
- package/src/react/query-keys.d.ts +0 -38
- package/src/react/useVaultBalanceSubscription.d.ts +0 -17
- package/src/utils/accounts.d.ts +0 -72
- package/src/utils/bitmask.d.ts +0 -53
- package/src/utils/blockhash.d.ts +0 -11
- package/src/utils/common.d.ts +0 -37
- package/src/utils/computeBudget.d.ts +0 -15
- package/src/utils/evm.d.ts +0 -10
- package/src/utils/fraction.d.ts +0 -29
- package/src/utils/glamPDAs.d.ts +0 -14
- package/src/utils/index.d.ts +0 -16
- package/src/utils/jupiterApi.d.ts +0 -89
- package/src/utils/lookupTables.d.ts +0 -53
- package/src/utils/pkmap.d.ts +0 -82
- package/src/utils/pkset.d.ts +0 -73
- package/src/utils/positionCategorizer.d.ts +0 -36
- package/src/utils/rpc.d.ts +0 -33
- package/src/utils/timelock.d.ts +0 -52
- package/src/utils/transaction.d.ts +0 -13
- package/target/types/ext_bridge.d.ts +0 -2385
- package/target/types/ext_cctp.d.ts +0 -1268
- package/target/types/ext_epi.d.ts +0 -2175
- package/target/types/ext_kamino.d.ts +0 -3433
- package/target/types/ext_marinade.d.ts +0 -1593
- package/target/types/ext_spl.d.ts +0 -1274
- package/target/types/ext_stake_pool.d.ts +0 -1622
- package/target/types/glam_config.d.ts +0 -755
- package/target/types/glam_mint.d.ts +0 -6094
- package/target/types/glam_protocol.d.ts +0 -2708
|
@@ -8,7 +8,7 @@ export type GlamMint = {
|
|
|
8
8
|
"address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5",
|
|
9
9
|
"metadata": {
|
|
10
10
|
"name": "glamMint",
|
|
11
|
-
"version": "1.0.
|
|
11
|
+
"version": "1.0.3",
|
|
12
12
|
"spec": "0.1.0",
|
|
13
13
|
"description": "GLAM mint program"
|
|
14
14
|
},
|
|
@@ -2512,23 +2512,1201 @@ export type GlamMint = {
|
|
|
2512
2512
|
}
|
|
2513
2513
|
]
|
|
2514
2514
|
},
|
|
2515
|
+
{
|
|
2516
|
+
"name": "priceBridgeManagedTransfers",
|
|
2517
|
+
"docs": [
|
|
2518
|
+
"Price bridge managed transfers.",
|
|
2519
|
+
"",
|
|
2520
|
+
"Extra accounts:",
|
|
2521
|
+
"- bridge registry account"
|
|
2522
|
+
],
|
|
2523
|
+
"discriminator": [
|
|
2524
|
+
15,
|
|
2525
|
+
249,
|
|
2526
|
+
66,
|
|
2527
|
+
19,
|
|
2528
|
+
107,
|
|
2529
|
+
71,
|
|
2530
|
+
41,
|
|
2531
|
+
51
|
|
2532
|
+
],
|
|
2533
|
+
"accounts": [
|
|
2534
|
+
{
|
|
2535
|
+
"name": "glamState",
|
|
2536
|
+
"writable": true
|
|
2537
|
+
},
|
|
2538
|
+
{
|
|
2539
|
+
"name": "glamVault",
|
|
2540
|
+
"pda": {
|
|
2541
|
+
"seeds": [
|
|
2542
|
+
{
|
|
2543
|
+
"kind": "const",
|
|
2544
|
+
"value": [
|
|
2545
|
+
118,
|
|
2546
|
+
97,
|
|
2547
|
+
117,
|
|
2548
|
+
108,
|
|
2549
|
+
116
|
|
2550
|
+
]
|
|
2551
|
+
},
|
|
2552
|
+
{
|
|
2553
|
+
"kind": "account",
|
|
2554
|
+
"path": "glamState"
|
|
2555
|
+
}
|
|
2556
|
+
],
|
|
2557
|
+
"program": {
|
|
2558
|
+
"kind": "const",
|
|
2559
|
+
"value": [
|
|
2560
|
+
10,
|
|
2561
|
+
55,
|
|
2562
|
+
49,
|
|
2563
|
+
193,
|
|
2564
|
+
142,
|
|
2565
|
+
247,
|
|
2566
|
+
75,
|
|
2567
|
+
193,
|
|
2568
|
+
33,
|
|
2569
|
+
61,
|
|
2570
|
+
5,
|
|
2571
|
+
218,
|
|
2572
|
+
254,
|
|
2573
|
+
219,
|
|
2574
|
+
143,
|
|
2575
|
+
206,
|
|
2576
|
+
156,
|
|
2577
|
+
138,
|
|
2578
|
+
14,
|
|
2579
|
+
32,
|
|
2580
|
+
89,
|
|
2581
|
+
232,
|
|
2582
|
+
248,
|
|
2583
|
+
173,
|
|
2584
|
+
46,
|
|
2585
|
+
77,
|
|
2586
|
+
46,
|
|
2587
|
+
206,
|
|
2588
|
+
189,
|
|
2589
|
+
171,
|
|
2590
|
+
68,
|
|
2591
|
+
237
|
|
2592
|
+
]
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
},
|
|
2596
|
+
{
|
|
2597
|
+
"name": "signer",
|
|
2598
|
+
"writable": true,
|
|
2599
|
+
"signer": true
|
|
2600
|
+
},
|
|
2601
|
+
{
|
|
2602
|
+
"name": "solUsdOracle"
|
|
2603
|
+
},
|
|
2604
|
+
{
|
|
2605
|
+
"name": "baseAssetOracle"
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
"name": "integrationAuthority",
|
|
2609
|
+
"pda": {
|
|
2610
|
+
"seeds": [
|
|
2611
|
+
{
|
|
2612
|
+
"kind": "const",
|
|
2613
|
+
"value": [
|
|
2614
|
+
105,
|
|
2615
|
+
110,
|
|
2616
|
+
116,
|
|
2617
|
+
101,
|
|
2618
|
+
103,
|
|
2619
|
+
114,
|
|
2620
|
+
97,
|
|
2621
|
+
116,
|
|
2622
|
+
105,
|
|
2623
|
+
111,
|
|
2624
|
+
110,
|
|
2625
|
+
45,
|
|
2626
|
+
97,
|
|
2627
|
+
117,
|
|
2628
|
+
116,
|
|
2629
|
+
104,
|
|
2630
|
+
111,
|
|
2631
|
+
114,
|
|
2632
|
+
105,
|
|
2633
|
+
116,
|
|
2634
|
+
121
|
|
2635
|
+
]
|
|
2636
|
+
}
|
|
2637
|
+
]
|
|
2638
|
+
}
|
|
2639
|
+
},
|
|
2640
|
+
{
|
|
2641
|
+
"name": "glamConfig",
|
|
2642
|
+
"pda": {
|
|
2643
|
+
"seeds": [
|
|
2644
|
+
{
|
|
2645
|
+
"kind": "const",
|
|
2646
|
+
"value": [
|
|
2647
|
+
103,
|
|
2648
|
+
108,
|
|
2649
|
+
111,
|
|
2650
|
+
98,
|
|
2651
|
+
97,
|
|
2652
|
+
108,
|
|
2653
|
+
45,
|
|
2654
|
+
99,
|
|
2655
|
+
111,
|
|
2656
|
+
110,
|
|
2657
|
+
102,
|
|
2658
|
+
105,
|
|
2659
|
+
103
|
|
2660
|
+
]
|
|
2661
|
+
}
|
|
2662
|
+
],
|
|
2663
|
+
"program": {
|
|
2664
|
+
"kind": "const",
|
|
2665
|
+
"value": [
|
|
2666
|
+
10,
|
|
2667
|
+
11,
|
|
2668
|
+
0,
|
|
2669
|
+
83,
|
|
2670
|
+
72,
|
|
2671
|
+
16,
|
|
2672
|
+
46,
|
|
2673
|
+
144,
|
|
2674
|
+
46,
|
|
2675
|
+
42,
|
|
2676
|
+
79,
|
|
2677
|
+
22,
|
|
2678
|
+
157,
|
|
2679
|
+
123,
|
|
2680
|
+
21,
|
|
2681
|
+
242,
|
|
2682
|
+
192,
|
|
2683
|
+
146,
|
|
2684
|
+
1,
|
|
2685
|
+
78,
|
|
2686
|
+
88,
|
|
2687
|
+
59,
|
|
2688
|
+
102,
|
|
2689
|
+
9,
|
|
2690
|
+
190,
|
|
2691
|
+
226,
|
|
2692
|
+
92,
|
|
2693
|
+
189,
|
|
2694
|
+
187,
|
|
2695
|
+
232,
|
|
2696
|
+
83,
|
|
2697
|
+
220
|
|
2698
|
+
]
|
|
2699
|
+
}
|
|
2700
|
+
}
|
|
2701
|
+
},
|
|
2702
|
+
{
|
|
2703
|
+
"name": "glamProtocol",
|
|
2704
|
+
"address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
|
|
2705
|
+
},
|
|
2706
|
+
{
|
|
2707
|
+
"name": "eventAuthority",
|
|
2708
|
+
"optional": true,
|
|
2709
|
+
"pda": {
|
|
2710
|
+
"seeds": [
|
|
2711
|
+
{
|
|
2712
|
+
"kind": "const",
|
|
2713
|
+
"value": [
|
|
2714
|
+
95,
|
|
2715
|
+
95,
|
|
2716
|
+
101,
|
|
2717
|
+
118,
|
|
2718
|
+
101,
|
|
2719
|
+
110,
|
|
2720
|
+
116,
|
|
2721
|
+
95,
|
|
2722
|
+
97,
|
|
2723
|
+
117,
|
|
2724
|
+
116,
|
|
2725
|
+
104,
|
|
2726
|
+
111,
|
|
2727
|
+
114,
|
|
2728
|
+
105,
|
|
2729
|
+
116,
|
|
2730
|
+
121
|
|
2731
|
+
]
|
|
2732
|
+
}
|
|
2733
|
+
]
|
|
2734
|
+
}
|
|
2735
|
+
},
|
|
2736
|
+
{
|
|
2737
|
+
"name": "eventProgram",
|
|
2738
|
+
"optional": true,
|
|
2739
|
+
"address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
|
|
2740
|
+
}
|
|
2741
|
+
],
|
|
2742
|
+
"args": []
|
|
2743
|
+
},
|
|
2515
2744
|
{
|
|
2516
2745
|
"name": "priceDriftUsers",
|
|
2517
2746
|
"docs": [
|
|
2518
2747
|
"Extra accounts for pricing N drift users under the same user stats:",
|
|
2519
2748
|
"- user_stats x 1",
|
|
2520
2749
|
"- drift_user x N",
|
|
2521
|
-
"- markets and oracles used by all drift users (no specific order)"
|
|
2750
|
+
"- markets and oracles used by all drift users (no specific order)",
|
|
2751
|
+
"",
|
|
2752
|
+
"Clients must pre-refresh any stale Drift spot market cumulative interest by",
|
|
2753
|
+
"prepending Drift `update_spot_market_cumulative_interest` instructions for the",
|
|
2754
|
+
"referenced spot markets. Calls will fail with `StaleDriftInterest` if a required",
|
|
2755
|
+
"spot market's cumulative interest is too old."
|
|
2756
|
+
],
|
|
2757
|
+
"discriminator": [
|
|
2758
|
+
12,
|
|
2759
|
+
5,
|
|
2760
|
+
143,
|
|
2761
|
+
51,
|
|
2762
|
+
101,
|
|
2763
|
+
81,
|
|
2764
|
+
200,
|
|
2765
|
+
150
|
|
2766
|
+
],
|
|
2767
|
+
"accounts": [
|
|
2768
|
+
{
|
|
2769
|
+
"name": "glamState",
|
|
2770
|
+
"writable": true
|
|
2771
|
+
},
|
|
2772
|
+
{
|
|
2773
|
+
"name": "glamVault",
|
|
2774
|
+
"pda": {
|
|
2775
|
+
"seeds": [
|
|
2776
|
+
{
|
|
2777
|
+
"kind": "const",
|
|
2778
|
+
"value": [
|
|
2779
|
+
118,
|
|
2780
|
+
97,
|
|
2781
|
+
117,
|
|
2782
|
+
108,
|
|
2783
|
+
116
|
|
2784
|
+
]
|
|
2785
|
+
},
|
|
2786
|
+
{
|
|
2787
|
+
"kind": "account",
|
|
2788
|
+
"path": "glamState"
|
|
2789
|
+
}
|
|
2790
|
+
],
|
|
2791
|
+
"program": {
|
|
2792
|
+
"kind": "const",
|
|
2793
|
+
"value": [
|
|
2794
|
+
10,
|
|
2795
|
+
55,
|
|
2796
|
+
49,
|
|
2797
|
+
193,
|
|
2798
|
+
142,
|
|
2799
|
+
247,
|
|
2800
|
+
75,
|
|
2801
|
+
193,
|
|
2802
|
+
33,
|
|
2803
|
+
61,
|
|
2804
|
+
5,
|
|
2805
|
+
218,
|
|
2806
|
+
254,
|
|
2807
|
+
219,
|
|
2808
|
+
143,
|
|
2809
|
+
206,
|
|
2810
|
+
156,
|
|
2811
|
+
138,
|
|
2812
|
+
14,
|
|
2813
|
+
32,
|
|
2814
|
+
89,
|
|
2815
|
+
232,
|
|
2816
|
+
248,
|
|
2817
|
+
173,
|
|
2818
|
+
46,
|
|
2819
|
+
77,
|
|
2820
|
+
46,
|
|
2821
|
+
206,
|
|
2822
|
+
189,
|
|
2823
|
+
171,
|
|
2824
|
+
68,
|
|
2825
|
+
237
|
|
2826
|
+
]
|
|
2827
|
+
}
|
|
2828
|
+
}
|
|
2829
|
+
},
|
|
2830
|
+
{
|
|
2831
|
+
"name": "signer",
|
|
2832
|
+
"writable": true,
|
|
2833
|
+
"signer": true
|
|
2834
|
+
},
|
|
2835
|
+
{
|
|
2836
|
+
"name": "solUsdOracle"
|
|
2837
|
+
},
|
|
2838
|
+
{
|
|
2839
|
+
"name": "baseAssetOracle"
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
"name": "integrationAuthority",
|
|
2843
|
+
"pda": {
|
|
2844
|
+
"seeds": [
|
|
2845
|
+
{
|
|
2846
|
+
"kind": "const",
|
|
2847
|
+
"value": [
|
|
2848
|
+
105,
|
|
2849
|
+
110,
|
|
2850
|
+
116,
|
|
2851
|
+
101,
|
|
2852
|
+
103,
|
|
2853
|
+
114,
|
|
2854
|
+
97,
|
|
2855
|
+
116,
|
|
2856
|
+
105,
|
|
2857
|
+
111,
|
|
2858
|
+
110,
|
|
2859
|
+
45,
|
|
2860
|
+
97,
|
|
2861
|
+
117,
|
|
2862
|
+
116,
|
|
2863
|
+
104,
|
|
2864
|
+
111,
|
|
2865
|
+
114,
|
|
2866
|
+
105,
|
|
2867
|
+
116,
|
|
2868
|
+
121
|
|
2869
|
+
]
|
|
2870
|
+
}
|
|
2871
|
+
]
|
|
2872
|
+
}
|
|
2873
|
+
},
|
|
2874
|
+
{
|
|
2875
|
+
"name": "glamConfig",
|
|
2876
|
+
"pda": {
|
|
2877
|
+
"seeds": [
|
|
2878
|
+
{
|
|
2879
|
+
"kind": "const",
|
|
2880
|
+
"value": [
|
|
2881
|
+
103,
|
|
2882
|
+
108,
|
|
2883
|
+
111,
|
|
2884
|
+
98,
|
|
2885
|
+
97,
|
|
2886
|
+
108,
|
|
2887
|
+
45,
|
|
2888
|
+
99,
|
|
2889
|
+
111,
|
|
2890
|
+
110,
|
|
2891
|
+
102,
|
|
2892
|
+
105,
|
|
2893
|
+
103
|
|
2894
|
+
]
|
|
2895
|
+
}
|
|
2896
|
+
],
|
|
2897
|
+
"program": {
|
|
2898
|
+
"kind": "const",
|
|
2899
|
+
"value": [
|
|
2900
|
+
10,
|
|
2901
|
+
11,
|
|
2902
|
+
0,
|
|
2903
|
+
83,
|
|
2904
|
+
72,
|
|
2905
|
+
16,
|
|
2906
|
+
46,
|
|
2907
|
+
144,
|
|
2908
|
+
46,
|
|
2909
|
+
42,
|
|
2910
|
+
79,
|
|
2911
|
+
22,
|
|
2912
|
+
157,
|
|
2913
|
+
123,
|
|
2914
|
+
21,
|
|
2915
|
+
242,
|
|
2916
|
+
192,
|
|
2917
|
+
146,
|
|
2918
|
+
1,
|
|
2919
|
+
78,
|
|
2920
|
+
88,
|
|
2921
|
+
59,
|
|
2922
|
+
102,
|
|
2923
|
+
9,
|
|
2924
|
+
190,
|
|
2925
|
+
226,
|
|
2926
|
+
92,
|
|
2927
|
+
189,
|
|
2928
|
+
187,
|
|
2929
|
+
232,
|
|
2930
|
+
83,
|
|
2931
|
+
220
|
|
2932
|
+
]
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
"name": "glamProtocol",
|
|
2938
|
+
"address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
|
|
2939
|
+
},
|
|
2940
|
+
{
|
|
2941
|
+
"name": "eventAuthority",
|
|
2942
|
+
"optional": true,
|
|
2943
|
+
"pda": {
|
|
2944
|
+
"seeds": [
|
|
2945
|
+
{
|
|
2946
|
+
"kind": "const",
|
|
2947
|
+
"value": [
|
|
2948
|
+
95,
|
|
2949
|
+
95,
|
|
2950
|
+
101,
|
|
2951
|
+
118,
|
|
2952
|
+
101,
|
|
2953
|
+
110,
|
|
2954
|
+
116,
|
|
2955
|
+
95,
|
|
2956
|
+
97,
|
|
2957
|
+
117,
|
|
2958
|
+
116,
|
|
2959
|
+
104,
|
|
2960
|
+
111,
|
|
2961
|
+
114,
|
|
2962
|
+
105,
|
|
2963
|
+
116,
|
|
2964
|
+
121
|
|
2965
|
+
]
|
|
2966
|
+
}
|
|
2967
|
+
]
|
|
2968
|
+
}
|
|
2969
|
+
},
|
|
2970
|
+
{
|
|
2971
|
+
"name": "eventProgram",
|
|
2972
|
+
"optional": true,
|
|
2973
|
+
"address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
|
|
2974
|
+
}
|
|
2975
|
+
],
|
|
2976
|
+
"args": [
|
|
2977
|
+
{
|
|
2978
|
+
"name": "numUsers",
|
|
2979
|
+
"type": "u8"
|
|
2980
|
+
}
|
|
2981
|
+
]
|
|
2982
|
+
},
|
|
2983
|
+
{
|
|
2984
|
+
"name": "priceDriftVaultDepositors",
|
|
2985
|
+
"docs": [
|
|
2986
|
+
"Extra accounts for pricing N vault depositors:",
|
|
2987
|
+
"- (vault_depositor, drift_vault, drift_user) x N",
|
|
2988
|
+
"- spot_market used by drift users of vaults (no specific order)",
|
|
2989
|
+
"- perp markets used by drift users of vaults (no specific order)",
|
|
2990
|
+
"- oracles of spot markets and perp markets (no specific order)",
|
|
2991
|
+
"",
|
|
2992
|
+
"Clients must pre-refresh any stale Drift spot market cumulative interest by",
|
|
2993
|
+
"prepending Drift `update_spot_market_cumulative_interest` instructions for the",
|
|
2994
|
+
"referenced spot markets. Calls will fail with `StaleDriftInterest` if a required",
|
|
2995
|
+
"spot market's cumulative interest is too old."
|
|
2996
|
+
],
|
|
2997
|
+
"discriminator": [
|
|
2998
|
+
234,
|
|
2999
|
+
16,
|
|
3000
|
+
238,
|
|
3001
|
+
70,
|
|
3002
|
+
189,
|
|
3003
|
+
23,
|
|
3004
|
+
98,
|
|
3005
|
+
160
|
|
3006
|
+
],
|
|
3007
|
+
"accounts": [
|
|
3008
|
+
{
|
|
3009
|
+
"name": "glamState",
|
|
3010
|
+
"writable": true
|
|
3011
|
+
},
|
|
3012
|
+
{
|
|
3013
|
+
"name": "glamVault",
|
|
3014
|
+
"pda": {
|
|
3015
|
+
"seeds": [
|
|
3016
|
+
{
|
|
3017
|
+
"kind": "const",
|
|
3018
|
+
"value": [
|
|
3019
|
+
118,
|
|
3020
|
+
97,
|
|
3021
|
+
117,
|
|
3022
|
+
108,
|
|
3023
|
+
116
|
|
3024
|
+
]
|
|
3025
|
+
},
|
|
3026
|
+
{
|
|
3027
|
+
"kind": "account",
|
|
3028
|
+
"path": "glamState"
|
|
3029
|
+
}
|
|
3030
|
+
],
|
|
3031
|
+
"program": {
|
|
3032
|
+
"kind": "const",
|
|
3033
|
+
"value": [
|
|
3034
|
+
10,
|
|
3035
|
+
55,
|
|
3036
|
+
49,
|
|
3037
|
+
193,
|
|
3038
|
+
142,
|
|
3039
|
+
247,
|
|
3040
|
+
75,
|
|
3041
|
+
193,
|
|
3042
|
+
33,
|
|
3043
|
+
61,
|
|
3044
|
+
5,
|
|
3045
|
+
218,
|
|
3046
|
+
254,
|
|
3047
|
+
219,
|
|
3048
|
+
143,
|
|
3049
|
+
206,
|
|
3050
|
+
156,
|
|
3051
|
+
138,
|
|
3052
|
+
14,
|
|
3053
|
+
32,
|
|
3054
|
+
89,
|
|
3055
|
+
232,
|
|
3056
|
+
248,
|
|
3057
|
+
173,
|
|
3058
|
+
46,
|
|
3059
|
+
77,
|
|
3060
|
+
46,
|
|
3061
|
+
206,
|
|
3062
|
+
189,
|
|
3063
|
+
171,
|
|
3064
|
+
68,
|
|
3065
|
+
237
|
|
3066
|
+
]
|
|
3067
|
+
}
|
|
3068
|
+
}
|
|
3069
|
+
},
|
|
3070
|
+
{
|
|
3071
|
+
"name": "signer",
|
|
3072
|
+
"writable": true,
|
|
3073
|
+
"signer": true
|
|
3074
|
+
},
|
|
3075
|
+
{
|
|
3076
|
+
"name": "solUsdOracle"
|
|
3077
|
+
},
|
|
3078
|
+
{
|
|
3079
|
+
"name": "baseAssetOracle"
|
|
3080
|
+
},
|
|
3081
|
+
{
|
|
3082
|
+
"name": "integrationAuthority",
|
|
3083
|
+
"pda": {
|
|
3084
|
+
"seeds": [
|
|
3085
|
+
{
|
|
3086
|
+
"kind": "const",
|
|
3087
|
+
"value": [
|
|
3088
|
+
105,
|
|
3089
|
+
110,
|
|
3090
|
+
116,
|
|
3091
|
+
101,
|
|
3092
|
+
103,
|
|
3093
|
+
114,
|
|
3094
|
+
97,
|
|
3095
|
+
116,
|
|
3096
|
+
105,
|
|
3097
|
+
111,
|
|
3098
|
+
110,
|
|
3099
|
+
45,
|
|
3100
|
+
97,
|
|
3101
|
+
117,
|
|
3102
|
+
116,
|
|
3103
|
+
104,
|
|
3104
|
+
111,
|
|
3105
|
+
114,
|
|
3106
|
+
105,
|
|
3107
|
+
116,
|
|
3108
|
+
121
|
|
3109
|
+
]
|
|
3110
|
+
}
|
|
3111
|
+
]
|
|
3112
|
+
}
|
|
3113
|
+
},
|
|
3114
|
+
{
|
|
3115
|
+
"name": "glamConfig",
|
|
3116
|
+
"pda": {
|
|
3117
|
+
"seeds": [
|
|
3118
|
+
{
|
|
3119
|
+
"kind": "const",
|
|
3120
|
+
"value": [
|
|
3121
|
+
103,
|
|
3122
|
+
108,
|
|
3123
|
+
111,
|
|
3124
|
+
98,
|
|
3125
|
+
97,
|
|
3126
|
+
108,
|
|
3127
|
+
45,
|
|
3128
|
+
99,
|
|
3129
|
+
111,
|
|
3130
|
+
110,
|
|
3131
|
+
102,
|
|
3132
|
+
105,
|
|
3133
|
+
103
|
|
3134
|
+
]
|
|
3135
|
+
}
|
|
3136
|
+
],
|
|
3137
|
+
"program": {
|
|
3138
|
+
"kind": "const",
|
|
3139
|
+
"value": [
|
|
3140
|
+
10,
|
|
3141
|
+
11,
|
|
3142
|
+
0,
|
|
3143
|
+
83,
|
|
3144
|
+
72,
|
|
3145
|
+
16,
|
|
3146
|
+
46,
|
|
3147
|
+
144,
|
|
3148
|
+
46,
|
|
3149
|
+
42,
|
|
3150
|
+
79,
|
|
3151
|
+
22,
|
|
3152
|
+
157,
|
|
3153
|
+
123,
|
|
3154
|
+
21,
|
|
3155
|
+
242,
|
|
3156
|
+
192,
|
|
3157
|
+
146,
|
|
3158
|
+
1,
|
|
3159
|
+
78,
|
|
3160
|
+
88,
|
|
3161
|
+
59,
|
|
3162
|
+
102,
|
|
3163
|
+
9,
|
|
3164
|
+
190,
|
|
3165
|
+
226,
|
|
3166
|
+
92,
|
|
3167
|
+
189,
|
|
3168
|
+
187,
|
|
3169
|
+
232,
|
|
3170
|
+
83,
|
|
3171
|
+
220
|
|
3172
|
+
]
|
|
3173
|
+
}
|
|
3174
|
+
}
|
|
3175
|
+
},
|
|
3176
|
+
{
|
|
3177
|
+
"name": "glamProtocol",
|
|
3178
|
+
"address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
|
|
3179
|
+
},
|
|
3180
|
+
{
|
|
3181
|
+
"name": "eventAuthority",
|
|
3182
|
+
"optional": true,
|
|
3183
|
+
"pda": {
|
|
3184
|
+
"seeds": [
|
|
3185
|
+
{
|
|
3186
|
+
"kind": "const",
|
|
3187
|
+
"value": [
|
|
3188
|
+
95,
|
|
3189
|
+
95,
|
|
3190
|
+
101,
|
|
3191
|
+
118,
|
|
3192
|
+
101,
|
|
3193
|
+
110,
|
|
3194
|
+
116,
|
|
3195
|
+
95,
|
|
3196
|
+
97,
|
|
3197
|
+
117,
|
|
3198
|
+
116,
|
|
3199
|
+
104,
|
|
3200
|
+
111,
|
|
3201
|
+
114,
|
|
3202
|
+
105,
|
|
3203
|
+
116,
|
|
3204
|
+
121
|
|
3205
|
+
]
|
|
3206
|
+
}
|
|
3207
|
+
]
|
|
3208
|
+
}
|
|
3209
|
+
},
|
|
3210
|
+
{
|
|
3211
|
+
"name": "eventProgram",
|
|
3212
|
+
"optional": true,
|
|
3213
|
+
"address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
|
|
3214
|
+
}
|
|
3215
|
+
],
|
|
3216
|
+
"args": [
|
|
3217
|
+
{
|
|
3218
|
+
"name": "numVaultDepositors",
|
|
3219
|
+
"type": "u8"
|
|
3220
|
+
},
|
|
3221
|
+
{
|
|
3222
|
+
"name": "numSpotMarkets",
|
|
3223
|
+
"type": "u8"
|
|
3224
|
+
},
|
|
3225
|
+
{
|
|
3226
|
+
"name": "numPerpMarkets",
|
|
3227
|
+
"type": "u8"
|
|
3228
|
+
}
|
|
3229
|
+
]
|
|
3230
|
+
},
|
|
3231
|
+
{
|
|
3232
|
+
"name": "priceExternalPositions",
|
|
3233
|
+
"docs": [
|
|
3234
|
+
"Price external positions for a vault",
|
|
3235
|
+
"",
|
|
3236
|
+
"Extra accounts required:",
|
|
3237
|
+
"- Observation state account"
|
|
3238
|
+
],
|
|
3239
|
+
"discriminator": [
|
|
3240
|
+
94,
|
|
3241
|
+
199,
|
|
3242
|
+
82,
|
|
3243
|
+
243,
|
|
3244
|
+
235,
|
|
3245
|
+
193,
|
|
3246
|
+
4,
|
|
3247
|
+
144
|
|
3248
|
+
],
|
|
3249
|
+
"accounts": [
|
|
3250
|
+
{
|
|
3251
|
+
"name": "glamState",
|
|
3252
|
+
"writable": true
|
|
3253
|
+
},
|
|
3254
|
+
{
|
|
3255
|
+
"name": "glamVault",
|
|
3256
|
+
"pda": {
|
|
3257
|
+
"seeds": [
|
|
3258
|
+
{
|
|
3259
|
+
"kind": "const",
|
|
3260
|
+
"value": [
|
|
3261
|
+
118,
|
|
3262
|
+
97,
|
|
3263
|
+
117,
|
|
3264
|
+
108,
|
|
3265
|
+
116
|
|
3266
|
+
]
|
|
3267
|
+
},
|
|
3268
|
+
{
|
|
3269
|
+
"kind": "account",
|
|
3270
|
+
"path": "glamState"
|
|
3271
|
+
}
|
|
3272
|
+
],
|
|
3273
|
+
"program": {
|
|
3274
|
+
"kind": "const",
|
|
3275
|
+
"value": [
|
|
3276
|
+
10,
|
|
3277
|
+
55,
|
|
3278
|
+
49,
|
|
3279
|
+
193,
|
|
3280
|
+
142,
|
|
3281
|
+
247,
|
|
3282
|
+
75,
|
|
3283
|
+
193,
|
|
3284
|
+
33,
|
|
3285
|
+
61,
|
|
3286
|
+
5,
|
|
3287
|
+
218,
|
|
3288
|
+
254,
|
|
3289
|
+
219,
|
|
3290
|
+
143,
|
|
3291
|
+
206,
|
|
3292
|
+
156,
|
|
3293
|
+
138,
|
|
3294
|
+
14,
|
|
3295
|
+
32,
|
|
3296
|
+
89,
|
|
3297
|
+
232,
|
|
3298
|
+
248,
|
|
3299
|
+
173,
|
|
3300
|
+
46,
|
|
3301
|
+
77,
|
|
3302
|
+
46,
|
|
3303
|
+
206,
|
|
3304
|
+
189,
|
|
3305
|
+
171,
|
|
3306
|
+
68,
|
|
3307
|
+
237
|
|
3308
|
+
]
|
|
3309
|
+
}
|
|
3310
|
+
}
|
|
3311
|
+
},
|
|
3312
|
+
{
|
|
3313
|
+
"name": "signer",
|
|
3314
|
+
"writable": true,
|
|
3315
|
+
"signer": true
|
|
3316
|
+
},
|
|
3317
|
+
{
|
|
3318
|
+
"name": "solUsdOracle"
|
|
3319
|
+
},
|
|
3320
|
+
{
|
|
3321
|
+
"name": "baseAssetOracle"
|
|
3322
|
+
},
|
|
3323
|
+
{
|
|
3324
|
+
"name": "integrationAuthority",
|
|
3325
|
+
"pda": {
|
|
3326
|
+
"seeds": [
|
|
3327
|
+
{
|
|
3328
|
+
"kind": "const",
|
|
3329
|
+
"value": [
|
|
3330
|
+
105,
|
|
3331
|
+
110,
|
|
3332
|
+
116,
|
|
3333
|
+
101,
|
|
3334
|
+
103,
|
|
3335
|
+
114,
|
|
3336
|
+
97,
|
|
3337
|
+
116,
|
|
3338
|
+
105,
|
|
3339
|
+
111,
|
|
3340
|
+
110,
|
|
3341
|
+
45,
|
|
3342
|
+
97,
|
|
3343
|
+
117,
|
|
3344
|
+
116,
|
|
3345
|
+
104,
|
|
3346
|
+
111,
|
|
3347
|
+
114,
|
|
3348
|
+
105,
|
|
3349
|
+
116,
|
|
3350
|
+
121
|
|
3351
|
+
]
|
|
3352
|
+
}
|
|
3353
|
+
]
|
|
3354
|
+
}
|
|
3355
|
+
},
|
|
3356
|
+
{
|
|
3357
|
+
"name": "glamConfig",
|
|
3358
|
+
"pda": {
|
|
3359
|
+
"seeds": [
|
|
3360
|
+
{
|
|
3361
|
+
"kind": "const",
|
|
3362
|
+
"value": [
|
|
3363
|
+
103,
|
|
3364
|
+
108,
|
|
3365
|
+
111,
|
|
3366
|
+
98,
|
|
3367
|
+
97,
|
|
3368
|
+
108,
|
|
3369
|
+
45,
|
|
3370
|
+
99,
|
|
3371
|
+
111,
|
|
3372
|
+
110,
|
|
3373
|
+
102,
|
|
3374
|
+
105,
|
|
3375
|
+
103
|
|
3376
|
+
]
|
|
3377
|
+
}
|
|
3378
|
+
],
|
|
3379
|
+
"program": {
|
|
3380
|
+
"kind": "const",
|
|
3381
|
+
"value": [
|
|
3382
|
+
10,
|
|
3383
|
+
11,
|
|
3384
|
+
0,
|
|
3385
|
+
83,
|
|
3386
|
+
72,
|
|
3387
|
+
16,
|
|
3388
|
+
46,
|
|
3389
|
+
144,
|
|
3390
|
+
46,
|
|
3391
|
+
42,
|
|
3392
|
+
79,
|
|
3393
|
+
22,
|
|
3394
|
+
157,
|
|
3395
|
+
123,
|
|
3396
|
+
21,
|
|
3397
|
+
242,
|
|
3398
|
+
192,
|
|
3399
|
+
146,
|
|
3400
|
+
1,
|
|
3401
|
+
78,
|
|
3402
|
+
88,
|
|
3403
|
+
59,
|
|
3404
|
+
102,
|
|
3405
|
+
9,
|
|
3406
|
+
190,
|
|
3407
|
+
226,
|
|
3408
|
+
92,
|
|
3409
|
+
189,
|
|
3410
|
+
187,
|
|
3411
|
+
232,
|
|
3412
|
+
83,
|
|
3413
|
+
220
|
|
3414
|
+
]
|
|
3415
|
+
}
|
|
3416
|
+
}
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
"name": "glamProtocol",
|
|
3420
|
+
"address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
|
|
3421
|
+
},
|
|
3422
|
+
{
|
|
3423
|
+
"name": "eventAuthority",
|
|
3424
|
+
"optional": true,
|
|
3425
|
+
"pda": {
|
|
3426
|
+
"seeds": [
|
|
3427
|
+
{
|
|
3428
|
+
"kind": "const",
|
|
3429
|
+
"value": [
|
|
3430
|
+
95,
|
|
3431
|
+
95,
|
|
3432
|
+
101,
|
|
3433
|
+
118,
|
|
3434
|
+
101,
|
|
3435
|
+
110,
|
|
3436
|
+
116,
|
|
3437
|
+
95,
|
|
3438
|
+
97,
|
|
3439
|
+
117,
|
|
3440
|
+
116,
|
|
3441
|
+
104,
|
|
3442
|
+
111,
|
|
3443
|
+
114,
|
|
3444
|
+
105,
|
|
3445
|
+
116,
|
|
3446
|
+
121
|
|
3447
|
+
]
|
|
3448
|
+
}
|
|
3449
|
+
]
|
|
3450
|
+
}
|
|
3451
|
+
},
|
|
3452
|
+
{
|
|
3453
|
+
"name": "eventProgram",
|
|
3454
|
+
"optional": true,
|
|
3455
|
+
"address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
|
|
3456
|
+
}
|
|
3457
|
+
],
|
|
3458
|
+
"args": []
|
|
3459
|
+
},
|
|
3460
|
+
{
|
|
3461
|
+
"name": "priceKaminoObligations",
|
|
3462
|
+
"docs": [
|
|
3463
|
+
"Prices Kamino obligations. Reserves and obligations must be refreshed in the same slot before calling this ix.",
|
|
3464
|
+
"",
|
|
3465
|
+
"Extra accounts for pricing N kamino obligations:",
|
|
3466
|
+
"- obligations x N"
|
|
3467
|
+
],
|
|
3468
|
+
"discriminator": [
|
|
3469
|
+
166,
|
|
3470
|
+
110,
|
|
3471
|
+
234,
|
|
3472
|
+
179,
|
|
3473
|
+
240,
|
|
3474
|
+
179,
|
|
3475
|
+
69,
|
|
3476
|
+
246
|
|
3477
|
+
],
|
|
3478
|
+
"accounts": [
|
|
3479
|
+
{
|
|
3480
|
+
"name": "glamState",
|
|
3481
|
+
"writable": true
|
|
3482
|
+
},
|
|
3483
|
+
{
|
|
3484
|
+
"name": "glamVault",
|
|
3485
|
+
"pda": {
|
|
3486
|
+
"seeds": [
|
|
3487
|
+
{
|
|
3488
|
+
"kind": "const",
|
|
3489
|
+
"value": [
|
|
3490
|
+
118,
|
|
3491
|
+
97,
|
|
3492
|
+
117,
|
|
3493
|
+
108,
|
|
3494
|
+
116
|
|
3495
|
+
]
|
|
3496
|
+
},
|
|
3497
|
+
{
|
|
3498
|
+
"kind": "account",
|
|
3499
|
+
"path": "glamState"
|
|
3500
|
+
}
|
|
3501
|
+
],
|
|
3502
|
+
"program": {
|
|
3503
|
+
"kind": "const",
|
|
3504
|
+
"value": [
|
|
3505
|
+
10,
|
|
3506
|
+
55,
|
|
3507
|
+
49,
|
|
3508
|
+
193,
|
|
3509
|
+
142,
|
|
3510
|
+
247,
|
|
3511
|
+
75,
|
|
3512
|
+
193,
|
|
3513
|
+
33,
|
|
3514
|
+
61,
|
|
3515
|
+
5,
|
|
3516
|
+
218,
|
|
3517
|
+
254,
|
|
3518
|
+
219,
|
|
3519
|
+
143,
|
|
3520
|
+
206,
|
|
3521
|
+
156,
|
|
3522
|
+
138,
|
|
3523
|
+
14,
|
|
3524
|
+
32,
|
|
3525
|
+
89,
|
|
3526
|
+
232,
|
|
3527
|
+
248,
|
|
3528
|
+
173,
|
|
3529
|
+
46,
|
|
3530
|
+
77,
|
|
3531
|
+
46,
|
|
3532
|
+
206,
|
|
3533
|
+
189,
|
|
3534
|
+
171,
|
|
3535
|
+
68,
|
|
3536
|
+
237
|
|
3537
|
+
]
|
|
3538
|
+
}
|
|
3539
|
+
}
|
|
3540
|
+
},
|
|
3541
|
+
{
|
|
3542
|
+
"name": "signer",
|
|
3543
|
+
"writable": true,
|
|
3544
|
+
"signer": true
|
|
3545
|
+
},
|
|
3546
|
+
{
|
|
3547
|
+
"name": "solUsdOracle"
|
|
3548
|
+
},
|
|
3549
|
+
{
|
|
3550
|
+
"name": "baseAssetOracle"
|
|
3551
|
+
},
|
|
3552
|
+
{
|
|
3553
|
+
"name": "integrationAuthority",
|
|
3554
|
+
"pda": {
|
|
3555
|
+
"seeds": [
|
|
3556
|
+
{
|
|
3557
|
+
"kind": "const",
|
|
3558
|
+
"value": [
|
|
3559
|
+
105,
|
|
3560
|
+
110,
|
|
3561
|
+
116,
|
|
3562
|
+
101,
|
|
3563
|
+
103,
|
|
3564
|
+
114,
|
|
3565
|
+
97,
|
|
3566
|
+
116,
|
|
3567
|
+
105,
|
|
3568
|
+
111,
|
|
3569
|
+
110,
|
|
3570
|
+
45,
|
|
3571
|
+
97,
|
|
3572
|
+
117,
|
|
3573
|
+
116,
|
|
3574
|
+
104,
|
|
3575
|
+
111,
|
|
3576
|
+
114,
|
|
3577
|
+
105,
|
|
3578
|
+
116,
|
|
3579
|
+
121
|
|
3580
|
+
]
|
|
3581
|
+
}
|
|
3582
|
+
]
|
|
3583
|
+
}
|
|
3584
|
+
},
|
|
3585
|
+
{
|
|
3586
|
+
"name": "glamConfig",
|
|
3587
|
+
"pda": {
|
|
3588
|
+
"seeds": [
|
|
3589
|
+
{
|
|
3590
|
+
"kind": "const",
|
|
3591
|
+
"value": [
|
|
3592
|
+
103,
|
|
3593
|
+
108,
|
|
3594
|
+
111,
|
|
3595
|
+
98,
|
|
3596
|
+
97,
|
|
3597
|
+
108,
|
|
3598
|
+
45,
|
|
3599
|
+
99,
|
|
3600
|
+
111,
|
|
3601
|
+
110,
|
|
3602
|
+
102,
|
|
3603
|
+
105,
|
|
3604
|
+
103
|
|
3605
|
+
]
|
|
3606
|
+
}
|
|
3607
|
+
],
|
|
3608
|
+
"program": {
|
|
3609
|
+
"kind": "const",
|
|
3610
|
+
"value": [
|
|
3611
|
+
10,
|
|
3612
|
+
11,
|
|
3613
|
+
0,
|
|
3614
|
+
83,
|
|
3615
|
+
72,
|
|
3616
|
+
16,
|
|
3617
|
+
46,
|
|
3618
|
+
144,
|
|
3619
|
+
46,
|
|
3620
|
+
42,
|
|
3621
|
+
79,
|
|
3622
|
+
22,
|
|
3623
|
+
157,
|
|
3624
|
+
123,
|
|
3625
|
+
21,
|
|
3626
|
+
242,
|
|
3627
|
+
192,
|
|
3628
|
+
146,
|
|
3629
|
+
1,
|
|
3630
|
+
78,
|
|
3631
|
+
88,
|
|
3632
|
+
59,
|
|
3633
|
+
102,
|
|
3634
|
+
9,
|
|
3635
|
+
190,
|
|
3636
|
+
226,
|
|
3637
|
+
92,
|
|
3638
|
+
189,
|
|
3639
|
+
187,
|
|
3640
|
+
232,
|
|
3641
|
+
83,
|
|
3642
|
+
220
|
|
3643
|
+
]
|
|
3644
|
+
}
|
|
3645
|
+
}
|
|
3646
|
+
},
|
|
3647
|
+
{
|
|
3648
|
+
"name": "glamProtocol",
|
|
3649
|
+
"address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
|
|
3650
|
+
},
|
|
3651
|
+
{
|
|
3652
|
+
"name": "eventAuthority",
|
|
3653
|
+
"optional": true,
|
|
3654
|
+
"pda": {
|
|
3655
|
+
"seeds": [
|
|
3656
|
+
{
|
|
3657
|
+
"kind": "const",
|
|
3658
|
+
"value": [
|
|
3659
|
+
95,
|
|
3660
|
+
95,
|
|
3661
|
+
101,
|
|
3662
|
+
118,
|
|
3663
|
+
101,
|
|
3664
|
+
110,
|
|
3665
|
+
116,
|
|
3666
|
+
95,
|
|
3667
|
+
97,
|
|
3668
|
+
117,
|
|
3669
|
+
116,
|
|
3670
|
+
104,
|
|
3671
|
+
111,
|
|
3672
|
+
114,
|
|
3673
|
+
105,
|
|
3674
|
+
116,
|
|
3675
|
+
121
|
|
3676
|
+
]
|
|
3677
|
+
}
|
|
3678
|
+
]
|
|
3679
|
+
}
|
|
3680
|
+
},
|
|
3681
|
+
{
|
|
3682
|
+
"name": "eventProgram",
|
|
3683
|
+
"optional": true,
|
|
3684
|
+
"address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
|
|
3685
|
+
}
|
|
3686
|
+
],
|
|
3687
|
+
"args": []
|
|
3688
|
+
},
|
|
3689
|
+
{
|
|
3690
|
+
"name": "priceKaminoVaultShares",
|
|
3691
|
+
"docs": [
|
|
3692
|
+
"Prices Kamino vault shares.",
|
|
3693
|
+
"- `num_vaults` Number of kamino vaults to price.",
|
|
3694
|
+
"",
|
|
3695
|
+
"Extra accounts for pricing N kamino vault shares:",
|
|
3696
|
+
"- (kvault_share_ata, kvault_share_mint, kvault_state, kvault_deposit_token_oracle) x N",
|
|
3697
|
+
"- reserve x M",
|
|
3698
|
+
"- M = number of reserves used by all kvaults' allocations",
|
|
3699
|
+
"- reserve pubkeys must follow the same order of reserves used by each allocation"
|
|
2522
3700
|
],
|
|
2523
3701
|
"discriminator": [
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
3702
|
+
112,
|
|
3703
|
+
92,
|
|
3704
|
+
238,
|
|
3705
|
+
224,
|
|
3706
|
+
145,
|
|
3707
|
+
105,
|
|
3708
|
+
38,
|
|
3709
|
+
249
|
|
2532
3710
|
],
|
|
2533
3711
|
"accounts": [
|
|
2534
3712
|
{
|
|
@@ -2741,29 +3919,28 @@ export type GlamMint = {
|
|
|
2741
3919
|
],
|
|
2742
3920
|
"args": [
|
|
2743
3921
|
{
|
|
2744
|
-
"name": "
|
|
3922
|
+
"name": "numVaults",
|
|
2745
3923
|
"type": "u8"
|
|
2746
3924
|
}
|
|
2747
3925
|
]
|
|
2748
3926
|
},
|
|
2749
3927
|
{
|
|
2750
|
-
"name": "
|
|
3928
|
+
"name": "priceLoopscaleLoans",
|
|
2751
3929
|
"docs": [
|
|
2752
|
-
"
|
|
2753
|
-
"
|
|
2754
|
-
"
|
|
2755
|
-
"-
|
|
2756
|
-
"- oracles of spot markets and perp markets (no specific order)"
|
|
3930
|
+
"Price LoopScale loans for a vault",
|
|
3931
|
+
"",
|
|
3932
|
+
"Extra accounts for pricing N loans:",
|
|
3933
|
+
"- N loan accounts"
|
|
2757
3934
|
],
|
|
2758
3935
|
"discriminator": [
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
3936
|
+
106,
|
|
3937
|
+
180,
|
|
3938
|
+
138,
|
|
3939
|
+
193,
|
|
3940
|
+
90,
|
|
3941
|
+
3,
|
|
3942
|
+
24,
|
|
3943
|
+
42
|
|
2767
3944
|
],
|
|
2768
3945
|
"accounts": [
|
|
2769
3946
|
{
|
|
@@ -2974,38 +4151,34 @@ export type GlamMint = {
|
|
|
2974
4151
|
"address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
|
|
2975
4152
|
}
|
|
2976
4153
|
],
|
|
2977
|
-
"args": [
|
|
2978
|
-
{
|
|
2979
|
-
"name": "numVaultDepositors",
|
|
2980
|
-
"type": "u8"
|
|
2981
|
-
},
|
|
2982
|
-
{
|
|
2983
|
-
"name": "numSpotMarkets",
|
|
2984
|
-
"type": "u8"
|
|
2985
|
-
},
|
|
2986
|
-
{
|
|
2987
|
-
"name": "numPerpMarkets",
|
|
2988
|
-
"type": "u8"
|
|
2989
|
-
}
|
|
2990
|
-
]
|
|
4154
|
+
"args": []
|
|
2991
4155
|
},
|
|
2992
4156
|
{
|
|
2993
|
-
"name": "
|
|
4157
|
+
"name": "priceOrcaWhirlpoolPositions",
|
|
2994
4158
|
"docs": [
|
|
2995
|
-
"Prices
|
|
4159
|
+
"Prices Orca Whirlpools positions registered as vault external positions.",
|
|
2996
4160
|
"",
|
|
2997
|
-
"
|
|
2998
|
-
"-
|
|
4161
|
+
"Remaining accounts for each position:",
|
|
4162
|
+
"- position",
|
|
4163
|
+
"- position_token_account",
|
|
4164
|
+
"- whirlpool",
|
|
4165
|
+
"- tick_array_lower",
|
|
4166
|
+
"- tick_array_upper",
|
|
4167
|
+
"- token_mint_a",
|
|
4168
|
+
"- token_oracle_a",
|
|
4169
|
+
"- token_mint_b",
|
|
4170
|
+
"- token_oracle_b",
|
|
4171
|
+
"- optional reward_mint, reward_oracle pairs for initialized rewards with nonzero value"
|
|
2999
4172
|
],
|
|
3000
4173
|
"discriminator": [
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
4174
|
+
3,
|
|
4175
|
+
81,
|
|
4176
|
+
117,
|
|
4177
|
+
34,
|
|
4178
|
+
5,
|
|
4179
|
+
238,
|
|
4180
|
+
158,
|
|
4181
|
+
232
|
|
3009
4182
|
],
|
|
3010
4183
|
"accounts": [
|
|
3011
4184
|
{
|
|
@@ -3216,29 +4389,37 @@ export type GlamMint = {
|
|
|
3216
4389
|
"address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
|
|
3217
4390
|
}
|
|
3218
4391
|
],
|
|
3219
|
-
"args": [
|
|
4392
|
+
"args": [
|
|
4393
|
+
{
|
|
4394
|
+
"name": "numPositions",
|
|
4395
|
+
"type": "u8"
|
|
4396
|
+
}
|
|
4397
|
+
]
|
|
3220
4398
|
},
|
|
3221
4399
|
{
|
|
3222
|
-
"name": "
|
|
4400
|
+
"name": "pricePhoenixTraders",
|
|
3223
4401
|
"docs": [
|
|
3224
|
-
"
|
|
3225
|
-
"- `num_vaults` Number of kamino vaults to price.",
|
|
4402
|
+
"Price Phoenix trader accounts registered as vault external positions.",
|
|
3226
4403
|
"",
|
|
3227
|
-
"
|
|
3228
|
-
"-
|
|
3229
|
-
"-
|
|
3230
|
-
"-
|
|
3231
|
-
"-
|
|
4404
|
+
"Remaining accounts:",
|
|
4405
|
+
"- Phoenix global configuration",
|
|
4406
|
+
"- Phoenix perp asset map",
|
|
4407
|
+
"- Phoenix trader accounts x N",
|
|
4408
|
+
"- optional USDC oracle when the GLAM base asset is not USDC",
|
|
4409
|
+
"",
|
|
4410
|
+
"Prices portfolio NAV as collateral plus unrealized PnL from Phoenix's",
|
|
4411
|
+
"cached positions and mark prices. Clients should prepend Phoenix",
|
|
4412
|
+
"`update_trader_state` before this instruction when trader state may be stale."
|
|
3232
4413
|
],
|
|
3233
4414
|
"discriminator": [
|
|
3234
4415
|
112,
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
4416
|
+
90,
|
|
4417
|
+
177,
|
|
4418
|
+
46,
|
|
3238
4419
|
145,
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
4420
|
+
191,
|
|
4421
|
+
219,
|
|
4422
|
+
213
|
|
3242
4423
|
],
|
|
3243
4424
|
"accounts": [
|
|
3244
4425
|
{
|
|
@@ -3449,12 +4630,7 @@ export type GlamMint = {
|
|
|
3449
4630
|
"address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
|
|
3450
4631
|
}
|
|
3451
4632
|
],
|
|
3452
|
-
"args": [
|
|
3453
|
-
{
|
|
3454
|
-
"name": "numVaults",
|
|
3455
|
-
"type": "u8"
|
|
3456
|
-
}
|
|
3457
|
-
]
|
|
4633
|
+
"args": []
|
|
3458
4634
|
},
|
|
3459
4635
|
{
|
|
3460
4636
|
"name": "priceSingleAssetVault",
|
|
@@ -5483,6 +6659,19 @@ export type GlamMint = {
|
|
|
5483
6659
|
}
|
|
5484
6660
|
],
|
|
5485
6661
|
"accounts": [
|
|
6662
|
+
{
|
|
6663
|
+
"name": "globalConfig",
|
|
6664
|
+
"discriminator": [
|
|
6665
|
+
149,
|
|
6666
|
+
8,
|
|
6667
|
+
156,
|
|
6668
|
+
202,
|
|
6669
|
+
160,
|
|
6670
|
+
252,
|
|
6671
|
+
176,
|
|
6672
|
+
217
|
|
6673
|
+
]
|
|
6674
|
+
},
|
|
5486
6675
|
{
|
|
5487
6676
|
"name": "requestQueue",
|
|
5488
6677
|
"discriminator": [
|
|
@@ -5557,7 +6746,7 @@ export type GlamMint = {
|
|
|
5557
6746
|
{
|
|
5558
6747
|
"code": 6003,
|
|
5559
6748
|
"name": "invalidAsset",
|
|
5560
|
-
"msg": "
|
|
6749
|
+
"msg": "Asset not allowed to subscribe"
|
|
5561
6750
|
},
|
|
5562
6751
|
{
|
|
5563
6752
|
"code": 6004,
|
|
@@ -5611,26 +6800,31 @@ export type GlamMint = {
|
|
|
5611
6800
|
},
|
|
5612
6801
|
{
|
|
5613
6802
|
"code": 6014,
|
|
5614
|
-
"name": "
|
|
5615
|
-
"msg": "
|
|
6803
|
+
"name": "amountBelowMinimum",
|
|
6804
|
+
"msg": "Amount is below the minimum required"
|
|
5616
6805
|
},
|
|
5617
6806
|
{
|
|
5618
6807
|
"code": 6015,
|
|
5619
|
-
"name": "
|
|
5620
|
-
"msg": "
|
|
6808
|
+
"name": "managerFeesNotCrystallized",
|
|
6809
|
+
"msg": "Manager fees should be crystallized before updating"
|
|
5621
6810
|
},
|
|
5622
6811
|
{
|
|
5623
6812
|
"code": 6016,
|
|
5624
|
-
"name": "
|
|
5625
|
-
"msg": "Amount
|
|
6813
|
+
"name": "amountAboveMaximum",
|
|
6814
|
+
"msg": "Amount exceeds maximum threshold"
|
|
5626
6815
|
},
|
|
5627
6816
|
{
|
|
5628
6817
|
"code": 6017,
|
|
6818
|
+
"name": "insufficientEscrowBalance",
|
|
6819
|
+
"msg": "Insufficient escrow balance for fee burn"
|
|
6820
|
+
},
|
|
6821
|
+
{
|
|
6822
|
+
"code": 6018,
|
|
5629
6823
|
"name": "tokenAclManagesFreezeThaw",
|
|
5630
6824
|
"msg": "Token ACL is enabled; freeze/thaw is managed by the Token ACL program"
|
|
5631
6825
|
},
|
|
5632
6826
|
{
|
|
5633
|
-
"code":
|
|
6827
|
+
"code": 6019,
|
|
5634
6828
|
"name": "invalidMintState",
|
|
5635
6829
|
"msg": "Invalid mint state"
|
|
5636
6830
|
}
|
|
@@ -5696,6 +6890,51 @@ export type GlamMint = {
|
|
|
5696
6890
|
]
|
|
5697
6891
|
}
|
|
5698
6892
|
},
|
|
6893
|
+
{
|
|
6894
|
+
"name": "assetMeta",
|
|
6895
|
+
"type": {
|
|
6896
|
+
"kind": "struct",
|
|
6897
|
+
"fields": [
|
|
6898
|
+
{
|
|
6899
|
+
"name": "asset",
|
|
6900
|
+
"type": "pubkey"
|
|
6901
|
+
},
|
|
6902
|
+
{
|
|
6903
|
+
"name": "decimals",
|
|
6904
|
+
"type": "u8"
|
|
6905
|
+
},
|
|
6906
|
+
{
|
|
6907
|
+
"name": "oracle",
|
|
6908
|
+
"type": "pubkey"
|
|
6909
|
+
},
|
|
6910
|
+
{
|
|
6911
|
+
"name": "oracleSource",
|
|
6912
|
+
"type": {
|
|
6913
|
+
"defined": {
|
|
6914
|
+
"name": "oracleSource"
|
|
6915
|
+
}
|
|
6916
|
+
}
|
|
6917
|
+
},
|
|
6918
|
+
{
|
|
6919
|
+
"name": "maxAgeSeconds",
|
|
6920
|
+
"type": "u16"
|
|
6921
|
+
},
|
|
6922
|
+
{
|
|
6923
|
+
"name": "priority",
|
|
6924
|
+
"type": "i8"
|
|
6925
|
+
},
|
|
6926
|
+
{
|
|
6927
|
+
"name": "padding",
|
|
6928
|
+
"type": {
|
|
6929
|
+
"array": [
|
|
6930
|
+
"u8",
|
|
6931
|
+
3
|
|
6932
|
+
]
|
|
6933
|
+
}
|
|
6934
|
+
}
|
|
6935
|
+
]
|
|
6936
|
+
}
|
|
6937
|
+
},
|
|
5699
6938
|
{
|
|
5700
6939
|
"name": "aumRecord",
|
|
5701
6940
|
"type": {
|
|
@@ -6150,6 +7389,62 @@ export type GlamMint = {
|
|
|
6150
7389
|
]
|
|
6151
7390
|
}
|
|
6152
7391
|
},
|
|
7392
|
+
{
|
|
7393
|
+
"name": "globalConfig",
|
|
7394
|
+
"type": {
|
|
7395
|
+
"kind": "struct",
|
|
7396
|
+
"fields": [
|
|
7397
|
+
{
|
|
7398
|
+
"name": "admin",
|
|
7399
|
+
"docs": [
|
|
7400
|
+
"The authority that can modify the config"
|
|
7401
|
+
],
|
|
7402
|
+
"type": "pubkey"
|
|
7403
|
+
},
|
|
7404
|
+
{
|
|
7405
|
+
"name": "feeAuthority",
|
|
7406
|
+
"docs": [
|
|
7407
|
+
"The authority that can modify fee structure of individual glam state and claim protocol fees"
|
|
7408
|
+
],
|
|
7409
|
+
"type": "pubkey"
|
|
7410
|
+
},
|
|
7411
|
+
{
|
|
7412
|
+
"name": "referrer",
|
|
7413
|
+
"docs": [
|
|
7414
|
+
"Default GLAM referrer"
|
|
7415
|
+
],
|
|
7416
|
+
"type": "pubkey"
|
|
7417
|
+
},
|
|
7418
|
+
{
|
|
7419
|
+
"name": "baseFeeBps",
|
|
7420
|
+
"docs": [
|
|
7421
|
+
"Default protocol base fee applied to all vaults"
|
|
7422
|
+
],
|
|
7423
|
+
"type": "u16"
|
|
7424
|
+
},
|
|
7425
|
+
{
|
|
7426
|
+
"name": "flowFeeBps",
|
|
7427
|
+
"docs": [
|
|
7428
|
+
"Default protocol flow fee applied to all vaults"
|
|
7429
|
+
],
|
|
7430
|
+
"type": "u16"
|
|
7431
|
+
},
|
|
7432
|
+
{
|
|
7433
|
+
"name": "assetMetas",
|
|
7434
|
+
"docs": [
|
|
7435
|
+
"List of assets and their oracle configs supported by the protocol"
|
|
7436
|
+
],
|
|
7437
|
+
"type": {
|
|
7438
|
+
"vec": {
|
|
7439
|
+
"defined": {
|
|
7440
|
+
"name": "assetMeta"
|
|
7441
|
+
}
|
|
7442
|
+
}
|
|
7443
|
+
}
|
|
7444
|
+
}
|
|
7445
|
+
]
|
|
7446
|
+
}
|
|
7447
|
+
},
|
|
6153
7448
|
{
|
|
6154
7449
|
"name": "hurdleType",
|
|
6155
7450
|
"type": {
|
|
@@ -6506,6 +7801,83 @@ export type GlamMint = {
|
|
|
6506
7801
|
]
|
|
6507
7802
|
}
|
|
6508
7803
|
},
|
|
7804
|
+
{
|
|
7805
|
+
"name": "oracleSource",
|
|
7806
|
+
"type": {
|
|
7807
|
+
"kind": "enum",
|
|
7808
|
+
"variants": [
|
|
7809
|
+
{
|
|
7810
|
+
"name": "pyth"
|
|
7811
|
+
},
|
|
7812
|
+
{
|
|
7813
|
+
"name": "switchboard"
|
|
7814
|
+
},
|
|
7815
|
+
{
|
|
7816
|
+
"name": "quoteAsset"
|
|
7817
|
+
},
|
|
7818
|
+
{
|
|
7819
|
+
"name": "pyth1K"
|
|
7820
|
+
},
|
|
7821
|
+
{
|
|
7822
|
+
"name": "pyth1M"
|
|
7823
|
+
},
|
|
7824
|
+
{
|
|
7825
|
+
"name": "pythStableCoin"
|
|
7826
|
+
},
|
|
7827
|
+
{
|
|
7828
|
+
"name": "prelaunch"
|
|
7829
|
+
},
|
|
7830
|
+
{
|
|
7831
|
+
"name": "pythPull"
|
|
7832
|
+
},
|
|
7833
|
+
{
|
|
7834
|
+
"name": "pyth1KPull"
|
|
7835
|
+
},
|
|
7836
|
+
{
|
|
7837
|
+
"name": "pyth1MPull"
|
|
7838
|
+
},
|
|
7839
|
+
{
|
|
7840
|
+
"name": "pythStableCoinPull"
|
|
7841
|
+
},
|
|
7842
|
+
{
|
|
7843
|
+
"name": "switchboardOnDemand"
|
|
7844
|
+
},
|
|
7845
|
+
{
|
|
7846
|
+
"name": "pythLazer"
|
|
7847
|
+
},
|
|
7848
|
+
{
|
|
7849
|
+
"name": "pythLazer1K"
|
|
7850
|
+
},
|
|
7851
|
+
{
|
|
7852
|
+
"name": "pythLazer1M"
|
|
7853
|
+
},
|
|
7854
|
+
{
|
|
7855
|
+
"name": "pythLazerStableCoin"
|
|
7856
|
+
},
|
|
7857
|
+
{
|
|
7858
|
+
"name": "notSet"
|
|
7859
|
+
},
|
|
7860
|
+
{
|
|
7861
|
+
"name": "lstPoolState"
|
|
7862
|
+
},
|
|
7863
|
+
{
|
|
7864
|
+
"name": "marinadeState"
|
|
7865
|
+
},
|
|
7866
|
+
{
|
|
7867
|
+
"name": "baseAsset"
|
|
7868
|
+
},
|
|
7869
|
+
{
|
|
7870
|
+
"name": "chainlinkRwa"
|
|
7871
|
+
},
|
|
7872
|
+
{
|
|
7873
|
+
"name": "chainlinkX"
|
|
7874
|
+
},
|
|
7875
|
+
{
|
|
7876
|
+
"name": "kaminoReserve"
|
|
7877
|
+
}
|
|
7878
|
+
]
|
|
7879
|
+
}
|
|
7880
|
+
},
|
|
6509
7881
|
{
|
|
6510
7882
|
"name": "pendingRequest",
|
|
6511
7883
|
"type": {
|