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