@glamsystems/glam-sdk 1.0.10 → 1.0.12-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/index.cjs.js +11052 -7904
- package/index.esm.js +11046 -7904
- package/package.json +1 -1
- package/src/client/base.d.ts +5 -1
- package/src/client/fees.d.ts +3 -0
- package/src/client/mint.d.ts +5 -1
- package/src/client/price.d.ts +3 -2
- package/src/clientConfig.d.ts +1 -0
- package/src/constants.d.ts +3 -3
- package/src/deser/integrationPolicies.d.ts +29 -1
- package/src/glamExports.d.ts +527 -47
- package/src/models/state.d.ts +3 -1
- package/src/react/glam.d.ts +1 -0
- package/src/react/index.d.ts +2 -0
- package/src/react/query-keys.d.ts +39 -0
- package/src/react/useVaultBalanceSubscription.d.ts +17 -0
- package/src/utils/bitmask.d.ts +4 -3
- package/src/utils/index.d.ts +0 -1
- package/src/utils/lookupTables.d.ts +45 -1
- package/src/utils/timelock.d.ts +11 -4
- package/src/utils/transaction.d.ts +1 -1
- package/target/idl/ext_drift-staging.json +4 -0
- package/target/idl/ext_drift.json +4 -0
- package/target/idl/glam_config.json +12 -2
- package/target/idl/glam_mint-staging.json +16 -186
- package/target/idl/glam_mint.json +16 -186
- package/target/idl/glam_policies.json +6 -1
- package/target/idl/glam_protocol-staging.json +536 -7
- package/target/idl/glam_protocol.json +536 -7
- package/target/types/ext_drift-staging.ts +4 -0
- package/target/types/ext_drift.d.ts +4 -0
- package/target/types/ext_drift.ts +4 -0
- package/target/types/ext_offchain.d.ts +1080 -0
- package/target/types/glam_config.d.ts +12 -2
- package/target/types/glam_config.ts +12 -2
- package/target/types/glam_mint-staging.ts +16 -186
- package/target/types/glam_mint.d.ts +16 -186
- package/target/types/glam_mint.ts +16 -186
- package/target/types/glam_policies.ts +6 -1
- package/target/types/glam_protocol-staging.ts +536 -7
- package/target/types/glam_protocol.d.ts +536 -7
- package/target/types/glam_protocol.ts +536 -7
- package/src/utils/glamApi.d.ts +0 -12
|
@@ -4637,19 +4637,6 @@
|
|
|
4637
4637
|
}
|
|
4638
4638
|
],
|
|
4639
4639
|
"accounts": [
|
|
4640
|
-
{
|
|
4641
|
-
"name": "GlobalConfig",
|
|
4642
|
-
"discriminator": [
|
|
4643
|
-
149,
|
|
4644
|
-
8,
|
|
4645
|
-
156,
|
|
4646
|
-
202,
|
|
4647
|
-
160,
|
|
4648
|
-
252,
|
|
4649
|
-
176,
|
|
4650
|
-
217
|
|
4651
|
-
]
|
|
4652
|
-
},
|
|
4653
4640
|
{
|
|
4654
4641
|
"name": "RequestQueue",
|
|
4655
4642
|
"discriminator": [
|
|
@@ -4724,7 +4711,7 @@
|
|
|
4724
4711
|
{
|
|
4725
4712
|
"code": 6003,
|
|
4726
4713
|
"name": "InvalidAsset",
|
|
4727
|
-
"msg": "
|
|
4714
|
+
"msg": "Invalid asset"
|
|
4728
4715
|
},
|
|
4729
4716
|
{
|
|
4730
4717
|
"code": 6004,
|
|
@@ -4775,6 +4762,21 @@
|
|
|
4775
4762
|
"code": 6013,
|
|
4776
4763
|
"name": "ProtocolFeesNotCrystallized",
|
|
4777
4764
|
"msg": "Protocol fees should be crystallized before updating"
|
|
4765
|
+
},
|
|
4766
|
+
{
|
|
4767
|
+
"code": 6014,
|
|
4768
|
+
"name": "ManagerFeesNotCrystallized",
|
|
4769
|
+
"msg": "Manager fees should be crystallized before updating"
|
|
4770
|
+
},
|
|
4771
|
+
{
|
|
4772
|
+
"code": 6015,
|
|
4773
|
+
"name": "InsufficientEscrowBalance",
|
|
4774
|
+
"msg": "Insufficient escrow balance for fee burn"
|
|
4775
|
+
},
|
|
4776
|
+
{
|
|
4777
|
+
"code": 6016,
|
|
4778
|
+
"name": "AmountBelowMinimum",
|
|
4779
|
+
"msg": "Amount below minimum threshold"
|
|
4778
4780
|
}
|
|
4779
4781
|
],
|
|
4780
4782
|
"types": [
|
|
@@ -4838,51 +4840,6 @@
|
|
|
4838
4840
|
]
|
|
4839
4841
|
}
|
|
4840
4842
|
},
|
|
4841
|
-
{
|
|
4842
|
-
"name": "AssetMeta",
|
|
4843
|
-
"type": {
|
|
4844
|
-
"kind": "struct",
|
|
4845
|
-
"fields": [
|
|
4846
|
-
{
|
|
4847
|
-
"name": "asset",
|
|
4848
|
-
"type": "pubkey"
|
|
4849
|
-
},
|
|
4850
|
-
{
|
|
4851
|
-
"name": "decimals",
|
|
4852
|
-
"type": "u8"
|
|
4853
|
-
},
|
|
4854
|
-
{
|
|
4855
|
-
"name": "oracle",
|
|
4856
|
-
"type": "pubkey"
|
|
4857
|
-
},
|
|
4858
|
-
{
|
|
4859
|
-
"name": "oracle_source",
|
|
4860
|
-
"type": {
|
|
4861
|
-
"defined": {
|
|
4862
|
-
"name": "OracleSource"
|
|
4863
|
-
}
|
|
4864
|
-
}
|
|
4865
|
-
},
|
|
4866
|
-
{
|
|
4867
|
-
"name": "max_age_seconds",
|
|
4868
|
-
"type": "u16"
|
|
4869
|
-
},
|
|
4870
|
-
{
|
|
4871
|
-
"name": "priority",
|
|
4872
|
-
"type": "i8"
|
|
4873
|
-
},
|
|
4874
|
-
{
|
|
4875
|
-
"name": "padding",
|
|
4876
|
-
"type": {
|
|
4877
|
-
"array": [
|
|
4878
|
-
"u8",
|
|
4879
|
-
3
|
|
4880
|
-
]
|
|
4881
|
-
}
|
|
4882
|
-
}
|
|
4883
|
-
]
|
|
4884
|
-
}
|
|
4885
|
-
},
|
|
4886
4843
|
{
|
|
4887
4844
|
"name": "AumRecord",
|
|
4888
4845
|
"type": {
|
|
@@ -5343,62 +5300,6 @@
|
|
|
5343
5300
|
]
|
|
5344
5301
|
}
|
|
5345
5302
|
},
|
|
5346
|
-
{
|
|
5347
|
-
"name": "GlobalConfig",
|
|
5348
|
-
"type": {
|
|
5349
|
-
"kind": "struct",
|
|
5350
|
-
"fields": [
|
|
5351
|
-
{
|
|
5352
|
-
"name": "admin",
|
|
5353
|
-
"docs": [
|
|
5354
|
-
"The authority that can modify the config"
|
|
5355
|
-
],
|
|
5356
|
-
"type": "pubkey"
|
|
5357
|
-
},
|
|
5358
|
-
{
|
|
5359
|
-
"name": "fee_authority",
|
|
5360
|
-
"docs": [
|
|
5361
|
-
"The authority that can modify fee structure of individual glam state and claim protocol fees"
|
|
5362
|
-
],
|
|
5363
|
-
"type": "pubkey"
|
|
5364
|
-
},
|
|
5365
|
-
{
|
|
5366
|
-
"name": "referrer",
|
|
5367
|
-
"docs": [
|
|
5368
|
-
"Default GLAM referrer"
|
|
5369
|
-
],
|
|
5370
|
-
"type": "pubkey"
|
|
5371
|
-
},
|
|
5372
|
-
{
|
|
5373
|
-
"name": "base_fee_bps",
|
|
5374
|
-
"docs": [
|
|
5375
|
-
"Default protocol base fee applied to all vaults"
|
|
5376
|
-
],
|
|
5377
|
-
"type": "u16"
|
|
5378
|
-
},
|
|
5379
|
-
{
|
|
5380
|
-
"name": "flow_fee_bps",
|
|
5381
|
-
"docs": [
|
|
5382
|
-
"Default protocol flow fee applied to all vaults"
|
|
5383
|
-
],
|
|
5384
|
-
"type": "u16"
|
|
5385
|
-
},
|
|
5386
|
-
{
|
|
5387
|
-
"name": "asset_metas",
|
|
5388
|
-
"docs": [
|
|
5389
|
-
"List of assets and their oracle configs supported by the protocol"
|
|
5390
|
-
],
|
|
5391
|
-
"type": {
|
|
5392
|
-
"vec": {
|
|
5393
|
-
"defined": {
|
|
5394
|
-
"name": "AssetMeta"
|
|
5395
|
-
}
|
|
5396
|
-
}
|
|
5397
|
-
}
|
|
5398
|
-
}
|
|
5399
|
-
]
|
|
5400
|
-
}
|
|
5401
|
-
},
|
|
5402
5303
|
{
|
|
5403
5304
|
"name": "HurdleType",
|
|
5404
5305
|
"type": {
|
|
@@ -5755,77 +5656,6 @@
|
|
|
5755
5656
|
]
|
|
5756
5657
|
}
|
|
5757
5658
|
},
|
|
5758
|
-
{
|
|
5759
|
-
"name": "OracleSource",
|
|
5760
|
-
"type": {
|
|
5761
|
-
"kind": "enum",
|
|
5762
|
-
"variants": [
|
|
5763
|
-
{
|
|
5764
|
-
"name": "Pyth"
|
|
5765
|
-
},
|
|
5766
|
-
{
|
|
5767
|
-
"name": "Switchboard"
|
|
5768
|
-
},
|
|
5769
|
-
{
|
|
5770
|
-
"name": "QuoteAsset"
|
|
5771
|
-
},
|
|
5772
|
-
{
|
|
5773
|
-
"name": "Pyth1K"
|
|
5774
|
-
},
|
|
5775
|
-
{
|
|
5776
|
-
"name": "Pyth1M"
|
|
5777
|
-
},
|
|
5778
|
-
{
|
|
5779
|
-
"name": "PythStableCoin"
|
|
5780
|
-
},
|
|
5781
|
-
{
|
|
5782
|
-
"name": "Prelaunch"
|
|
5783
|
-
},
|
|
5784
|
-
{
|
|
5785
|
-
"name": "PythPull"
|
|
5786
|
-
},
|
|
5787
|
-
{
|
|
5788
|
-
"name": "Pyth1KPull"
|
|
5789
|
-
},
|
|
5790
|
-
{
|
|
5791
|
-
"name": "Pyth1MPull"
|
|
5792
|
-
},
|
|
5793
|
-
{
|
|
5794
|
-
"name": "PythStableCoinPull"
|
|
5795
|
-
},
|
|
5796
|
-
{
|
|
5797
|
-
"name": "SwitchboardOnDemand"
|
|
5798
|
-
},
|
|
5799
|
-
{
|
|
5800
|
-
"name": "PythLazer"
|
|
5801
|
-
},
|
|
5802
|
-
{
|
|
5803
|
-
"name": "PythLazer1K"
|
|
5804
|
-
},
|
|
5805
|
-
{
|
|
5806
|
-
"name": "PythLazer1M"
|
|
5807
|
-
},
|
|
5808
|
-
{
|
|
5809
|
-
"name": "PythLazerStableCoin"
|
|
5810
|
-
},
|
|
5811
|
-
{
|
|
5812
|
-
"name": "NotSet"
|
|
5813
|
-
},
|
|
5814
|
-
{
|
|
5815
|
-
"name": "LstPoolState"
|
|
5816
|
-
},
|
|
5817
|
-
{
|
|
5818
|
-
"name": "MarinadeState"
|
|
5819
|
-
},
|
|
5820
|
-
{
|
|
5821
|
-
"name": "BaseAsset"
|
|
5822
|
-
},
|
|
5823
|
-
{
|
|
5824
|
-
"name": "ChainlinkRWA"
|
|
5825
|
-
}
|
|
5826
|
-
]
|
|
5827
|
-
}
|
|
5828
|
-
},
|
|
5829
5659
|
{
|
|
5830
5660
|
"name": "PendingRequest",
|
|
5831
5661
|
"type": {
|
|
@@ -384,7 +384,12 @@
|
|
|
384
384
|
{
|
|
385
385
|
"code": 6002,
|
|
386
386
|
"name": "NotAuthorized",
|
|
387
|
-
"msg": "
|
|
387
|
+
"msg": "Signer is not mint authority or permanent delegate"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"code": 6003,
|
|
391
|
+
"name": "MissingPermanentDelegate",
|
|
392
|
+
"msg": "Mint has no permanent delegate extension"
|
|
388
393
|
}
|
|
389
394
|
],
|
|
390
395
|
"types": [
|