@glamsystems/glam-sdk 1.0.9 → 1.0.10

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.
Files changed (46) hide show
  1. package/index.cjs.js +497 -24
  2. package/index.esm.js +497 -24
  3. package/package.json +1 -1
  4. package/src/client/cctp.d.ts +6 -6
  5. package/src/glamExports.d.ts +1 -5
  6. package/src/models/state.d.ts +5 -0
  7. package/src/react/glam.d.ts +1 -1
  8. package/target/idl/ext_cctp.json +3 -0
  9. package/target/idl/ext_drift-staging.json +3 -0
  10. package/target/idl/ext_drift.json +3 -0
  11. package/target/idl/ext_kamino-staging.json +3 -0
  12. package/target/idl/ext_kamino.json +3 -0
  13. package/target/idl/ext_marinade.json +3 -0
  14. package/target/idl/ext_spl-staging.json +3 -0
  15. package/target/idl/ext_spl.json +3 -0
  16. package/target/idl/ext_stake_pool-staging.json +3 -0
  17. package/target/idl/ext_stake_pool.json +3 -0
  18. package/target/idl/glam_config.json +63 -0
  19. package/target/idl/glam_mint-staging.json +178 -2
  20. package/target/idl/glam_mint.json +178 -2
  21. package/target/idl/glam_protocol-staging.json +4 -1
  22. package/target/idl/glam_protocol.json +4 -1
  23. package/target/types/ext_cctp.d.ts +3 -0
  24. package/target/types/ext_cctp.ts +3 -0
  25. package/target/types/ext_drift-staging.ts +3 -0
  26. package/target/types/ext_drift.d.ts +3 -0
  27. package/target/types/ext_drift.ts +3 -0
  28. package/target/types/ext_kamino-staging.ts +3 -0
  29. package/target/types/ext_kamino.d.ts +3 -0
  30. package/target/types/ext_kamino.ts +3 -0
  31. package/target/types/ext_marinade.d.ts +3 -0
  32. package/target/types/ext_marinade.ts +3 -0
  33. package/target/types/ext_spl-staging.ts +3 -0
  34. package/target/types/ext_spl.d.ts +3 -0
  35. package/target/types/ext_spl.ts +3 -0
  36. package/target/types/ext_stake_pool-staging.ts +3 -0
  37. package/target/types/ext_stake_pool.d.ts +3 -0
  38. package/target/types/ext_stake_pool.ts +3 -0
  39. package/target/types/glam_config.d.ts +63 -0
  40. package/target/types/glam_config.ts +63 -0
  41. package/target/types/glam_mint-staging.ts +178 -2
  42. package/target/types/glam_mint.d.ts +178 -2
  43. package/target/types/glam_mint.ts +178 -2
  44. package/target/types/glam_protocol-staging.ts +4 -1
  45. package/target/types/glam_protocol.d.ts +4 -1
  46. package/target/types/glam_protocol.ts +4 -1
@@ -2,7 +2,7 @@
2
2
  "address": "GM1NtvvnSXUptTrMCqbogAdZJydZSNv98DoU5AZVLmGh",
3
3
  "metadata": {
4
4
  "name": "glam_mint",
5
- "version": "1.0.1",
5
+ "version": "1.0.2",
6
6
  "spec": "0.1.0",
7
7
  "description": "GLAM mint program"
8
8
  },
@@ -2818,6 +2818,167 @@
2818
2818
  }
2819
2819
  ]
2820
2820
  },
2821
+ {
2822
+ "name": "price_single_asset_vault",
2823
+ "docs": [
2824
+ "Prices a single asset vault."
2825
+ ],
2826
+ "discriminator": [
2827
+ 93,
2828
+ 213,
2829
+ 219,
2830
+ 25,
2831
+ 38,
2832
+ 74,
2833
+ 9,
2834
+ 167
2835
+ ],
2836
+ "accounts": [
2837
+ {
2838
+ "name": "glam_state",
2839
+ "writable": true
2840
+ },
2841
+ {
2842
+ "name": "glam_vault",
2843
+ "pda": {
2844
+ "seeds": [
2845
+ {
2846
+ "kind": "const",
2847
+ "value": [
2848
+ 118,
2849
+ 97,
2850
+ 117,
2851
+ 108,
2852
+ 116
2853
+ ]
2854
+ },
2855
+ {
2856
+ "kind": "account",
2857
+ "path": "glam_state"
2858
+ }
2859
+ ],
2860
+ "program": {
2861
+ "kind": "const",
2862
+ "value": [
2863
+ 227,
2864
+ 199,
2865
+ 235,
2866
+ 230,
2867
+ 176,
2868
+ 132,
2869
+ 243,
2870
+ 117,
2871
+ 43,
2872
+ 131,
2873
+ 173,
2874
+ 18,
2875
+ 78,
2876
+ 255,
2877
+ 26,
2878
+ 50,
2879
+ 209,
2880
+ 135,
2881
+ 86,
2882
+ 219,
2883
+ 140,
2884
+ 126,
2885
+ 61,
2886
+ 255,
2887
+ 0,
2888
+ 218,
2889
+ 252,
2890
+ 224,
2891
+ 172,
2892
+ 8,
2893
+ 223,
2894
+ 207
2895
+ ]
2896
+ }
2897
+ }
2898
+ },
2899
+ {
2900
+ "name": "signer",
2901
+ "writable": true,
2902
+ "signer": true
2903
+ },
2904
+ {
2905
+ "name": "base_asset_ata"
2906
+ },
2907
+ {
2908
+ "name": "integration_authority",
2909
+ "pda": {
2910
+ "seeds": [
2911
+ {
2912
+ "kind": "const",
2913
+ "value": [
2914
+ 105,
2915
+ 110,
2916
+ 116,
2917
+ 101,
2918
+ 103,
2919
+ 114,
2920
+ 97,
2921
+ 116,
2922
+ 105,
2923
+ 111,
2924
+ 110,
2925
+ 45,
2926
+ 97,
2927
+ 117,
2928
+ 116,
2929
+ 104,
2930
+ 111,
2931
+ 114,
2932
+ 105,
2933
+ 116,
2934
+ 121
2935
+ ]
2936
+ }
2937
+ ]
2938
+ }
2939
+ },
2940
+ {
2941
+ "name": "glam_protocol",
2942
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
2943
+ },
2944
+ {
2945
+ "name": "event_authority",
2946
+ "optional": true,
2947
+ "pda": {
2948
+ "seeds": [
2949
+ {
2950
+ "kind": "const",
2951
+ "value": [
2952
+ 95,
2953
+ 95,
2954
+ 101,
2955
+ 118,
2956
+ 101,
2957
+ 110,
2958
+ 116,
2959
+ 95,
2960
+ 97,
2961
+ 117,
2962
+ 116,
2963
+ 104,
2964
+ 111,
2965
+ 114,
2966
+ 105,
2967
+ 116,
2968
+ 121
2969
+ ]
2970
+ }
2971
+ ]
2972
+ }
2973
+ },
2974
+ {
2975
+ "name": "event_program",
2976
+ "optional": true,
2977
+ "address": "GM1NtvvnSXUptTrMCqbogAdZJydZSNv98DoU5AZVLmGh"
2978
+ }
2979
+ ],
2980
+ "args": []
2981
+ },
2821
2982
  {
2822
2983
  "name": "price_stake_accounts",
2823
2984
  "discriminator": [
@@ -4630,6 +4791,9 @@
4630
4791
  },
4631
4792
  {
4632
4793
  "name": "Mint"
4794
+ },
4795
+ {
4796
+ "name": "SingleAssetVault"
4633
4797
  }
4634
4798
  ]
4635
4799
  }
@@ -4705,7 +4869,7 @@
4705
4869
  },
4706
4870
  {
4707
4871
  "name": "priority",
4708
- "type": "u8"
4872
+ "type": "i8"
4709
4873
  },
4710
4874
  {
4711
4875
  "name": "padding",
@@ -5200,18 +5364,30 @@
5200
5364
  },
5201
5365
  {
5202
5366
  "name": "referrer",
5367
+ "docs": [
5368
+ "Default GLAM referrer"
5369
+ ],
5203
5370
  "type": "pubkey"
5204
5371
  },
5205
5372
  {
5206
5373
  "name": "base_fee_bps",
5374
+ "docs": [
5375
+ "Default protocol base fee applied to all vaults"
5376
+ ],
5207
5377
  "type": "u16"
5208
5378
  },
5209
5379
  {
5210
5380
  "name": "flow_fee_bps",
5381
+ "docs": [
5382
+ "Default protocol flow fee applied to all vaults"
5383
+ ],
5211
5384
  "type": "u16"
5212
5385
  },
5213
5386
  {
5214
5387
  "name": "asset_metas",
5388
+ "docs": [
5389
+ "List of assets and their oracle configs supported by the protocol"
5390
+ ],
5215
5391
  "type": {
5216
5392
  "vec": {
5217
5393
  "defined": {
@@ -2,7 +2,7 @@
2
2
  "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz",
3
3
  "metadata": {
4
4
  "name": "glam_protocol",
5
- "version": "1.0.2",
5
+ "version": "1.0.3",
6
6
  "spec": "0.1.0",
7
7
  "description": "Glam Protocol"
8
8
  },
@@ -1848,6 +1848,9 @@
1848
1848
  },
1849
1849
  {
1850
1850
  "name": "Mint"
1851
+ },
1852
+ {
1853
+ "name": "SingleAssetVault"
1851
1854
  }
1852
1855
  ]
1853
1856
  }
@@ -2,7 +2,7 @@
2
2
  "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz",
3
3
  "metadata": {
4
4
  "name": "glam_protocol",
5
- "version": "1.0.2",
5
+ "version": "1.0.3",
6
6
  "spec": "0.1.0",
7
7
  "description": "Glam Protocol"
8
8
  },
@@ -1773,6 +1773,9 @@
1773
1773
  },
1774
1774
  {
1775
1775
  "name": "Mint"
1776
+ },
1777
+ {
1778
+ "name": "SingleAssetVault"
1776
1779
  }
1777
1780
  ]
1778
1781
  }
@@ -237,6 +237,9 @@ export type ExtCctp = {
237
237
  },
238
238
  {
239
239
  "name": "mint";
240
+ },
241
+ {
242
+ "name": "singleAssetVault";
240
243
  }
241
244
  ];
242
245
  };
@@ -237,6 +237,9 @@ export type ExtCctp = {
237
237
  },
238
238
  {
239
239
  "name": "mint"
240
+ },
241
+ {
242
+ "name": "singleAssetVault"
240
243
  }
241
244
  ]
242
245
  }
@@ -2591,6 +2591,9 @@ export type ExtDrift = {
2591
2591
  },
2592
2592
  {
2593
2593
  "name": "mint"
2594
+ },
2595
+ {
2596
+ "name": "singleAssetVault"
2594
2597
  }
2595
2598
  ]
2596
2599
  }
@@ -2591,6 +2591,9 @@ export type ExtDrift = {
2591
2591
  },
2592
2592
  {
2593
2593
  "name": "mint";
2594
+ },
2595
+ {
2596
+ "name": "singleAssetVault";
2594
2597
  }
2595
2598
  ];
2596
2599
  };
@@ -2591,6 +2591,9 @@ export type ExtDrift = {
2591
2591
  },
2592
2592
  {
2593
2593
  "name": "mint"
2594
+ },
2595
+ {
2596
+ "name": "singleAssetVault"
2594
2597
  }
2595
2598
  ]
2596
2599
  }
@@ -2050,6 +2050,9 @@ export type ExtKamino = {
2050
2050
  },
2051
2051
  {
2052
2052
  "name": "mint"
2053
+ },
2054
+ {
2055
+ "name": "singleAssetVault"
2053
2056
  }
2054
2057
  ]
2055
2058
  }
@@ -2050,6 +2050,9 @@ export type ExtKamino = {
2050
2050
  },
2051
2051
  {
2052
2052
  "name": "mint";
2053
+ },
2054
+ {
2055
+ "name": "singleAssetVault";
2053
2056
  }
2054
2057
  ];
2055
2058
  };
@@ -2050,6 +2050,9 @@ export type ExtKamino = {
2050
2050
  },
2051
2051
  {
2052
2052
  "name": "mint"
2053
+ },
2054
+ {
2055
+ "name": "singleAssetVault"
2053
2056
  }
2054
2057
  ]
2055
2058
  }
@@ -623,6 +623,9 @@ export type ExtMarinade = {
623
623
  },
624
624
  {
625
625
  "name": "mint";
626
+ },
627
+ {
628
+ "name": "singleAssetVault";
626
629
  }
627
630
  ];
628
631
  };
@@ -623,6 +623,9 @@ export type ExtMarinade = {
623
623
  },
624
624
  {
625
625
  "name": "mint"
626
+ },
627
+ {
628
+ "name": "singleAssetVault"
626
629
  }
627
630
  ]
628
631
  }
@@ -295,6 +295,9 @@ export type ExtSpl = {
295
295
  },
296
296
  {
297
297
  "name": "mint"
298
+ },
299
+ {
300
+ "name": "singleAssetVault"
298
301
  }
299
302
  ]
300
303
  }
@@ -295,6 +295,9 @@ export type ExtSpl = {
295
295
  },
296
296
  {
297
297
  "name": "mint";
298
+ },
299
+ {
300
+ "name": "singleAssetVault";
298
301
  }
299
302
  ];
300
303
  };
@@ -295,6 +295,9 @@ export type ExtSpl = {
295
295
  },
296
296
  {
297
297
  "name": "mint"
298
+ },
299
+ {
300
+ "name": "singleAssetVault"
298
301
  }
299
302
  ]
300
303
  }
@@ -622,6 +622,9 @@ export type ExtStakePool = {
622
622
  },
623
623
  {
624
624
  "name": "mint"
625
+ },
626
+ {
627
+ "name": "singleAssetVault"
625
628
  }
626
629
  ]
627
630
  }
@@ -622,6 +622,9 @@ export type ExtStakePool = {
622
622
  },
623
623
  {
624
624
  "name": "mint";
625
+ },
626
+ {
627
+ "name": "singleAssetVault";
625
628
  }
626
629
  ];
627
630
  };
@@ -622,6 +622,9 @@ export type ExtStakePool = {
622
622
  },
623
623
  {
624
624
  "name": "mint"
625
+ },
626
+ {
627
+ "name": "singleAssetVault"
625
628
  }
626
629
  ]
627
630
  }
@@ -233,6 +233,57 @@ export type GlamConfig = {
233
233
  }
234
234
  ];
235
235
  },
236
+ {
237
+ "name": "updateFeeAuthority";
238
+ "discriminator": [
239
+ 31,
240
+ 223,
241
+ 200,
242
+ 21,
243
+ 114,
244
+ 158,
245
+ 65,
246
+ 61
247
+ ];
248
+ "accounts": [
249
+ {
250
+ "name": "globalConfig";
251
+ "writable": true;
252
+ "pda": {
253
+ "seeds": [
254
+ {
255
+ "kind": "const";
256
+ "value": [
257
+ 103,
258
+ 108,
259
+ 111,
260
+ 98,
261
+ 97,
262
+ 108,
263
+ 45,
264
+ 99,
265
+ 111,
266
+ 110,
267
+ 102,
268
+ 105,
269
+ 103
270
+ ];
271
+ }
272
+ ];
273
+ };
274
+ },
275
+ {
276
+ "name": "feeAuthority";
277
+ "signer": true;
278
+ }
279
+ ];
280
+ "args": [
281
+ {
282
+ "name": "feeAuthority";
283
+ "type": "pubkey";
284
+ }
285
+ ];
286
+ },
236
287
  {
237
288
  "name": "updateProtocolFees";
238
289
  "discriminator": [
@@ -515,18 +566,30 @@ export type GlamConfig = {
515
566
  },
516
567
  {
517
568
  "name": "referrer";
569
+ "docs": [
570
+ "Default GLAM referrer"
571
+ ];
518
572
  "type": "pubkey";
519
573
  },
520
574
  {
521
575
  "name": "baseFeeBps";
576
+ "docs": [
577
+ "Default protocol base fee applied to all vaults"
578
+ ];
522
579
  "type": "u16";
523
580
  },
524
581
  {
525
582
  "name": "flowFeeBps";
583
+ "docs": [
584
+ "Default protocol flow fee applied to all vaults"
585
+ ];
526
586
  "type": "u16";
527
587
  },
528
588
  {
529
589
  "name": "assetMetas";
590
+ "docs": [
591
+ "List of assets and their oracle configs supported by the protocol"
592
+ ];
530
593
  "type": {
531
594
  "vec": {
532
595
  "defined": {
@@ -233,6 +233,57 @@ export type GlamConfig = {
233
233
  }
234
234
  ]
235
235
  },
236
+ {
237
+ "name": "updateFeeAuthority",
238
+ "discriminator": [
239
+ 31,
240
+ 223,
241
+ 200,
242
+ 21,
243
+ 114,
244
+ 158,
245
+ 65,
246
+ 61
247
+ ],
248
+ "accounts": [
249
+ {
250
+ "name": "globalConfig",
251
+ "writable": true,
252
+ "pda": {
253
+ "seeds": [
254
+ {
255
+ "kind": "const",
256
+ "value": [
257
+ 103,
258
+ 108,
259
+ 111,
260
+ 98,
261
+ 97,
262
+ 108,
263
+ 45,
264
+ 99,
265
+ 111,
266
+ 110,
267
+ 102,
268
+ 105,
269
+ 103
270
+ ]
271
+ }
272
+ ]
273
+ }
274
+ },
275
+ {
276
+ "name": "feeAuthority",
277
+ "signer": true
278
+ }
279
+ ],
280
+ "args": [
281
+ {
282
+ "name": "feeAuthority",
283
+ "type": "pubkey"
284
+ }
285
+ ]
286
+ },
236
287
  {
237
288
  "name": "updateProtocolFees",
238
289
  "discriminator": [
@@ -515,18 +566,30 @@ export type GlamConfig = {
515
566
  },
516
567
  {
517
568
  "name": "referrer",
569
+ "docs": [
570
+ "Default GLAM referrer"
571
+ ],
518
572
  "type": "pubkey"
519
573
  },
520
574
  {
521
575
  "name": "baseFeeBps",
576
+ "docs": [
577
+ "Default protocol base fee applied to all vaults"
578
+ ],
522
579
  "type": "u16"
523
580
  },
524
581
  {
525
582
  "name": "flowFeeBps",
583
+ "docs": [
584
+ "Default protocol flow fee applied to all vaults"
585
+ ],
526
586
  "type": "u16"
527
587
  },
528
588
  {
529
589
  "name": "assetMetas",
590
+ "docs": [
591
+ "List of assets and their oracle configs supported by the protocol"
592
+ ],
530
593
  "type": {
531
594
  "vec": {
532
595
  "defined": {