@glamsystems/glam-sdk 1.0.14-alpha.5 → 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.
@@ -8,7 +8,7 @@ export type GlamMint = {
8
8
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5",
9
9
  "metadata": {
10
10
  "name": "glamMint",
11
- "version": "1.0.2",
11
+ "version": "1.0.3",
12
12
  "spec": "0.1.0",
13
13
  "description": "GLAM mint program"
14
14
  },
@@ -2512,13 +2512,247 @@ 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."
2522
2756
  ],
2523
2757
  "discriminator": [
2524
2758
  12,
@@ -2744,26 +2978,502 @@ export type GlamMint = {
2744
2978
  "name": "numUsers",
2745
2979
  "type": "u8"
2746
2980
  }
2747
- ]
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": []
2748
3459
  },
2749
3460
  {
2750
- "name": "priceDriftVaultDepositors",
3461
+ "name": "priceKaminoObligations",
2751
3462
  "docs": [
2752
- "Extra accounts for pricing N vault depositors:",
2753
- "- (vault_depositor, drift_vault, drift_user) x N",
2754
- "- spot_market used by drift users of vaults (no specific order)",
2755
- "- perp markets used by drift users of vaults (no specific order)",
2756
- "- oracles of spot markets and perp markets (no specific order)"
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"
2757
3467
  ],
2758
3468
  "discriminator": [
3469
+ 166,
3470
+ 110,
2759
3471
  234,
2760
- 16,
2761
- 238,
2762
- 70,
2763
- 189,
2764
- 23,
2765
- 98,
2766
- 160
3472
+ 179,
3473
+ 240,
3474
+ 179,
3475
+ 69,
3476
+ 246
2767
3477
  ],
2768
3478
  "accounts": [
2769
3479
  {
@@ -2974,38 +3684,29 @@ export type GlamMint = {
2974
3684
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
2975
3685
  }
2976
3686
  ],
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
- ]
3687
+ "args": []
2991
3688
  },
2992
3689
  {
2993
- "name": "priceKaminoObligations",
3690
+ "name": "priceKaminoVaultShares",
2994
3691
  "docs": [
2995
- "Prices Kamino obligations. Reserves and obligations must be refreshed in the same slot before calling this ix.",
3692
+ "Prices Kamino vault shares.",
3693
+ "- `num_vaults` Number of kamino vaults to price.",
2996
3694
  "",
2997
- "Extra accounts for pricing N kamino obligations:",
2998
- "- obligations x N"
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"
2999
3700
  ],
3000
3701
  "discriminator": [
3001
- 166,
3002
- 110,
3003
- 234,
3004
- 179,
3005
- 240,
3006
- 179,
3007
- 69,
3008
- 246
3702
+ 112,
3703
+ 92,
3704
+ 238,
3705
+ 224,
3706
+ 145,
3707
+ 105,
3708
+ 38,
3709
+ 249
3009
3710
  ],
3010
3711
  "accounts": [
3011
3712
  {
@@ -3216,29 +3917,30 @@ export type GlamMint = {
3216
3917
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
3217
3918
  }
3218
3919
  ],
3219
- "args": []
3920
+ "args": [
3921
+ {
3922
+ "name": "numVaults",
3923
+ "type": "u8"
3924
+ }
3925
+ ]
3220
3926
  },
3221
3927
  {
3222
- "name": "priceKaminoVaultShares",
3928
+ "name": "priceLoopscaleLoans",
3223
3929
  "docs": [
3224
- "Prices Kamino vault shares.",
3225
- "- `num_vaults` Number of kamino vaults to price.",
3930
+ "Price LoopScale loans for a vault",
3226
3931
  "",
3227
- "Extra accounts for pricing N kamino vault shares:",
3228
- "- (kvault_share_ata, kvault_share_mint, kvault_state, kvault_deposit_token_oracle) x N",
3229
- "- reserve x M",
3230
- "- M = number of reserves used by all kvaults' allocations",
3231
- "- reserve pubkeys must follow the same order of reserves used by each allocation"
3932
+ "Extra accounts for pricing N loans:",
3933
+ "- N loan accounts"
3232
3934
  ],
3233
3935
  "discriminator": [
3234
- 112,
3235
- 92,
3236
- 238,
3237
- 224,
3238
- 145,
3239
- 105,
3240
- 38,
3241
- 249
3936
+ 106,
3937
+ 180,
3938
+ 138,
3939
+ 193,
3940
+ 90,
3941
+ 3,
3942
+ 24,
3943
+ 42
3242
3944
  ],
3243
3945
  "accounts": [
3244
3946
  {
@@ -3449,12 +4151,7 @@ export type GlamMint = {
3449
4151
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
3450
4152
  }
3451
4153
  ],
3452
- "args": [
3453
- {
3454
- "name": "numVaults",
3455
- "type": "u8"
3456
- }
3457
- ]
4154
+ "args": []
3458
4155
  },
3459
4156
  {
3460
4157
  "name": "priceSingleAssetVault",
@@ -5483,6 +6180,19 @@ export type GlamMint = {
5483
6180
  }
5484
6181
  ],
5485
6182
  "accounts": [
6183
+ {
6184
+ "name": "globalConfig",
6185
+ "discriminator": [
6186
+ 149,
6187
+ 8,
6188
+ 156,
6189
+ 202,
6190
+ 160,
6191
+ 252,
6192
+ 176,
6193
+ 217
6194
+ ]
6195
+ },
5486
6196
  {
5487
6197
  "name": "requestQueue",
5488
6198
  "discriminator": [
@@ -5557,7 +6267,7 @@ export type GlamMint = {
5557
6267
  {
5558
6268
  "code": 6003,
5559
6269
  "name": "invalidAsset",
5560
- "msg": "Invalid asset"
6270
+ "msg": "Asset not allowed to subscribe"
5561
6271
  },
5562
6272
  {
5563
6273
  "code": 6004,
@@ -5611,26 +6321,31 @@ export type GlamMint = {
5611
6321
  },
5612
6322
  {
5613
6323
  "code": 6014,
5614
- "name": "managerFeesNotCrystallized",
5615
- "msg": "Manager fees should be crystallized before updating"
6324
+ "name": "amountBelowMinimum",
6325
+ "msg": "Amount is below the minimum required"
5616
6326
  },
5617
6327
  {
5618
6328
  "code": 6015,
5619
- "name": "insufficientEscrowBalance",
5620
- "msg": "Insufficient escrow balance for fee burn"
6329
+ "name": "managerFeesNotCrystallized",
6330
+ "msg": "Manager fees should be crystallized before updating"
5621
6331
  },
5622
6332
  {
5623
6333
  "code": 6016,
5624
- "name": "amountBelowMinimum",
5625
- "msg": "Amount below minimum threshold"
6334
+ "name": "amountAboveMaximum",
6335
+ "msg": "Amount exceeds maximum threshold"
5626
6336
  },
5627
6337
  {
5628
6338
  "code": 6017,
6339
+ "name": "insufficientEscrowBalance",
6340
+ "msg": "Insufficient escrow balance for fee burn"
6341
+ },
6342
+ {
6343
+ "code": 6018,
5629
6344
  "name": "tokenAclManagesFreezeThaw",
5630
6345
  "msg": "Token ACL is enabled; freeze/thaw is managed by the Token ACL program"
5631
6346
  },
5632
6347
  {
5633
- "code": 6018,
6348
+ "code": 6019,
5634
6349
  "name": "invalidMintState",
5635
6350
  "msg": "Invalid mint state"
5636
6351
  }
@@ -5696,6 +6411,51 @@ export type GlamMint = {
5696
6411
  ]
5697
6412
  }
5698
6413
  },
6414
+ {
6415
+ "name": "assetMeta",
6416
+ "type": {
6417
+ "kind": "struct",
6418
+ "fields": [
6419
+ {
6420
+ "name": "asset",
6421
+ "type": "pubkey"
6422
+ },
6423
+ {
6424
+ "name": "decimals",
6425
+ "type": "u8"
6426
+ },
6427
+ {
6428
+ "name": "oracle",
6429
+ "type": "pubkey"
6430
+ },
6431
+ {
6432
+ "name": "oracleSource",
6433
+ "type": {
6434
+ "defined": {
6435
+ "name": "oracleSource"
6436
+ }
6437
+ }
6438
+ },
6439
+ {
6440
+ "name": "maxAgeSeconds",
6441
+ "type": "u16"
6442
+ },
6443
+ {
6444
+ "name": "priority",
6445
+ "type": "i8"
6446
+ },
6447
+ {
6448
+ "name": "padding",
6449
+ "type": {
6450
+ "array": [
6451
+ "u8",
6452
+ 3
6453
+ ]
6454
+ }
6455
+ }
6456
+ ]
6457
+ }
6458
+ },
5699
6459
  {
5700
6460
  "name": "aumRecord",
5701
6461
  "type": {
@@ -6150,6 +6910,62 @@ export type GlamMint = {
6150
6910
  ]
6151
6911
  }
6152
6912
  },
6913
+ {
6914
+ "name": "globalConfig",
6915
+ "type": {
6916
+ "kind": "struct",
6917
+ "fields": [
6918
+ {
6919
+ "name": "admin",
6920
+ "docs": [
6921
+ "The authority that can modify the config"
6922
+ ],
6923
+ "type": "pubkey"
6924
+ },
6925
+ {
6926
+ "name": "feeAuthority",
6927
+ "docs": [
6928
+ "The authority that can modify fee structure of individual glam state and claim protocol fees"
6929
+ ],
6930
+ "type": "pubkey"
6931
+ },
6932
+ {
6933
+ "name": "referrer",
6934
+ "docs": [
6935
+ "Default GLAM referrer"
6936
+ ],
6937
+ "type": "pubkey"
6938
+ },
6939
+ {
6940
+ "name": "baseFeeBps",
6941
+ "docs": [
6942
+ "Default protocol base fee applied to all vaults"
6943
+ ],
6944
+ "type": "u16"
6945
+ },
6946
+ {
6947
+ "name": "flowFeeBps",
6948
+ "docs": [
6949
+ "Default protocol flow fee applied to all vaults"
6950
+ ],
6951
+ "type": "u16"
6952
+ },
6953
+ {
6954
+ "name": "assetMetas",
6955
+ "docs": [
6956
+ "List of assets and their oracle configs supported by the protocol"
6957
+ ],
6958
+ "type": {
6959
+ "vec": {
6960
+ "defined": {
6961
+ "name": "assetMeta"
6962
+ }
6963
+ }
6964
+ }
6965
+ }
6966
+ ]
6967
+ }
6968
+ },
6153
6969
  {
6154
6970
  "name": "hurdleType",
6155
6971
  "type": {
@@ -6506,6 +7322,83 @@ export type GlamMint = {
6506
7322
  ]
6507
7323
  }
6508
7324
  },
7325
+ {
7326
+ "name": "oracleSource",
7327
+ "type": {
7328
+ "kind": "enum",
7329
+ "variants": [
7330
+ {
7331
+ "name": "pyth"
7332
+ },
7333
+ {
7334
+ "name": "switchboard"
7335
+ },
7336
+ {
7337
+ "name": "quoteAsset"
7338
+ },
7339
+ {
7340
+ "name": "pyth1K"
7341
+ },
7342
+ {
7343
+ "name": "pyth1M"
7344
+ },
7345
+ {
7346
+ "name": "pythStableCoin"
7347
+ },
7348
+ {
7349
+ "name": "prelaunch"
7350
+ },
7351
+ {
7352
+ "name": "pythPull"
7353
+ },
7354
+ {
7355
+ "name": "pyth1KPull"
7356
+ },
7357
+ {
7358
+ "name": "pyth1MPull"
7359
+ },
7360
+ {
7361
+ "name": "pythStableCoinPull"
7362
+ },
7363
+ {
7364
+ "name": "switchboardOnDemand"
7365
+ },
7366
+ {
7367
+ "name": "pythLazer"
7368
+ },
7369
+ {
7370
+ "name": "pythLazer1K"
7371
+ },
7372
+ {
7373
+ "name": "pythLazer1M"
7374
+ },
7375
+ {
7376
+ "name": "pythLazerStableCoin"
7377
+ },
7378
+ {
7379
+ "name": "notSet"
7380
+ },
7381
+ {
7382
+ "name": "lstPoolState"
7383
+ },
7384
+ {
7385
+ "name": "marinadeState"
7386
+ },
7387
+ {
7388
+ "name": "baseAsset"
7389
+ },
7390
+ {
7391
+ "name": "chainlinkRwa"
7392
+ },
7393
+ {
7394
+ "name": "chainlinkX"
7395
+ },
7396
+ {
7397
+ "name": "kaminoReserve"
7398
+ }
7399
+ ]
7400
+ }
7401
+ },
6509
7402
  {
6510
7403
  "name": "pendingRequest",
6511
7404
  "type": {