@glamsystems/glam-sdk 1.1.0-alpha.6 → 1.1.1-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glamsystems/glam-sdk",
3
- "version": "1.1.0-alpha.6",
3
+ "version": "1.1.1-alpha.0",
4
4
  "description": "TypeScript SDK for the GLAM Protocol",
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js",
@@ -20,8 +20,8 @@
20
20
  "dependencies": {
21
21
  "@coral-xyz/anchor": "^0.31.1",
22
22
  "@coral-xyz/borsh": "^0.31.1",
23
- "@glamsystems/ix-mapper": "0.2.3",
24
- "@glamsystems/sanctum-lst-list": "^0.2.54",
23
+ "@glamsystems/ix-mapper": "0.2.4",
24
+ "@glamsystems/sanctum-lst-list": "^0.2.55",
25
25
  "@marinade.finance/marinade-ts-sdk": "^5.0.15",
26
26
  "@solana/spl-stake-pool": "^1.1.5",
27
27
  "@solana/spl-token": "^0.4.9",
@@ -4614,6 +4614,471 @@
4614
4614
  }
4615
4615
  ]
4616
4616
  },
4617
+ {
4618
+ "name": "price_marginfi_accounts",
4619
+ "docs": [
4620
+ "Prices Marginfi accounts registered as vault external positions.",
4621
+ "",
4622
+ "Clients must refresh active banks and call Marginfi `lending_account_pulse_health`",
4623
+ "in the same transaction before this ix.",
4624
+ "",
4625
+ "Extra accounts for pricing N Marginfi accounts:",
4626
+ "- marginfi_account x N"
4627
+ ],
4628
+ "discriminator": [
4629
+ 146,
4630
+ 215,
4631
+ 180,
4632
+ 231,
4633
+ 191,
4634
+ 188,
4635
+ 42,
4636
+ 235
4637
+ ],
4638
+ "accounts": [
4639
+ {
4640
+ "name": "glam_state",
4641
+ "writable": true
4642
+ },
4643
+ {
4644
+ "name": "glam_vault",
4645
+ "pda": {
4646
+ "seeds": [
4647
+ {
4648
+ "kind": "const",
4649
+ "value": [
4650
+ 118,
4651
+ 97,
4652
+ 117,
4653
+ 108,
4654
+ 116
4655
+ ]
4656
+ },
4657
+ {
4658
+ "kind": "account",
4659
+ "path": "glam_state"
4660
+ }
4661
+ ],
4662
+ "program": {
4663
+ "kind": "const",
4664
+ "value": [
4665
+ 10,
4666
+ 55,
4667
+ 49,
4668
+ 193,
4669
+ 142,
4670
+ 247,
4671
+ 75,
4672
+ 193,
4673
+ 33,
4674
+ 61,
4675
+ 5,
4676
+ 218,
4677
+ 254,
4678
+ 219,
4679
+ 143,
4680
+ 206,
4681
+ 156,
4682
+ 138,
4683
+ 14,
4684
+ 32,
4685
+ 89,
4686
+ 232,
4687
+ 248,
4688
+ 173,
4689
+ 46,
4690
+ 77,
4691
+ 46,
4692
+ 206,
4693
+ 189,
4694
+ 171,
4695
+ 68,
4696
+ 237
4697
+ ]
4698
+ }
4699
+ }
4700
+ },
4701
+ {
4702
+ "name": "signer",
4703
+ "writable": true,
4704
+ "signer": true
4705
+ },
4706
+ {
4707
+ "name": "sol_usd_oracle"
4708
+ },
4709
+ {
4710
+ "name": "base_asset_oracle"
4711
+ },
4712
+ {
4713
+ "name": "integration_authority",
4714
+ "pda": {
4715
+ "seeds": [
4716
+ {
4717
+ "kind": "const",
4718
+ "value": [
4719
+ 105,
4720
+ 110,
4721
+ 116,
4722
+ 101,
4723
+ 103,
4724
+ 114,
4725
+ 97,
4726
+ 116,
4727
+ 105,
4728
+ 111,
4729
+ 110,
4730
+ 45,
4731
+ 97,
4732
+ 117,
4733
+ 116,
4734
+ 104,
4735
+ 111,
4736
+ 114,
4737
+ 105,
4738
+ 116,
4739
+ 121
4740
+ ]
4741
+ }
4742
+ ]
4743
+ }
4744
+ },
4745
+ {
4746
+ "name": "glam_config",
4747
+ "pda": {
4748
+ "seeds": [
4749
+ {
4750
+ "kind": "const",
4751
+ "value": [
4752
+ 103,
4753
+ 108,
4754
+ 111,
4755
+ 98,
4756
+ 97,
4757
+ 108,
4758
+ 45,
4759
+ 99,
4760
+ 111,
4761
+ 110,
4762
+ 102,
4763
+ 105,
4764
+ 103
4765
+ ]
4766
+ }
4767
+ ],
4768
+ "program": {
4769
+ "kind": "const",
4770
+ "value": [
4771
+ 10,
4772
+ 11,
4773
+ 0,
4774
+ 83,
4775
+ 72,
4776
+ 16,
4777
+ 46,
4778
+ 144,
4779
+ 46,
4780
+ 42,
4781
+ 79,
4782
+ 22,
4783
+ 157,
4784
+ 123,
4785
+ 21,
4786
+ 242,
4787
+ 192,
4788
+ 146,
4789
+ 1,
4790
+ 78,
4791
+ 88,
4792
+ 59,
4793
+ 102,
4794
+ 9,
4795
+ 190,
4796
+ 226,
4797
+ 92,
4798
+ 189,
4799
+ 187,
4800
+ 232,
4801
+ 83,
4802
+ 220
4803
+ ]
4804
+ }
4805
+ }
4806
+ },
4807
+ {
4808
+ "name": "glam_protocol",
4809
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
4810
+ },
4811
+ {
4812
+ "name": "event_authority",
4813
+ "optional": true,
4814
+ "pda": {
4815
+ "seeds": [
4816
+ {
4817
+ "kind": "const",
4818
+ "value": [
4819
+ 95,
4820
+ 95,
4821
+ 101,
4822
+ 118,
4823
+ 101,
4824
+ 110,
4825
+ 116,
4826
+ 95,
4827
+ 97,
4828
+ 117,
4829
+ 116,
4830
+ 104,
4831
+ 111,
4832
+ 114,
4833
+ 105,
4834
+ 116,
4835
+ 121
4836
+ ]
4837
+ }
4838
+ ]
4839
+ }
4840
+ },
4841
+ {
4842
+ "name": "event_program",
4843
+ "optional": true,
4844
+ "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
4845
+ }
4846
+ ],
4847
+ "args": []
4848
+ },
4849
+ {
4850
+ "name": "price_neutral_bundle_depositors",
4851
+ "docs": [
4852
+ "Price neutral bundle depositors",
4853
+ "",
4854
+ "Remaining accounts:",
4855
+ "- 4 * N neutral bundle depositor account tuples:",
4856
+ "1. User bundle account",
4857
+ "2. Bundle account",
4858
+ "3. Bundle oracle data account",
4859
+ "4. Bundle asset oracle account"
4860
+ ],
4861
+ "discriminator": [
4862
+ 202,
4863
+ 93,
4864
+ 205,
4865
+ 29,
4866
+ 37,
4867
+ 180,
4868
+ 127,
4869
+ 102
4870
+ ],
4871
+ "accounts": [
4872
+ {
4873
+ "name": "glam_state",
4874
+ "writable": true
4875
+ },
4876
+ {
4877
+ "name": "glam_vault",
4878
+ "pda": {
4879
+ "seeds": [
4880
+ {
4881
+ "kind": "const",
4882
+ "value": [
4883
+ 118,
4884
+ 97,
4885
+ 117,
4886
+ 108,
4887
+ 116
4888
+ ]
4889
+ },
4890
+ {
4891
+ "kind": "account",
4892
+ "path": "glam_state"
4893
+ }
4894
+ ],
4895
+ "program": {
4896
+ "kind": "const",
4897
+ "value": [
4898
+ 10,
4899
+ 55,
4900
+ 49,
4901
+ 193,
4902
+ 142,
4903
+ 247,
4904
+ 75,
4905
+ 193,
4906
+ 33,
4907
+ 61,
4908
+ 5,
4909
+ 218,
4910
+ 254,
4911
+ 219,
4912
+ 143,
4913
+ 206,
4914
+ 156,
4915
+ 138,
4916
+ 14,
4917
+ 32,
4918
+ 89,
4919
+ 232,
4920
+ 248,
4921
+ 173,
4922
+ 46,
4923
+ 77,
4924
+ 46,
4925
+ 206,
4926
+ 189,
4927
+ 171,
4928
+ 68,
4929
+ 237
4930
+ ]
4931
+ }
4932
+ }
4933
+ },
4934
+ {
4935
+ "name": "signer",
4936
+ "writable": true,
4937
+ "signer": true
4938
+ },
4939
+ {
4940
+ "name": "sol_usd_oracle"
4941
+ },
4942
+ {
4943
+ "name": "base_asset_oracle"
4944
+ },
4945
+ {
4946
+ "name": "integration_authority",
4947
+ "pda": {
4948
+ "seeds": [
4949
+ {
4950
+ "kind": "const",
4951
+ "value": [
4952
+ 105,
4953
+ 110,
4954
+ 116,
4955
+ 101,
4956
+ 103,
4957
+ 114,
4958
+ 97,
4959
+ 116,
4960
+ 105,
4961
+ 111,
4962
+ 110,
4963
+ 45,
4964
+ 97,
4965
+ 117,
4966
+ 116,
4967
+ 104,
4968
+ 111,
4969
+ 114,
4970
+ 105,
4971
+ 116,
4972
+ 121
4973
+ ]
4974
+ }
4975
+ ]
4976
+ }
4977
+ },
4978
+ {
4979
+ "name": "glam_config",
4980
+ "pda": {
4981
+ "seeds": [
4982
+ {
4983
+ "kind": "const",
4984
+ "value": [
4985
+ 103,
4986
+ 108,
4987
+ 111,
4988
+ 98,
4989
+ 97,
4990
+ 108,
4991
+ 45,
4992
+ 99,
4993
+ 111,
4994
+ 110,
4995
+ 102,
4996
+ 105,
4997
+ 103
4998
+ ]
4999
+ }
5000
+ ],
5001
+ "program": {
5002
+ "kind": "const",
5003
+ "value": [
5004
+ 10,
5005
+ 11,
5006
+ 0,
5007
+ 83,
5008
+ 72,
5009
+ 16,
5010
+ 46,
5011
+ 144,
5012
+ 46,
5013
+ 42,
5014
+ 79,
5015
+ 22,
5016
+ 157,
5017
+ 123,
5018
+ 21,
5019
+ 242,
5020
+ 192,
5021
+ 146,
5022
+ 1,
5023
+ 78,
5024
+ 88,
5025
+ 59,
5026
+ 102,
5027
+ 9,
5028
+ 190,
5029
+ 226,
5030
+ 92,
5031
+ 189,
5032
+ 187,
5033
+ 232,
5034
+ 83,
5035
+ 220
5036
+ ]
5037
+ }
5038
+ }
5039
+ },
5040
+ {
5041
+ "name": "glam_protocol",
5042
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
5043
+ },
5044
+ {
5045
+ "name": "event_authority",
5046
+ "optional": true,
5047
+ "pda": {
5048
+ "seeds": [
5049
+ {
5050
+ "kind": "const",
5051
+ "value": [
5052
+ 95,
5053
+ 95,
5054
+ 101,
5055
+ 118,
5056
+ 101,
5057
+ 110,
5058
+ 116,
5059
+ 95,
5060
+ 97,
5061
+ 117,
5062
+ 116,
5063
+ 104,
5064
+ 111,
5065
+ 114,
5066
+ 105,
5067
+ 116,
5068
+ 121
5069
+ ]
5070
+ }
5071
+ ]
5072
+ }
5073
+ },
5074
+ {
5075
+ "name": "event_program",
5076
+ "optional": true,
5077
+ "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
5078
+ }
5079
+ ],
5080
+ "args": []
5081
+ },
4617
5082
  {
4618
5083
  "name": "price_orca_whirlpool_positions",
4619
5084
  "docs": [
@@ -7288,6 +7753,11 @@
7288
7753
  "code": 6019,
7289
7754
  "name": "InvalidMintState",
7290
7755
  "msg": "Invalid mint state"
7756
+ },
7757
+ {
7758
+ "code": 6020,
7759
+ "name": "SubscriptionPausedOverdue",
7760
+ "msg": "Subscription paused due to overdue requests"
7291
7761
  }
7292
7762
  ],
7293
7763
  "types": [
@@ -8117,9 +8587,18 @@
8117
8587
  "name": "min_redemption",
8118
8588
  "type": "u64"
8119
8589
  },
8590
+ {
8591
+ "name": "pause_on_overdue",
8592
+ "type": "u8"
8593
+ },
8120
8594
  {
8121
8595
  "name": "reserved",
8122
- "type": "u64"
8596
+ "type": {
8597
+ "array": [
8598
+ "u8",
8599
+ 7
8600
+ ]
8601
+ }
8123
8602
  },
8124
8603
  {
8125
8604
  "name": "allowlist",