@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.
@@ -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,
@@ -2733,31 +2967,740 @@
2733
2967
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
2734
2968
  }
2735
2969
  ],
2736
- "args": [
2737
- {
2738
- "name": "num_users",
2739
- "type": "u8"
2740
- }
2741
- ]
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": []
2742
3682
  },
2743
3683
  {
2744
- "name": "price_drift_vault_depositors",
3684
+ "name": "price_kamino_vault_shares",
2745
3685
  "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)"
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"
2751
3694
  ],
2752
3695
  "discriminator": [
2753
- 234,
2754
- 16,
3696
+ 112,
3697
+ 92,
2755
3698
  238,
2756
- 70,
2757
- 189,
2758
- 23,
2759
- 98,
2760
- 160
3699
+ 224,
3700
+ 145,
3701
+ 105,
3702
+ 38,
3703
+ 249
2761
3704
  ],
2762
3705
  "accounts": [
2763
3706
  {
@@ -2970,36 +3913,28 @@
2970
3913
  ],
2971
3914
  "args": [
2972
3915
  {
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",
3916
+ "name": "num_vaults",
2982
3917
  "type": "u8"
2983
3918
  }
2984
3919
  ]
2985
3920
  },
2986
3921
  {
2987
- "name": "price_kamino_obligations",
3922
+ "name": "price_loopscale_loans",
2988
3923
  "docs": [
2989
- "Prices Kamino obligations. Reserves and obligations must be refreshed in the same slot before calling this ix.",
3924
+ "Price LoopScale loans for a vault",
2990
3925
  "",
2991
- "Extra accounts for pricing N kamino obligations:",
2992
- "- obligations x N"
3926
+ "Extra accounts for pricing N loans:",
3927
+ "- N loan accounts"
2993
3928
  ],
2994
3929
  "discriminator": [
2995
- 166,
2996
- 110,
2997
- 234,
2998
- 179,
2999
- 240,
3000
- 179,
3001
- 69,
3002
- 246
3930
+ 106,
3931
+ 180,
3932
+ 138,
3933
+ 193,
3934
+ 90,
3935
+ 3,
3936
+ 24,
3937
+ 42
3003
3938
  ],
3004
3939
  "accounts": [
3005
3940
  {
@@ -3213,26 +4148,26 @@
3213
4148
  "args": []
3214
4149
  },
3215
4150
  {
3216
- "name": "price_kamino_vault_shares",
4151
+ "name": "price_neutral_bundle_depositors",
3217
4152
  "docs": [
3218
- "Prices Kamino vault shares.",
3219
- "- `num_vaults` Number of kamino vaults to price.",
4153
+ "Price neutral bundle depositors",
3220
4154
  "",
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"
4155
+ "Remaining accounts:",
4156
+ "- 4 * N neutral bundle depositor account tuples:",
4157
+ "1. User bundle account",
4158
+ "2. Bundle account",
4159
+ "3. Bundle oracle data account",
4160
+ "4. Bundle asset oracle account"
3226
4161
  ],
3227
4162
  "discriminator": [
3228
- 112,
3229
- 92,
3230
- 238,
3231
- 224,
3232
- 145,
3233
- 105,
3234
- 38,
3235
- 249
4163
+ 202,
4164
+ 93,
4165
+ 205,
4166
+ 29,
4167
+ 37,
4168
+ 180,
4169
+ 127,
4170
+ 102
3236
4171
  ],
3237
4172
  "accounts": [
3238
4173
  {
@@ -3443,12 +4378,7 @@
3443
4378
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
3444
4379
  }
3445
4380
  ],
3446
- "args": [
3447
- {
3448
- "name": "num_vaults",
3449
- "type": "u8"
3450
- }
3451
- ]
4381
+ "args": []
3452
4382
  },
3453
4383
  {
3454
4384
  "name": "price_single_asset_vault",
@@ -5477,6 +6407,19 @@
5477
6407
  }
5478
6408
  ],
5479
6409
  "accounts": [
6410
+ {
6411
+ "name": "GlobalConfig",
6412
+ "discriminator": [
6413
+ 149,
6414
+ 8,
6415
+ 156,
6416
+ 202,
6417
+ 160,
6418
+ 252,
6419
+ 176,
6420
+ 217
6421
+ ]
6422
+ },
5480
6423
  {
5481
6424
  "name": "RequestQueue",
5482
6425
  "discriminator": [
@@ -5551,7 +6494,7 @@
5551
6494
  {
5552
6495
  "code": 6003,
5553
6496
  "name": "InvalidAsset",
5554
- "msg": "Invalid asset"
6497
+ "msg": "Asset not allowed to subscribe"
5555
6498
  },
5556
6499
  {
5557
6500
  "code": 6004,
@@ -5605,26 +6548,31 @@
5605
6548
  },
5606
6549
  {
5607
6550
  "code": 6014,
5608
- "name": "ManagerFeesNotCrystallized",
5609
- "msg": "Manager fees should be crystallized before updating"
6551
+ "name": "AmountBelowMinimum",
6552
+ "msg": "Amount is below the minimum required"
5610
6553
  },
5611
6554
  {
5612
6555
  "code": 6015,
5613
- "name": "InsufficientEscrowBalance",
5614
- "msg": "Insufficient escrow balance for fee burn"
6556
+ "name": "ManagerFeesNotCrystallized",
6557
+ "msg": "Manager fees should be crystallized before updating"
5615
6558
  },
5616
6559
  {
5617
6560
  "code": 6016,
5618
- "name": "AmountBelowMinimum",
5619
- "msg": "Amount below minimum threshold"
6561
+ "name": "AmountAboveMaximum",
6562
+ "msg": "Amount exceeds maximum threshold"
5620
6563
  },
5621
6564
  {
5622
6565
  "code": 6017,
6566
+ "name": "InsufficientEscrowBalance",
6567
+ "msg": "Insufficient escrow balance for fee burn"
6568
+ },
6569
+ {
6570
+ "code": 6018,
5623
6571
  "name": "TokenAclManagesFreezeThaw",
5624
6572
  "msg": "Token ACL is enabled; freeze/thaw is managed by the Token ACL program"
5625
6573
  },
5626
6574
  {
5627
- "code": 6018,
6575
+ "code": 6019,
5628
6576
  "name": "InvalidMintState",
5629
6577
  "msg": "Invalid mint state"
5630
6578
  }
@@ -5690,6 +6638,51 @@
5690
6638
  ]
5691
6639
  }
5692
6640
  },
6641
+ {
6642
+ "name": "AssetMeta",
6643
+ "type": {
6644
+ "kind": "struct",
6645
+ "fields": [
6646
+ {
6647
+ "name": "asset",
6648
+ "type": "pubkey"
6649
+ },
6650
+ {
6651
+ "name": "decimals",
6652
+ "type": "u8"
6653
+ },
6654
+ {
6655
+ "name": "oracle",
6656
+ "type": "pubkey"
6657
+ },
6658
+ {
6659
+ "name": "oracle_source",
6660
+ "type": {
6661
+ "defined": {
6662
+ "name": "OracleSource"
6663
+ }
6664
+ }
6665
+ },
6666
+ {
6667
+ "name": "max_age_seconds",
6668
+ "type": "u16"
6669
+ },
6670
+ {
6671
+ "name": "priority",
6672
+ "type": "i8"
6673
+ },
6674
+ {
6675
+ "name": "padding",
6676
+ "type": {
6677
+ "array": [
6678
+ "u8",
6679
+ 3
6680
+ ]
6681
+ }
6682
+ }
6683
+ ]
6684
+ }
6685
+ },
5693
6686
  {
5694
6687
  "name": "AumRecord",
5695
6688
  "type": {
@@ -6144,6 +7137,62 @@
6144
7137
  ]
6145
7138
  }
6146
7139
  },
7140
+ {
7141
+ "name": "GlobalConfig",
7142
+ "type": {
7143
+ "kind": "struct",
7144
+ "fields": [
7145
+ {
7146
+ "name": "admin",
7147
+ "docs": [
7148
+ "The authority that can modify the config"
7149
+ ],
7150
+ "type": "pubkey"
7151
+ },
7152
+ {
7153
+ "name": "fee_authority",
7154
+ "docs": [
7155
+ "The authority that can modify fee structure of individual glam state and claim protocol fees"
7156
+ ],
7157
+ "type": "pubkey"
7158
+ },
7159
+ {
7160
+ "name": "referrer",
7161
+ "docs": [
7162
+ "Default GLAM referrer"
7163
+ ],
7164
+ "type": "pubkey"
7165
+ },
7166
+ {
7167
+ "name": "base_fee_bps",
7168
+ "docs": [
7169
+ "Default protocol base fee applied to all vaults"
7170
+ ],
7171
+ "type": "u16"
7172
+ },
7173
+ {
7174
+ "name": "flow_fee_bps",
7175
+ "docs": [
7176
+ "Default protocol flow fee applied to all vaults"
7177
+ ],
7178
+ "type": "u16"
7179
+ },
7180
+ {
7181
+ "name": "asset_metas",
7182
+ "docs": [
7183
+ "List of assets and their oracle configs supported by the protocol"
7184
+ ],
7185
+ "type": {
7186
+ "vec": {
7187
+ "defined": {
7188
+ "name": "AssetMeta"
7189
+ }
7190
+ }
7191
+ }
7192
+ }
7193
+ ]
7194
+ }
7195
+ },
6147
7196
  {
6148
7197
  "name": "HurdleType",
6149
7198
  "type": {
@@ -6500,6 +7549,83 @@
6500
7549
  ]
6501
7550
  }
6502
7551
  },
7552
+ {
7553
+ "name": "OracleSource",
7554
+ "type": {
7555
+ "kind": "enum",
7556
+ "variants": [
7557
+ {
7558
+ "name": "Pyth"
7559
+ },
7560
+ {
7561
+ "name": "Switchboard"
7562
+ },
7563
+ {
7564
+ "name": "QuoteAsset"
7565
+ },
7566
+ {
7567
+ "name": "Pyth1K"
7568
+ },
7569
+ {
7570
+ "name": "Pyth1M"
7571
+ },
7572
+ {
7573
+ "name": "PythStableCoin"
7574
+ },
7575
+ {
7576
+ "name": "Prelaunch"
7577
+ },
7578
+ {
7579
+ "name": "PythPull"
7580
+ },
7581
+ {
7582
+ "name": "Pyth1KPull"
7583
+ },
7584
+ {
7585
+ "name": "Pyth1MPull"
7586
+ },
7587
+ {
7588
+ "name": "PythStableCoinPull"
7589
+ },
7590
+ {
7591
+ "name": "SwitchboardOnDemand"
7592
+ },
7593
+ {
7594
+ "name": "PythLazer"
7595
+ },
7596
+ {
7597
+ "name": "PythLazer1K"
7598
+ },
7599
+ {
7600
+ "name": "PythLazer1M"
7601
+ },
7602
+ {
7603
+ "name": "PythLazerStableCoin"
7604
+ },
7605
+ {
7606
+ "name": "NotSet"
7607
+ },
7608
+ {
7609
+ "name": "LstPoolState"
7610
+ },
7611
+ {
7612
+ "name": "MarinadeState"
7613
+ },
7614
+ {
7615
+ "name": "BaseAsset"
7616
+ },
7617
+ {
7618
+ "name": "ChainlinkRWA"
7619
+ },
7620
+ {
7621
+ "name": "ChainlinkX"
7622
+ },
7623
+ {
7624
+ "name": "KaminoReserve"
7625
+ }
7626
+ ]
7627
+ }
7628
+ },
6503
7629
  {
6504
7630
  "name": "PendingRequest",
6505
7631
  "type": {