@glamsystems/glam-sdk 1.0.14-alpha.4 → 1.1.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5",
3
3
  "metadata": {
4
4
  "name": "glam_mint",
5
- "version": "1.0.2",
5
+ "version": "1.0.3",
6
6
  "spec": "0.1.0",
7
7
  "description": "GLAM mint program"
8
8
  },
@@ -2506,13 +2506,247 @@
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."
2516
2750
  ],
2517
2751
  "discriminator": [
2518
2752
  12,
@@ -2738,26 +2972,502 @@
2738
2972
  "name": "num_users",
2739
2973
  "type": "u8"
2740
2974
  }
2741
- ]
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": []
2742
3453
  },
2743
3454
  {
2744
- "name": "price_drift_vault_depositors",
3455
+ "name": "price_kamino_obligations",
2745
3456
  "docs": [
2746
- "Extra accounts for pricing N vault depositors:",
2747
- "- (vault_depositor, drift_vault, drift_user) x N",
2748
- "- spot_market used by drift users of vaults (no specific order)",
2749
- "- perp markets used by drift users of vaults (no specific order)",
2750
- "- oracles of spot markets and perp markets (no specific order)"
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"
2751
3461
  ],
2752
3462
  "discriminator": [
3463
+ 166,
3464
+ 110,
2753
3465
  234,
2754
- 16,
2755
- 238,
2756
- 70,
2757
- 189,
2758
- 23,
2759
- 98,
2760
- 160
3466
+ 179,
3467
+ 240,
3468
+ 179,
3469
+ 69,
3470
+ 246
2761
3471
  ],
2762
3472
  "accounts": [
2763
3473
  {
@@ -2968,38 +3678,29 @@
2968
3678
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
2969
3679
  }
2970
3680
  ],
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
- ]
3681
+ "args": []
2985
3682
  },
2986
3683
  {
2987
- "name": "price_kamino_obligations",
3684
+ "name": "price_kamino_vault_shares",
2988
3685
  "docs": [
2989
- "Prices Kamino obligations. Reserves and obligations must be refreshed in the same slot before calling this ix.",
3686
+ "Prices Kamino vault shares.",
3687
+ "- `num_vaults` Number of kamino vaults to price.",
2990
3688
  "",
2991
- "Extra accounts for pricing N kamino obligations:",
2992
- "- obligations x N"
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"
2993
3694
  ],
2994
3695
  "discriminator": [
2995
- 166,
2996
- 110,
2997
- 234,
2998
- 179,
2999
- 240,
3000
- 179,
3001
- 69,
3002
- 246
3696
+ 112,
3697
+ 92,
3698
+ 238,
3699
+ 224,
3700
+ 145,
3701
+ 105,
3702
+ 38,
3703
+ 249
3003
3704
  ],
3004
3705
  "accounts": [
3005
3706
  {
@@ -3210,29 +3911,30 @@
3210
3911
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
3211
3912
  }
3212
3913
  ],
3213
- "args": []
3914
+ "args": [
3915
+ {
3916
+ "name": "num_vaults",
3917
+ "type": "u8"
3918
+ }
3919
+ ]
3214
3920
  },
3215
3921
  {
3216
- "name": "price_kamino_vault_shares",
3922
+ "name": "price_loopscale_loans",
3217
3923
  "docs": [
3218
- "Prices Kamino vault shares.",
3219
- "- `num_vaults` Number of kamino vaults to price.",
3924
+ "Price LoopScale loans for a vault",
3220
3925
  "",
3221
- "Extra accounts for pricing N kamino vault shares:",
3222
- "- (kvault_share_ata, kvault_share_mint, kvault_state, kvault_deposit_token_oracle) x N",
3223
- "- reserve x M",
3224
- "- M = number of reserves used by all kvaults' allocations",
3225
- "- reserve pubkeys must follow the same order of reserves used by each allocation"
3926
+ "Extra accounts for pricing N loans:",
3927
+ "- N loan accounts"
3226
3928
  ],
3227
3929
  "discriminator": [
3228
- 112,
3229
- 92,
3230
- 238,
3231
- 224,
3232
- 145,
3233
- 105,
3234
- 38,
3235
- 249
3930
+ 106,
3931
+ 180,
3932
+ 138,
3933
+ 193,
3934
+ 90,
3935
+ 3,
3936
+ 24,
3937
+ 42
3236
3938
  ],
3237
3939
  "accounts": [
3238
3940
  {
@@ -3443,12 +4145,7 @@
3443
4145
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
3444
4146
  }
3445
4147
  ],
3446
- "args": [
3447
- {
3448
- "name": "num_vaults",
3449
- "type": "u8"
3450
- }
3451
- ]
4148
+ "args": []
3452
4149
  },
3453
4150
  {
3454
4151
  "name": "price_single_asset_vault",
@@ -5477,6 +6174,19 @@
5477
6174
  }
5478
6175
  ],
5479
6176
  "accounts": [
6177
+ {
6178
+ "name": "GlobalConfig",
6179
+ "discriminator": [
6180
+ 149,
6181
+ 8,
6182
+ 156,
6183
+ 202,
6184
+ 160,
6185
+ 252,
6186
+ 176,
6187
+ 217
6188
+ ]
6189
+ },
5480
6190
  {
5481
6191
  "name": "RequestQueue",
5482
6192
  "discriminator": [
@@ -5551,7 +6261,7 @@
5551
6261
  {
5552
6262
  "code": 6003,
5553
6263
  "name": "InvalidAsset",
5554
- "msg": "Invalid asset"
6264
+ "msg": "Asset not allowed to subscribe"
5555
6265
  },
5556
6266
  {
5557
6267
  "code": 6004,
@@ -5605,26 +6315,31 @@
5605
6315
  },
5606
6316
  {
5607
6317
  "code": 6014,
5608
- "name": "ManagerFeesNotCrystallized",
5609
- "msg": "Manager fees should be crystallized before updating"
6318
+ "name": "AmountBelowMinimum",
6319
+ "msg": "Amount is below the minimum required"
5610
6320
  },
5611
6321
  {
5612
6322
  "code": 6015,
5613
- "name": "InsufficientEscrowBalance",
5614
- "msg": "Insufficient escrow balance for fee burn"
6323
+ "name": "ManagerFeesNotCrystallized",
6324
+ "msg": "Manager fees should be crystallized before updating"
5615
6325
  },
5616
6326
  {
5617
6327
  "code": 6016,
5618
- "name": "AmountBelowMinimum",
5619
- "msg": "Amount below minimum threshold"
6328
+ "name": "AmountAboveMaximum",
6329
+ "msg": "Amount exceeds maximum threshold"
5620
6330
  },
5621
6331
  {
5622
6332
  "code": 6017,
6333
+ "name": "InsufficientEscrowBalance",
6334
+ "msg": "Insufficient escrow balance for fee burn"
6335
+ },
6336
+ {
6337
+ "code": 6018,
5623
6338
  "name": "TokenAclManagesFreezeThaw",
5624
6339
  "msg": "Token ACL is enabled; freeze/thaw is managed by the Token ACL program"
5625
6340
  },
5626
6341
  {
5627
- "code": 6018,
6342
+ "code": 6019,
5628
6343
  "name": "InvalidMintState",
5629
6344
  "msg": "Invalid mint state"
5630
6345
  }
@@ -5690,6 +6405,51 @@
5690
6405
  ]
5691
6406
  }
5692
6407
  },
6408
+ {
6409
+ "name": "AssetMeta",
6410
+ "type": {
6411
+ "kind": "struct",
6412
+ "fields": [
6413
+ {
6414
+ "name": "asset",
6415
+ "type": "pubkey"
6416
+ },
6417
+ {
6418
+ "name": "decimals",
6419
+ "type": "u8"
6420
+ },
6421
+ {
6422
+ "name": "oracle",
6423
+ "type": "pubkey"
6424
+ },
6425
+ {
6426
+ "name": "oracle_source",
6427
+ "type": {
6428
+ "defined": {
6429
+ "name": "OracleSource"
6430
+ }
6431
+ }
6432
+ },
6433
+ {
6434
+ "name": "max_age_seconds",
6435
+ "type": "u16"
6436
+ },
6437
+ {
6438
+ "name": "priority",
6439
+ "type": "i8"
6440
+ },
6441
+ {
6442
+ "name": "padding",
6443
+ "type": {
6444
+ "array": [
6445
+ "u8",
6446
+ 3
6447
+ ]
6448
+ }
6449
+ }
6450
+ ]
6451
+ }
6452
+ },
5693
6453
  {
5694
6454
  "name": "AumRecord",
5695
6455
  "type": {
@@ -6144,6 +6904,62 @@
6144
6904
  ]
6145
6905
  }
6146
6906
  },
6907
+ {
6908
+ "name": "GlobalConfig",
6909
+ "type": {
6910
+ "kind": "struct",
6911
+ "fields": [
6912
+ {
6913
+ "name": "admin",
6914
+ "docs": [
6915
+ "The authority that can modify the config"
6916
+ ],
6917
+ "type": "pubkey"
6918
+ },
6919
+ {
6920
+ "name": "fee_authority",
6921
+ "docs": [
6922
+ "The authority that can modify fee structure of individual glam state and claim protocol fees"
6923
+ ],
6924
+ "type": "pubkey"
6925
+ },
6926
+ {
6927
+ "name": "referrer",
6928
+ "docs": [
6929
+ "Default GLAM referrer"
6930
+ ],
6931
+ "type": "pubkey"
6932
+ },
6933
+ {
6934
+ "name": "base_fee_bps",
6935
+ "docs": [
6936
+ "Default protocol base fee applied to all vaults"
6937
+ ],
6938
+ "type": "u16"
6939
+ },
6940
+ {
6941
+ "name": "flow_fee_bps",
6942
+ "docs": [
6943
+ "Default protocol flow fee applied to all vaults"
6944
+ ],
6945
+ "type": "u16"
6946
+ },
6947
+ {
6948
+ "name": "asset_metas",
6949
+ "docs": [
6950
+ "List of assets and their oracle configs supported by the protocol"
6951
+ ],
6952
+ "type": {
6953
+ "vec": {
6954
+ "defined": {
6955
+ "name": "AssetMeta"
6956
+ }
6957
+ }
6958
+ }
6959
+ }
6960
+ ]
6961
+ }
6962
+ },
6147
6963
  {
6148
6964
  "name": "HurdleType",
6149
6965
  "type": {
@@ -6500,6 +7316,83 @@
6500
7316
  ]
6501
7317
  }
6502
7318
  },
7319
+ {
7320
+ "name": "OracleSource",
7321
+ "type": {
7322
+ "kind": "enum",
7323
+ "variants": [
7324
+ {
7325
+ "name": "Pyth"
7326
+ },
7327
+ {
7328
+ "name": "Switchboard"
7329
+ },
7330
+ {
7331
+ "name": "QuoteAsset"
7332
+ },
7333
+ {
7334
+ "name": "Pyth1K"
7335
+ },
7336
+ {
7337
+ "name": "Pyth1M"
7338
+ },
7339
+ {
7340
+ "name": "PythStableCoin"
7341
+ },
7342
+ {
7343
+ "name": "Prelaunch"
7344
+ },
7345
+ {
7346
+ "name": "PythPull"
7347
+ },
7348
+ {
7349
+ "name": "Pyth1KPull"
7350
+ },
7351
+ {
7352
+ "name": "Pyth1MPull"
7353
+ },
7354
+ {
7355
+ "name": "PythStableCoinPull"
7356
+ },
7357
+ {
7358
+ "name": "SwitchboardOnDemand"
7359
+ },
7360
+ {
7361
+ "name": "PythLazer"
7362
+ },
7363
+ {
7364
+ "name": "PythLazer1K"
7365
+ },
7366
+ {
7367
+ "name": "PythLazer1M"
7368
+ },
7369
+ {
7370
+ "name": "PythLazerStableCoin"
7371
+ },
7372
+ {
7373
+ "name": "NotSet"
7374
+ },
7375
+ {
7376
+ "name": "LstPoolState"
7377
+ },
7378
+ {
7379
+ "name": "MarinadeState"
7380
+ },
7381
+ {
7382
+ "name": "BaseAsset"
7383
+ },
7384
+ {
7385
+ "name": "ChainlinkRWA"
7386
+ },
7387
+ {
7388
+ "name": "ChainlinkX"
7389
+ },
7390
+ {
7391
+ "name": "KaminoReserve"
7392
+ }
7393
+ ]
7394
+ }
7395
+ },
6503
7396
  {
6504
7397
  "name": "PendingRequest",
6505
7398
  "type": {