@glamsystems/glam-sdk 1.0.14-alpha.5 → 1.1.0-alpha.1

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,
@@ -2739,31 +2973,740 @@ export type GlamMint = {
2739
2973
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
2740
2974
  }
2741
2975
  ],
2742
- "args": [
2743
- {
2744
- "name": "numUsers",
2745
- "type": "u8"
2746
- }
2747
- ]
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": []
2748
3688
  },
2749
3689
  {
2750
- "name": "priceDriftVaultDepositors",
3690
+ "name": "priceKaminoVaultShares",
2751
3691
  "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)"
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"
2757
3700
  ],
2758
3701
  "discriminator": [
2759
- 234,
2760
- 16,
3702
+ 112,
3703
+ 92,
2761
3704
  238,
2762
- 70,
2763
- 189,
2764
- 23,
2765
- 98,
2766
- 160
3705
+ 224,
3706
+ 145,
3707
+ 105,
3708
+ 38,
3709
+ 249
2767
3710
  ],
2768
3711
  "accounts": [
2769
3712
  {
@@ -2976,36 +3919,28 @@ export type GlamMint = {
2976
3919
  ],
2977
3920
  "args": [
2978
3921
  {
2979
- "name": "numVaultDepositors",
2980
- "type": "u8"
2981
- },
2982
- {
2983
- "name": "numSpotMarkets",
2984
- "type": "u8"
2985
- },
2986
- {
2987
- "name": "numPerpMarkets",
3922
+ "name": "numVaults",
2988
3923
  "type": "u8"
2989
3924
  }
2990
3925
  ]
2991
3926
  },
2992
3927
  {
2993
- "name": "priceKaminoObligations",
3928
+ "name": "priceLoopscaleLoans",
2994
3929
  "docs": [
2995
- "Prices Kamino obligations. Reserves and obligations must be refreshed in the same slot before calling this ix.",
3930
+ "Price LoopScale loans for a vault",
2996
3931
  "",
2997
- "Extra accounts for pricing N kamino obligations:",
2998
- "- obligations x N"
3932
+ "Extra accounts for pricing N loans:",
3933
+ "- N loan accounts"
2999
3934
  ],
3000
3935
  "discriminator": [
3001
- 166,
3002
- 110,
3003
- 234,
3004
- 179,
3005
- 240,
3006
- 179,
3007
- 69,
3008
- 246
3936
+ 106,
3937
+ 180,
3938
+ 138,
3939
+ 193,
3940
+ 90,
3941
+ 3,
3942
+ 24,
3943
+ 42
3009
3944
  ],
3010
3945
  "accounts": [
3011
3946
  {
@@ -3219,26 +4154,26 @@ export type GlamMint = {
3219
4154
  "args": []
3220
4155
  },
3221
4156
  {
3222
- "name": "priceKaminoVaultShares",
4157
+ "name": "priceNeutralBundleDepositors",
3223
4158
  "docs": [
3224
- "Prices Kamino vault shares.",
3225
- "- `num_vaults` Number of kamino vaults to price.",
4159
+ "Price neutral bundle depositors",
3226
4160
  "",
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"
4161
+ "Remaining accounts:",
4162
+ "- 4 * N neutral bundle depositor account tuples:",
4163
+ "1. User bundle account",
4164
+ "2. Bundle account",
4165
+ "3. Bundle oracle data account",
4166
+ "4. Bundle asset oracle account"
3232
4167
  ],
3233
4168
  "discriminator": [
3234
- 112,
3235
- 92,
3236
- 238,
3237
- 224,
3238
- 145,
3239
- 105,
3240
- 38,
3241
- 249
4169
+ 202,
4170
+ 93,
4171
+ 205,
4172
+ 29,
4173
+ 37,
4174
+ 180,
4175
+ 127,
4176
+ 102
3242
4177
  ],
3243
4178
  "accounts": [
3244
4179
  {
@@ -3449,12 +4384,7 @@ export type GlamMint = {
3449
4384
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
3450
4385
  }
3451
4386
  ],
3452
- "args": [
3453
- {
3454
- "name": "numVaults",
3455
- "type": "u8"
3456
- }
3457
- ]
4387
+ "args": []
3458
4388
  },
3459
4389
  {
3460
4390
  "name": "priceSingleAssetVault",
@@ -5483,6 +6413,19 @@ export type GlamMint = {
5483
6413
  }
5484
6414
  ],
5485
6415
  "accounts": [
6416
+ {
6417
+ "name": "globalConfig",
6418
+ "discriminator": [
6419
+ 149,
6420
+ 8,
6421
+ 156,
6422
+ 202,
6423
+ 160,
6424
+ 252,
6425
+ 176,
6426
+ 217
6427
+ ]
6428
+ },
5486
6429
  {
5487
6430
  "name": "requestQueue",
5488
6431
  "discriminator": [
@@ -5557,7 +6500,7 @@ export type GlamMint = {
5557
6500
  {
5558
6501
  "code": 6003,
5559
6502
  "name": "invalidAsset",
5560
- "msg": "Invalid asset"
6503
+ "msg": "Asset not allowed to subscribe"
5561
6504
  },
5562
6505
  {
5563
6506
  "code": 6004,
@@ -5611,26 +6554,31 @@ export type GlamMint = {
5611
6554
  },
5612
6555
  {
5613
6556
  "code": 6014,
5614
- "name": "managerFeesNotCrystallized",
5615
- "msg": "Manager fees should be crystallized before updating"
6557
+ "name": "amountBelowMinimum",
6558
+ "msg": "Amount is below the minimum required"
5616
6559
  },
5617
6560
  {
5618
6561
  "code": 6015,
5619
- "name": "insufficientEscrowBalance",
5620
- "msg": "Insufficient escrow balance for fee burn"
6562
+ "name": "managerFeesNotCrystallized",
6563
+ "msg": "Manager fees should be crystallized before updating"
5621
6564
  },
5622
6565
  {
5623
6566
  "code": 6016,
5624
- "name": "amountBelowMinimum",
5625
- "msg": "Amount below minimum threshold"
6567
+ "name": "amountAboveMaximum",
6568
+ "msg": "Amount exceeds maximum threshold"
5626
6569
  },
5627
6570
  {
5628
6571
  "code": 6017,
6572
+ "name": "insufficientEscrowBalance",
6573
+ "msg": "Insufficient escrow balance for fee burn"
6574
+ },
6575
+ {
6576
+ "code": 6018,
5629
6577
  "name": "tokenAclManagesFreezeThaw",
5630
6578
  "msg": "Token ACL is enabled; freeze/thaw is managed by the Token ACL program"
5631
6579
  },
5632
6580
  {
5633
- "code": 6018,
6581
+ "code": 6019,
5634
6582
  "name": "invalidMintState",
5635
6583
  "msg": "Invalid mint state"
5636
6584
  }
@@ -5696,6 +6644,51 @@ export type GlamMint = {
5696
6644
  ]
5697
6645
  }
5698
6646
  },
6647
+ {
6648
+ "name": "assetMeta",
6649
+ "type": {
6650
+ "kind": "struct",
6651
+ "fields": [
6652
+ {
6653
+ "name": "asset",
6654
+ "type": "pubkey"
6655
+ },
6656
+ {
6657
+ "name": "decimals",
6658
+ "type": "u8"
6659
+ },
6660
+ {
6661
+ "name": "oracle",
6662
+ "type": "pubkey"
6663
+ },
6664
+ {
6665
+ "name": "oracleSource",
6666
+ "type": {
6667
+ "defined": {
6668
+ "name": "oracleSource"
6669
+ }
6670
+ }
6671
+ },
6672
+ {
6673
+ "name": "maxAgeSeconds",
6674
+ "type": "u16"
6675
+ },
6676
+ {
6677
+ "name": "priority",
6678
+ "type": "i8"
6679
+ },
6680
+ {
6681
+ "name": "padding",
6682
+ "type": {
6683
+ "array": [
6684
+ "u8",
6685
+ 3
6686
+ ]
6687
+ }
6688
+ }
6689
+ ]
6690
+ }
6691
+ },
5699
6692
  {
5700
6693
  "name": "aumRecord",
5701
6694
  "type": {
@@ -6150,6 +7143,62 @@ export type GlamMint = {
6150
7143
  ]
6151
7144
  }
6152
7145
  },
7146
+ {
7147
+ "name": "globalConfig",
7148
+ "type": {
7149
+ "kind": "struct",
7150
+ "fields": [
7151
+ {
7152
+ "name": "admin",
7153
+ "docs": [
7154
+ "The authority that can modify the config"
7155
+ ],
7156
+ "type": "pubkey"
7157
+ },
7158
+ {
7159
+ "name": "feeAuthority",
7160
+ "docs": [
7161
+ "The authority that can modify fee structure of individual glam state and claim protocol fees"
7162
+ ],
7163
+ "type": "pubkey"
7164
+ },
7165
+ {
7166
+ "name": "referrer",
7167
+ "docs": [
7168
+ "Default GLAM referrer"
7169
+ ],
7170
+ "type": "pubkey"
7171
+ },
7172
+ {
7173
+ "name": "baseFeeBps",
7174
+ "docs": [
7175
+ "Default protocol base fee applied to all vaults"
7176
+ ],
7177
+ "type": "u16"
7178
+ },
7179
+ {
7180
+ "name": "flowFeeBps",
7181
+ "docs": [
7182
+ "Default protocol flow fee applied to all vaults"
7183
+ ],
7184
+ "type": "u16"
7185
+ },
7186
+ {
7187
+ "name": "assetMetas",
7188
+ "docs": [
7189
+ "List of assets and their oracle configs supported by the protocol"
7190
+ ],
7191
+ "type": {
7192
+ "vec": {
7193
+ "defined": {
7194
+ "name": "assetMeta"
7195
+ }
7196
+ }
7197
+ }
7198
+ }
7199
+ ]
7200
+ }
7201
+ },
6153
7202
  {
6154
7203
  "name": "hurdleType",
6155
7204
  "type": {
@@ -6506,6 +7555,83 @@ export type GlamMint = {
6506
7555
  ]
6507
7556
  }
6508
7557
  },
7558
+ {
7559
+ "name": "oracleSource",
7560
+ "type": {
7561
+ "kind": "enum",
7562
+ "variants": [
7563
+ {
7564
+ "name": "pyth"
7565
+ },
7566
+ {
7567
+ "name": "switchboard"
7568
+ },
7569
+ {
7570
+ "name": "quoteAsset"
7571
+ },
7572
+ {
7573
+ "name": "pyth1K"
7574
+ },
7575
+ {
7576
+ "name": "pyth1M"
7577
+ },
7578
+ {
7579
+ "name": "pythStableCoin"
7580
+ },
7581
+ {
7582
+ "name": "prelaunch"
7583
+ },
7584
+ {
7585
+ "name": "pythPull"
7586
+ },
7587
+ {
7588
+ "name": "pyth1KPull"
7589
+ },
7590
+ {
7591
+ "name": "pyth1MPull"
7592
+ },
7593
+ {
7594
+ "name": "pythStableCoinPull"
7595
+ },
7596
+ {
7597
+ "name": "switchboardOnDemand"
7598
+ },
7599
+ {
7600
+ "name": "pythLazer"
7601
+ },
7602
+ {
7603
+ "name": "pythLazer1K"
7604
+ },
7605
+ {
7606
+ "name": "pythLazer1M"
7607
+ },
7608
+ {
7609
+ "name": "pythLazerStableCoin"
7610
+ },
7611
+ {
7612
+ "name": "notSet"
7613
+ },
7614
+ {
7615
+ "name": "lstPoolState"
7616
+ },
7617
+ {
7618
+ "name": "marinadeState"
7619
+ },
7620
+ {
7621
+ "name": "baseAsset"
7622
+ },
7623
+ {
7624
+ "name": "chainlinkRwa"
7625
+ },
7626
+ {
7627
+ "name": "chainlinkX"
7628
+ },
7629
+ {
7630
+ "name": "kaminoReserve"
7631
+ }
7632
+ ]
7633
+ }
7634
+ },
6509
7635
  {
6510
7636
  "name": "pendingRequest",
6511
7637
  "type": {