@glamsystems/glam-sdk 1.0.12-alpha.3 → 1.0.13-test
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/LICENSE +201 -0
- package/README.md +1 -1
- package/index.cjs.js +1 -57320
- package/index.esm.js +1 -57081
- package/package.json +26 -15
- package/src/assets.d.ts +10 -17
- package/src/client/access.d.ts +13 -0
- package/src/client/base.d.ts +30 -7
- package/src/client/bridge.d.ts +183 -0
- package/src/client/bridgeRegistry.d.ts +32 -0
- package/src/client/epi.d.ts +78 -0
- package/src/client/fees.d.ts +4 -0
- package/src/client/invest.d.ts +1 -1
- package/src/client/jupiter.d.ts +27 -20
- package/src/client/loopscale.d.ts +84 -0
- package/src/client/mint.d.ts +54 -1
- package/src/client/price.d.ts +26 -39
- package/src/client.d.ts +9 -5
- package/src/constants.d.ts +11 -7
- package/src/deser/index.d.ts +1 -1
- package/src/deser/integrationPolicies.d.ts +30 -20
- package/src/deser/tokenAclLayouts.d.ts +67 -0
- package/src/error.d.ts +2 -1
- package/src/glamExports.d.ts +1351 -1546
- package/src/globalConfig.d.ts +27 -0
- package/src/index.d.ts +5 -1
- package/src/models/state.d.ts +2 -0
- package/src/utils/accounts.d.ts +9 -1
- package/src/utils/bitmask.d.ts +3 -0
- package/src/utils/common.d.ts +2 -0
- package/src/utils/glamPDAs.d.ts +6 -0
- package/src/utils/index.d.ts +0 -1
- package/src/utils/pkmap.d.ts +23 -18
- package/src/utils/positionCategorizer.d.ts +3 -21
- package/target/idl/ext_bridge-staging.json +2379 -0
- package/target/idl/ext_bridge.json +2379 -0
- package/target/idl/ext_cctp.json +1 -1
- package/target/idl/ext_drift.json +1613 -142
- package/target/idl/ext_epi-staging.json +2169 -0
- package/target/idl/ext_epi.json +2169 -0
- package/target/idl/ext_kamino-staging.json +1 -1
- package/target/idl/ext_kamino.json +109 -1
- package/target/idl/{ext_drift-staging.json → ext_loopscale-staging.json} +986 -1438
- package/target/idl/ext_loopscale.json +3541 -0
- package/target/idl/ext_marinade-staging.json +1587 -0
- package/target/idl/ext_spl-staging.json +1 -1
- package/target/idl/ext_spl.json +1 -1
- package/target/idl/glam_config.json +78 -9
- package/target/idl/glam_mint-staging.json +3002 -1244
- package/target/idl/glam_mint.json +239 -8
- package/target/idl/glam_policies.json +2 -7
- package/target/idl/glam_protocol-staging.json +187 -266
- package/target/idl/glam_protocol.json +217 -114
- package/target/idl/mock_layerzero_endpoint.json +144 -0
- package/target/idl/mock_layerzero_oft.json +155 -0
- package/target/types/ext_bridge-staging.d.ts +2385 -0
- package/target/types/ext_bridge-staging.ts +2385 -0
- package/target/types/ext_bridge.d.ts +2385 -0
- package/target/types/ext_bridge.ts +2385 -0
- package/target/types/ext_cctp.d.ts +1 -1
- package/target/types/ext_cctp.ts +1 -1
- package/target/types/ext_drift.d.ts +1609 -138
- package/target/types/ext_drift.ts +1613 -142
- package/target/types/ext_epi-staging.d.ts +2175 -0
- package/target/types/ext_epi-staging.ts +2175 -0
- package/target/types/ext_epi.d.ts +2175 -0
- package/target/types/ext_epi.ts +2175 -0
- package/target/types/ext_kamino-staging.d.ts +3433 -0
- package/target/types/ext_kamino-staging.ts +1 -1
- package/target/types/ext_kamino.d.ts +109 -1
- package/target/types/ext_kamino.ts +109 -1
- package/target/types/ext_loopscale-staging.d.ts +3547 -0
- package/target/types/{ext_drift-staging.ts → ext_loopscale-staging.ts} +988 -1440
- package/target/types/ext_loopscale.d.ts +3547 -0
- package/target/types/ext_loopscale.ts +3547 -0
- package/target/types/ext_marinade-staging.d.ts +1593 -0
- package/target/types/ext_marinade-staging.ts +1593 -0
- package/target/types/{ext_offchain.d.ts → ext_spl-staging.d.ts} +219 -19
- package/target/types/ext_spl-staging.ts +1 -1
- package/target/types/ext_spl.d.ts +1 -1
- package/target/types/ext_spl.ts +1 -1
- package/target/types/ext_stake_pool-staging.d.ts +1622 -0
- package/target/types/glam_config.d.ts +78 -9
- package/target/types/glam_config.ts +78 -9
- package/target/types/glam_mint-staging.d.ts +7856 -0
- package/target/types/glam_mint-staging.ts +3002 -1244
- package/target/types/glam_mint.d.ts +239 -8
- package/target/types/glam_mint.ts +239 -8
- package/target/types/glam_policies.d.ts +477 -0
- package/target/types/glam_policies.ts +2 -7
- package/target/types/glam_protocol-staging.d.ts +3292 -0
- package/target/types/glam_protocol-staging.ts +187 -266
- package/target/types/glam_protocol.d.ts +217 -114
- package/target/types/glam_protocol.ts +217 -114
- package/target/types/mock_layerzero_endpoint.d.ts +150 -0
- package/target/types/mock_layerzero_endpoint.ts +150 -0
- package/target/types/mock_layerzero_oft.d.ts +161 -0
- package/target/types/mock_layerzero_oft.ts +161 -0
- package/src/client/drift/index.d.ts +0 -2
- package/src/client/drift/protocol-v2.d.ts +0 -93
- package/src/client/drift/vaults.d.ts +0 -60
- package/src/deser/driftLayouts.d.ts +0 -217
- package/src/react/cluster-provider.d.ts +0 -22
- package/src/react/glam.d.ts +0 -51
- package/src/react/index.d.ts +0 -5
- package/src/react/query-keys.d.ts +0 -40
- package/src/react/useVaultBalanceSubscription.d.ts +0 -17
- package/src/utils/drift/index.d.ts +0 -2
- package/src/utils/drift/orderParams.d.ts +0 -28
- package/src/utils/drift/types.d.ts +0 -522
|
@@ -8,7 +8,7 @@ export type GlamMint = {
|
|
|
8
8
|
"address": "GM1NtvvnSXUptTrMCqbogAdZJydZSNv98DoU5AZVLmGh";
|
|
9
9
|
"metadata": {
|
|
10
10
|
"name": "glamMint";
|
|
11
|
-
"version": "1.0.
|
|
11
|
+
"version": "1.0.3";
|
|
12
12
|
"spec": "0.1.0";
|
|
13
13
|
"description": "GLAM mint program";
|
|
14
14
|
};
|
|
@@ -1886,7 +1886,12 @@ export type GlamMint = {
|
|
|
1886
1886
|
"Extra accounts for pricing N drift users under the same user stats:",
|
|
1887
1887
|
"- user_stats x 1",
|
|
1888
1888
|
"- drift_user x N",
|
|
1889
|
-
"- markets and oracles used by all drift users (no specific order)"
|
|
1889
|
+
"- markets and oracles used by all drift users (no specific order)",
|
|
1890
|
+
"",
|
|
1891
|
+
"Clients must pre-refresh any stale Drift spot market cumulative interest by",
|
|
1892
|
+
"prepending Drift `update_spot_market_cumulative_interest` instructions for the",
|
|
1893
|
+
"referenced spot markets. Calls will fail with `StaleDriftInterest` if a required",
|
|
1894
|
+
"spot market's cumulative interest is too old."
|
|
1890
1895
|
];
|
|
1891
1896
|
"discriminator": [
|
|
1892
1897
|
12,
|
|
@@ -2121,7 +2126,12 @@ export type GlamMint = {
|
|
|
2121
2126
|
"- (vault_depositor, drift_vault, drift_user) x N",
|
|
2122
2127
|
"- spot_market used by drift users of vaults (no specific order)",
|
|
2123
2128
|
"- perp markets used by drift users of vaults (no specific order)",
|
|
2124
|
-
"- oracles of spot markets and perp markets (no specific order)"
|
|
2129
|
+
"- oracles of spot markets and perp markets (no specific order)",
|
|
2130
|
+
"",
|
|
2131
|
+
"Clients must pre-refresh any stale Drift spot market cumulative interest by",
|
|
2132
|
+
"prepending Drift `update_spot_market_cumulative_interest` instructions for the",
|
|
2133
|
+
"referenced spot markets. Calls will fail with `StaleDriftInterest` if a required",
|
|
2134
|
+
"spot market's cumulative interest is too old."
|
|
2125
2135
|
];
|
|
2126
2136
|
"discriminator": [
|
|
2127
2137
|
234,
|
|
@@ -4420,6 +4430,19 @@ export type GlamMint = {
|
|
|
4420
4430
|
}
|
|
4421
4431
|
];
|
|
4422
4432
|
"accounts": [
|
|
4433
|
+
{
|
|
4434
|
+
"name": "globalConfig";
|
|
4435
|
+
"discriminator": [
|
|
4436
|
+
149,
|
|
4437
|
+
8,
|
|
4438
|
+
156,
|
|
4439
|
+
202,
|
|
4440
|
+
160,
|
|
4441
|
+
252,
|
|
4442
|
+
176,
|
|
4443
|
+
217
|
|
4444
|
+
];
|
|
4445
|
+
},
|
|
4423
4446
|
{
|
|
4424
4447
|
"name": "requestQueue";
|
|
4425
4448
|
"discriminator": [
|
|
@@ -4494,7 +4517,7 @@ export type GlamMint = {
|
|
|
4494
4517
|
{
|
|
4495
4518
|
"code": 6003;
|
|
4496
4519
|
"name": "invalidAsset";
|
|
4497
|
-
"msg": "
|
|
4520
|
+
"msg": "Asset not allowed to subscribe";
|
|
4498
4521
|
},
|
|
4499
4522
|
{
|
|
4500
4523
|
"code": 6004;
|
|
@@ -4548,18 +4571,33 @@ export type GlamMint = {
|
|
|
4548
4571
|
},
|
|
4549
4572
|
{
|
|
4550
4573
|
"code": 6014;
|
|
4574
|
+
"name": "amountBelowMinimum";
|
|
4575
|
+
"msg": "Amount is below the minimum required";
|
|
4576
|
+
},
|
|
4577
|
+
{
|
|
4578
|
+
"code": 6015;
|
|
4551
4579
|
"name": "managerFeesNotCrystallized";
|
|
4552
4580
|
"msg": "Manager fees should be crystallized before updating";
|
|
4553
4581
|
},
|
|
4554
4582
|
{
|
|
4555
|
-
"code":
|
|
4583
|
+
"code": 6016;
|
|
4584
|
+
"name": "amountAboveMaximum";
|
|
4585
|
+
"msg": "Amount exceeds maximum threshold";
|
|
4586
|
+
},
|
|
4587
|
+
{
|
|
4588
|
+
"code": 6017;
|
|
4556
4589
|
"name": "insufficientEscrowBalance";
|
|
4557
4590
|
"msg": "Insufficient escrow balance for fee burn";
|
|
4558
4591
|
},
|
|
4559
4592
|
{
|
|
4560
|
-
"code":
|
|
4561
|
-
"name": "
|
|
4562
|
-
"msg": "
|
|
4593
|
+
"code": 6018;
|
|
4594
|
+
"name": "tokenAclManagesFreezeThaw";
|
|
4595
|
+
"msg": "Token ACL is enabled; freeze/thaw is managed by the Token ACL program";
|
|
4596
|
+
},
|
|
4597
|
+
{
|
|
4598
|
+
"code": 6019;
|
|
4599
|
+
"name": "invalidMintState";
|
|
4600
|
+
"msg": "Invalid mint state";
|
|
4563
4601
|
}
|
|
4564
4602
|
];
|
|
4565
4603
|
"types": [
|
|
@@ -4623,6 +4661,51 @@ export type GlamMint = {
|
|
|
4623
4661
|
];
|
|
4624
4662
|
};
|
|
4625
4663
|
},
|
|
4664
|
+
{
|
|
4665
|
+
"name": "assetMeta";
|
|
4666
|
+
"type": {
|
|
4667
|
+
"kind": "struct";
|
|
4668
|
+
"fields": [
|
|
4669
|
+
{
|
|
4670
|
+
"name": "asset";
|
|
4671
|
+
"type": "pubkey";
|
|
4672
|
+
},
|
|
4673
|
+
{
|
|
4674
|
+
"name": "decimals";
|
|
4675
|
+
"type": "u8";
|
|
4676
|
+
},
|
|
4677
|
+
{
|
|
4678
|
+
"name": "oracle";
|
|
4679
|
+
"type": "pubkey";
|
|
4680
|
+
},
|
|
4681
|
+
{
|
|
4682
|
+
"name": "oracleSource";
|
|
4683
|
+
"type": {
|
|
4684
|
+
"defined": {
|
|
4685
|
+
"name": "oracleSource";
|
|
4686
|
+
};
|
|
4687
|
+
};
|
|
4688
|
+
},
|
|
4689
|
+
{
|
|
4690
|
+
"name": "maxAgeSeconds";
|
|
4691
|
+
"type": "u16";
|
|
4692
|
+
},
|
|
4693
|
+
{
|
|
4694
|
+
"name": "priority";
|
|
4695
|
+
"type": "i8";
|
|
4696
|
+
},
|
|
4697
|
+
{
|
|
4698
|
+
"name": "padding";
|
|
4699
|
+
"type": {
|
|
4700
|
+
"array": [
|
|
4701
|
+
"u8",
|
|
4702
|
+
3
|
|
4703
|
+
];
|
|
4704
|
+
};
|
|
4705
|
+
}
|
|
4706
|
+
];
|
|
4707
|
+
};
|
|
4708
|
+
},
|
|
4626
4709
|
{
|
|
4627
4710
|
"name": "aumRecord";
|
|
4628
4711
|
"type": {
|
|
@@ -5077,6 +5160,62 @@ export type GlamMint = {
|
|
|
5077
5160
|
];
|
|
5078
5161
|
};
|
|
5079
5162
|
},
|
|
5163
|
+
{
|
|
5164
|
+
"name": "globalConfig";
|
|
5165
|
+
"type": {
|
|
5166
|
+
"kind": "struct";
|
|
5167
|
+
"fields": [
|
|
5168
|
+
{
|
|
5169
|
+
"name": "admin";
|
|
5170
|
+
"docs": [
|
|
5171
|
+
"The authority that can modify the config"
|
|
5172
|
+
];
|
|
5173
|
+
"type": "pubkey";
|
|
5174
|
+
},
|
|
5175
|
+
{
|
|
5176
|
+
"name": "feeAuthority";
|
|
5177
|
+
"docs": [
|
|
5178
|
+
"The authority that can modify fee structure of individual glam state and claim protocol fees"
|
|
5179
|
+
];
|
|
5180
|
+
"type": "pubkey";
|
|
5181
|
+
},
|
|
5182
|
+
{
|
|
5183
|
+
"name": "referrer";
|
|
5184
|
+
"docs": [
|
|
5185
|
+
"Default GLAM referrer"
|
|
5186
|
+
];
|
|
5187
|
+
"type": "pubkey";
|
|
5188
|
+
},
|
|
5189
|
+
{
|
|
5190
|
+
"name": "baseFeeBps";
|
|
5191
|
+
"docs": [
|
|
5192
|
+
"Default protocol base fee applied to all vaults"
|
|
5193
|
+
];
|
|
5194
|
+
"type": "u16";
|
|
5195
|
+
},
|
|
5196
|
+
{
|
|
5197
|
+
"name": "flowFeeBps";
|
|
5198
|
+
"docs": [
|
|
5199
|
+
"Default protocol flow fee applied to all vaults"
|
|
5200
|
+
];
|
|
5201
|
+
"type": "u16";
|
|
5202
|
+
},
|
|
5203
|
+
{
|
|
5204
|
+
"name": "assetMetas";
|
|
5205
|
+
"docs": [
|
|
5206
|
+
"List of assets and their oracle configs supported by the protocol"
|
|
5207
|
+
];
|
|
5208
|
+
"type": {
|
|
5209
|
+
"vec": {
|
|
5210
|
+
"defined": {
|
|
5211
|
+
"name": "assetMeta";
|
|
5212
|
+
};
|
|
5213
|
+
};
|
|
5214
|
+
};
|
|
5215
|
+
}
|
|
5216
|
+
];
|
|
5217
|
+
};
|
|
5218
|
+
},
|
|
5080
5219
|
{
|
|
5081
5220
|
"name": "hurdleType";
|
|
5082
5221
|
"type": {
|
|
@@ -5433,6 +5572,83 @@ export type GlamMint = {
|
|
|
5433
5572
|
];
|
|
5434
5573
|
};
|
|
5435
5574
|
},
|
|
5575
|
+
{
|
|
5576
|
+
"name": "oracleSource";
|
|
5577
|
+
"type": {
|
|
5578
|
+
"kind": "enum";
|
|
5579
|
+
"variants": [
|
|
5580
|
+
{
|
|
5581
|
+
"name": "pyth";
|
|
5582
|
+
},
|
|
5583
|
+
{
|
|
5584
|
+
"name": "switchboard";
|
|
5585
|
+
},
|
|
5586
|
+
{
|
|
5587
|
+
"name": "quoteAsset";
|
|
5588
|
+
},
|
|
5589
|
+
{
|
|
5590
|
+
"name": "pyth1K";
|
|
5591
|
+
},
|
|
5592
|
+
{
|
|
5593
|
+
"name": "pyth1M";
|
|
5594
|
+
},
|
|
5595
|
+
{
|
|
5596
|
+
"name": "pythStableCoin";
|
|
5597
|
+
},
|
|
5598
|
+
{
|
|
5599
|
+
"name": "prelaunch";
|
|
5600
|
+
},
|
|
5601
|
+
{
|
|
5602
|
+
"name": "pythPull";
|
|
5603
|
+
},
|
|
5604
|
+
{
|
|
5605
|
+
"name": "pyth1KPull";
|
|
5606
|
+
},
|
|
5607
|
+
{
|
|
5608
|
+
"name": "pyth1MPull";
|
|
5609
|
+
},
|
|
5610
|
+
{
|
|
5611
|
+
"name": "pythStableCoinPull";
|
|
5612
|
+
},
|
|
5613
|
+
{
|
|
5614
|
+
"name": "switchboardOnDemand";
|
|
5615
|
+
},
|
|
5616
|
+
{
|
|
5617
|
+
"name": "pythLazer";
|
|
5618
|
+
},
|
|
5619
|
+
{
|
|
5620
|
+
"name": "pythLazer1K";
|
|
5621
|
+
},
|
|
5622
|
+
{
|
|
5623
|
+
"name": "pythLazer1M";
|
|
5624
|
+
},
|
|
5625
|
+
{
|
|
5626
|
+
"name": "pythLazerStableCoin";
|
|
5627
|
+
},
|
|
5628
|
+
{
|
|
5629
|
+
"name": "notSet";
|
|
5630
|
+
},
|
|
5631
|
+
{
|
|
5632
|
+
"name": "lstPoolState";
|
|
5633
|
+
},
|
|
5634
|
+
{
|
|
5635
|
+
"name": "marinadeState";
|
|
5636
|
+
},
|
|
5637
|
+
{
|
|
5638
|
+
"name": "baseAsset";
|
|
5639
|
+
},
|
|
5640
|
+
{
|
|
5641
|
+
"name": "chainlinkRwa";
|
|
5642
|
+
},
|
|
5643
|
+
{
|
|
5644
|
+
"name": "chainlinkX";
|
|
5645
|
+
},
|
|
5646
|
+
{
|
|
5647
|
+
"name": "kaminoReserve";
|
|
5648
|
+
}
|
|
5649
|
+
];
|
|
5650
|
+
};
|
|
5651
|
+
},
|
|
5436
5652
|
{
|
|
5437
5653
|
"name": "pendingRequest";
|
|
5438
5654
|
"type": {
|
|
@@ -5870,6 +6086,21 @@ export type GlamMint = {
|
|
|
5870
6086
|
"name": "protoMintPermSetTokenAccountState";
|
|
5871
6087
|
"type": "u64";
|
|
5872
6088
|
"value": "8";
|
|
6089
|
+
},
|
|
6090
|
+
{
|
|
6091
|
+
"name": "protoMintPermTokenAclApplyList";
|
|
6092
|
+
"type": "u64";
|
|
6093
|
+
"value": "2048";
|
|
6094
|
+
},
|
|
6095
|
+
{
|
|
6096
|
+
"name": "protoMintPermTokenAclFreezeThaw";
|
|
6097
|
+
"type": "u64";
|
|
6098
|
+
"value": "512";
|
|
6099
|
+
},
|
|
6100
|
+
{
|
|
6101
|
+
"name": "protoMintPermTokenAclManageList";
|
|
6102
|
+
"type": "u64";
|
|
6103
|
+
"value": "1024";
|
|
5873
6104
|
}
|
|
5874
6105
|
];
|
|
5875
6106
|
};
|
|
@@ -8,7 +8,7 @@ export type GlamMint = {
|
|
|
8
8
|
"address": "GM1NtvvnSXUptTrMCqbogAdZJydZSNv98DoU5AZVLmGh",
|
|
9
9
|
"metadata": {
|
|
10
10
|
"name": "glamMint",
|
|
11
|
-
"version": "1.0.
|
|
11
|
+
"version": "1.0.3",
|
|
12
12
|
"spec": "0.1.0",
|
|
13
13
|
"description": "GLAM mint program"
|
|
14
14
|
},
|
|
@@ -1886,7 +1886,12 @@ export type GlamMint = {
|
|
|
1886
1886
|
"Extra accounts for pricing N drift users under the same user stats:",
|
|
1887
1887
|
"- user_stats x 1",
|
|
1888
1888
|
"- drift_user x N",
|
|
1889
|
-
"- markets and oracles used by all drift users (no specific order)"
|
|
1889
|
+
"- markets and oracles used by all drift users (no specific order)",
|
|
1890
|
+
"",
|
|
1891
|
+
"Clients must pre-refresh any stale Drift spot market cumulative interest by",
|
|
1892
|
+
"prepending Drift `update_spot_market_cumulative_interest` instructions for the",
|
|
1893
|
+
"referenced spot markets. Calls will fail with `StaleDriftInterest` if a required",
|
|
1894
|
+
"spot market's cumulative interest is too old."
|
|
1890
1895
|
],
|
|
1891
1896
|
"discriminator": [
|
|
1892
1897
|
12,
|
|
@@ -2121,7 +2126,12 @@ export type GlamMint = {
|
|
|
2121
2126
|
"- (vault_depositor, drift_vault, drift_user) x N",
|
|
2122
2127
|
"- spot_market used by drift users of vaults (no specific order)",
|
|
2123
2128
|
"- perp markets used by drift users of vaults (no specific order)",
|
|
2124
|
-
"- oracles of spot markets and perp markets (no specific order)"
|
|
2129
|
+
"- oracles of spot markets and perp markets (no specific order)",
|
|
2130
|
+
"",
|
|
2131
|
+
"Clients must pre-refresh any stale Drift spot market cumulative interest by",
|
|
2132
|
+
"prepending Drift `update_spot_market_cumulative_interest` instructions for the",
|
|
2133
|
+
"referenced spot markets. Calls will fail with `StaleDriftInterest` if a required",
|
|
2134
|
+
"spot market's cumulative interest is too old."
|
|
2125
2135
|
],
|
|
2126
2136
|
"discriminator": [
|
|
2127
2137
|
234,
|
|
@@ -4420,6 +4430,19 @@ export type GlamMint = {
|
|
|
4420
4430
|
}
|
|
4421
4431
|
],
|
|
4422
4432
|
"accounts": [
|
|
4433
|
+
{
|
|
4434
|
+
"name": "globalConfig",
|
|
4435
|
+
"discriminator": [
|
|
4436
|
+
149,
|
|
4437
|
+
8,
|
|
4438
|
+
156,
|
|
4439
|
+
202,
|
|
4440
|
+
160,
|
|
4441
|
+
252,
|
|
4442
|
+
176,
|
|
4443
|
+
217
|
|
4444
|
+
]
|
|
4445
|
+
},
|
|
4423
4446
|
{
|
|
4424
4447
|
"name": "requestQueue",
|
|
4425
4448
|
"discriminator": [
|
|
@@ -4494,7 +4517,7 @@ export type GlamMint = {
|
|
|
4494
4517
|
{
|
|
4495
4518
|
"code": 6003,
|
|
4496
4519
|
"name": "invalidAsset",
|
|
4497
|
-
"msg": "
|
|
4520
|
+
"msg": "Asset not allowed to subscribe"
|
|
4498
4521
|
},
|
|
4499
4522
|
{
|
|
4500
4523
|
"code": 6004,
|
|
@@ -4548,18 +4571,33 @@ export type GlamMint = {
|
|
|
4548
4571
|
},
|
|
4549
4572
|
{
|
|
4550
4573
|
"code": 6014,
|
|
4574
|
+
"name": "amountBelowMinimum",
|
|
4575
|
+
"msg": "Amount is below the minimum required"
|
|
4576
|
+
},
|
|
4577
|
+
{
|
|
4578
|
+
"code": 6015,
|
|
4551
4579
|
"name": "managerFeesNotCrystallized",
|
|
4552
4580
|
"msg": "Manager fees should be crystallized before updating"
|
|
4553
4581
|
},
|
|
4554
4582
|
{
|
|
4555
|
-
"code":
|
|
4583
|
+
"code": 6016,
|
|
4584
|
+
"name": "amountAboveMaximum",
|
|
4585
|
+
"msg": "Amount exceeds maximum threshold"
|
|
4586
|
+
},
|
|
4587
|
+
{
|
|
4588
|
+
"code": 6017,
|
|
4556
4589
|
"name": "insufficientEscrowBalance",
|
|
4557
4590
|
"msg": "Insufficient escrow balance for fee burn"
|
|
4558
4591
|
},
|
|
4559
4592
|
{
|
|
4560
|
-
"code":
|
|
4561
|
-
"name": "
|
|
4562
|
-
"msg": "
|
|
4593
|
+
"code": 6018,
|
|
4594
|
+
"name": "tokenAclManagesFreezeThaw",
|
|
4595
|
+
"msg": "Token ACL is enabled; freeze/thaw is managed by the Token ACL program"
|
|
4596
|
+
},
|
|
4597
|
+
{
|
|
4598
|
+
"code": 6019,
|
|
4599
|
+
"name": "invalidMintState",
|
|
4600
|
+
"msg": "Invalid mint state"
|
|
4563
4601
|
}
|
|
4564
4602
|
],
|
|
4565
4603
|
"types": [
|
|
@@ -4623,6 +4661,51 @@ export type GlamMint = {
|
|
|
4623
4661
|
]
|
|
4624
4662
|
}
|
|
4625
4663
|
},
|
|
4664
|
+
{
|
|
4665
|
+
"name": "assetMeta",
|
|
4666
|
+
"type": {
|
|
4667
|
+
"kind": "struct",
|
|
4668
|
+
"fields": [
|
|
4669
|
+
{
|
|
4670
|
+
"name": "asset",
|
|
4671
|
+
"type": "pubkey"
|
|
4672
|
+
},
|
|
4673
|
+
{
|
|
4674
|
+
"name": "decimals",
|
|
4675
|
+
"type": "u8"
|
|
4676
|
+
},
|
|
4677
|
+
{
|
|
4678
|
+
"name": "oracle",
|
|
4679
|
+
"type": "pubkey"
|
|
4680
|
+
},
|
|
4681
|
+
{
|
|
4682
|
+
"name": "oracleSource",
|
|
4683
|
+
"type": {
|
|
4684
|
+
"defined": {
|
|
4685
|
+
"name": "oracleSource"
|
|
4686
|
+
}
|
|
4687
|
+
}
|
|
4688
|
+
},
|
|
4689
|
+
{
|
|
4690
|
+
"name": "maxAgeSeconds",
|
|
4691
|
+
"type": "u16"
|
|
4692
|
+
},
|
|
4693
|
+
{
|
|
4694
|
+
"name": "priority",
|
|
4695
|
+
"type": "i8"
|
|
4696
|
+
},
|
|
4697
|
+
{
|
|
4698
|
+
"name": "padding",
|
|
4699
|
+
"type": {
|
|
4700
|
+
"array": [
|
|
4701
|
+
"u8",
|
|
4702
|
+
3
|
|
4703
|
+
]
|
|
4704
|
+
}
|
|
4705
|
+
}
|
|
4706
|
+
]
|
|
4707
|
+
}
|
|
4708
|
+
},
|
|
4626
4709
|
{
|
|
4627
4710
|
"name": "aumRecord",
|
|
4628
4711
|
"type": {
|
|
@@ -5077,6 +5160,62 @@ export type GlamMint = {
|
|
|
5077
5160
|
]
|
|
5078
5161
|
}
|
|
5079
5162
|
},
|
|
5163
|
+
{
|
|
5164
|
+
"name": "globalConfig",
|
|
5165
|
+
"type": {
|
|
5166
|
+
"kind": "struct",
|
|
5167
|
+
"fields": [
|
|
5168
|
+
{
|
|
5169
|
+
"name": "admin",
|
|
5170
|
+
"docs": [
|
|
5171
|
+
"The authority that can modify the config"
|
|
5172
|
+
],
|
|
5173
|
+
"type": "pubkey"
|
|
5174
|
+
},
|
|
5175
|
+
{
|
|
5176
|
+
"name": "feeAuthority",
|
|
5177
|
+
"docs": [
|
|
5178
|
+
"The authority that can modify fee structure of individual glam state and claim protocol fees"
|
|
5179
|
+
],
|
|
5180
|
+
"type": "pubkey"
|
|
5181
|
+
},
|
|
5182
|
+
{
|
|
5183
|
+
"name": "referrer",
|
|
5184
|
+
"docs": [
|
|
5185
|
+
"Default GLAM referrer"
|
|
5186
|
+
],
|
|
5187
|
+
"type": "pubkey"
|
|
5188
|
+
},
|
|
5189
|
+
{
|
|
5190
|
+
"name": "baseFeeBps",
|
|
5191
|
+
"docs": [
|
|
5192
|
+
"Default protocol base fee applied to all vaults"
|
|
5193
|
+
],
|
|
5194
|
+
"type": "u16"
|
|
5195
|
+
},
|
|
5196
|
+
{
|
|
5197
|
+
"name": "flowFeeBps",
|
|
5198
|
+
"docs": [
|
|
5199
|
+
"Default protocol flow fee applied to all vaults"
|
|
5200
|
+
],
|
|
5201
|
+
"type": "u16"
|
|
5202
|
+
},
|
|
5203
|
+
{
|
|
5204
|
+
"name": "assetMetas",
|
|
5205
|
+
"docs": [
|
|
5206
|
+
"List of assets and their oracle configs supported by the protocol"
|
|
5207
|
+
],
|
|
5208
|
+
"type": {
|
|
5209
|
+
"vec": {
|
|
5210
|
+
"defined": {
|
|
5211
|
+
"name": "assetMeta"
|
|
5212
|
+
}
|
|
5213
|
+
}
|
|
5214
|
+
}
|
|
5215
|
+
}
|
|
5216
|
+
]
|
|
5217
|
+
}
|
|
5218
|
+
},
|
|
5080
5219
|
{
|
|
5081
5220
|
"name": "hurdleType",
|
|
5082
5221
|
"type": {
|
|
@@ -5433,6 +5572,83 @@ export type GlamMint = {
|
|
|
5433
5572
|
]
|
|
5434
5573
|
}
|
|
5435
5574
|
},
|
|
5575
|
+
{
|
|
5576
|
+
"name": "oracleSource",
|
|
5577
|
+
"type": {
|
|
5578
|
+
"kind": "enum",
|
|
5579
|
+
"variants": [
|
|
5580
|
+
{
|
|
5581
|
+
"name": "pyth"
|
|
5582
|
+
},
|
|
5583
|
+
{
|
|
5584
|
+
"name": "switchboard"
|
|
5585
|
+
},
|
|
5586
|
+
{
|
|
5587
|
+
"name": "quoteAsset"
|
|
5588
|
+
},
|
|
5589
|
+
{
|
|
5590
|
+
"name": "pyth1K"
|
|
5591
|
+
},
|
|
5592
|
+
{
|
|
5593
|
+
"name": "pyth1M"
|
|
5594
|
+
},
|
|
5595
|
+
{
|
|
5596
|
+
"name": "pythStableCoin"
|
|
5597
|
+
},
|
|
5598
|
+
{
|
|
5599
|
+
"name": "prelaunch"
|
|
5600
|
+
},
|
|
5601
|
+
{
|
|
5602
|
+
"name": "pythPull"
|
|
5603
|
+
},
|
|
5604
|
+
{
|
|
5605
|
+
"name": "pyth1KPull"
|
|
5606
|
+
},
|
|
5607
|
+
{
|
|
5608
|
+
"name": "pyth1MPull"
|
|
5609
|
+
},
|
|
5610
|
+
{
|
|
5611
|
+
"name": "pythStableCoinPull"
|
|
5612
|
+
},
|
|
5613
|
+
{
|
|
5614
|
+
"name": "switchboardOnDemand"
|
|
5615
|
+
},
|
|
5616
|
+
{
|
|
5617
|
+
"name": "pythLazer"
|
|
5618
|
+
},
|
|
5619
|
+
{
|
|
5620
|
+
"name": "pythLazer1K"
|
|
5621
|
+
},
|
|
5622
|
+
{
|
|
5623
|
+
"name": "pythLazer1M"
|
|
5624
|
+
},
|
|
5625
|
+
{
|
|
5626
|
+
"name": "pythLazerStableCoin"
|
|
5627
|
+
},
|
|
5628
|
+
{
|
|
5629
|
+
"name": "notSet"
|
|
5630
|
+
},
|
|
5631
|
+
{
|
|
5632
|
+
"name": "lstPoolState"
|
|
5633
|
+
},
|
|
5634
|
+
{
|
|
5635
|
+
"name": "marinadeState"
|
|
5636
|
+
},
|
|
5637
|
+
{
|
|
5638
|
+
"name": "baseAsset"
|
|
5639
|
+
},
|
|
5640
|
+
{
|
|
5641
|
+
"name": "chainlinkRwa"
|
|
5642
|
+
},
|
|
5643
|
+
{
|
|
5644
|
+
"name": "chainlinkX"
|
|
5645
|
+
},
|
|
5646
|
+
{
|
|
5647
|
+
"name": "kaminoReserve"
|
|
5648
|
+
}
|
|
5649
|
+
]
|
|
5650
|
+
}
|
|
5651
|
+
},
|
|
5436
5652
|
{
|
|
5437
5653
|
"name": "pendingRequest",
|
|
5438
5654
|
"type": {
|
|
@@ -5870,6 +6086,21 @@ export type GlamMint = {
|
|
|
5870
6086
|
"name": "protoMintPermSetTokenAccountState",
|
|
5871
6087
|
"type": "u64",
|
|
5872
6088
|
"value": "8"
|
|
6089
|
+
},
|
|
6090
|
+
{
|
|
6091
|
+
"name": "protoMintPermTokenAclApplyList",
|
|
6092
|
+
"type": "u64",
|
|
6093
|
+
"value": "2048"
|
|
6094
|
+
},
|
|
6095
|
+
{
|
|
6096
|
+
"name": "protoMintPermTokenAclFreezeThaw",
|
|
6097
|
+
"type": "u64",
|
|
6098
|
+
"value": "512"
|
|
6099
|
+
},
|
|
6100
|
+
{
|
|
6101
|
+
"name": "protoMintPermTokenAclManageList",
|
|
6102
|
+
"type": "u64",
|
|
6103
|
+
"value": "1024"
|
|
5873
6104
|
}
|
|
5874
6105
|
]
|
|
5875
6106
|
};
|