@glamsystems/glam-sdk 1.0.14-alpha.4 → 1.1.0-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 +26838 -14667
- package/index.esm.js +26812 -14667
- package/package.json +1 -1
- package/src/assets.d.ts +5 -6
- package/src/client/base.d.ts +10 -6
- package/src/client/bridge.d.ts +7 -9
- package/src/client/jupiter.d.ts +2 -2
- package/src/client/loopscale.d.ts +84 -0
- package/src/client/neutral.d.ts +111 -0
- package/src/client/price.d.ts +13 -4
- package/src/client.d.ts +6 -0
- package/src/constants.d.ts +2 -0
- package/src/deser/integrationPolicies.d.ts +14 -0
- package/src/glamExports.d.ts +1363 -1810
- package/src/globalConfig.d.ts +15 -10
- package/src/index.d.ts +2 -0
- package/src/utils/glamPDAs.d.ts +1 -0
- package/src/utils/pkmap.d.ts +23 -18
- package/target/idl/glam_mint-staging.json +966 -73
- package/target/idl/glam_mint.json +13 -1
- package/target/idl/glam_protocol-staging.json +17 -2
- package/target/types/ext_loopscale.d.ts +3547 -0
- package/target/types/ext_neutral.d.ts +1786 -0
- package/target/types/glam_mint-staging.ts +966 -73
- package/target/types/glam_mint.d.ts +13 -1
- package/target/types/glam_mint.ts +13 -1
- package/target/types/glam_protocol-staging.ts +17 -2
|
@@ -4692,7 +4692,7 @@ export type GlamMint = {
|
|
|
4692
4692
|
},
|
|
4693
4693
|
{
|
|
4694
4694
|
"name": "priority";
|
|
4695
|
-
"type": "
|
|
4695
|
+
"type": "i8";
|
|
4696
4696
|
},
|
|
4697
4697
|
{
|
|
4698
4698
|
"name": "padding";
|
|
@@ -5181,18 +5181,30 @@ export type GlamMint = {
|
|
|
5181
5181
|
},
|
|
5182
5182
|
{
|
|
5183
5183
|
"name": "referrer";
|
|
5184
|
+
"docs": [
|
|
5185
|
+
"Default GLAM referrer"
|
|
5186
|
+
];
|
|
5184
5187
|
"type": "pubkey";
|
|
5185
5188
|
},
|
|
5186
5189
|
{
|
|
5187
5190
|
"name": "baseFeeBps";
|
|
5191
|
+
"docs": [
|
|
5192
|
+
"Default protocol base fee applied to all vaults"
|
|
5193
|
+
];
|
|
5188
5194
|
"type": "u16";
|
|
5189
5195
|
},
|
|
5190
5196
|
{
|
|
5191
5197
|
"name": "flowFeeBps";
|
|
5198
|
+
"docs": [
|
|
5199
|
+
"Default protocol flow fee applied to all vaults"
|
|
5200
|
+
];
|
|
5192
5201
|
"type": "u16";
|
|
5193
5202
|
},
|
|
5194
5203
|
{
|
|
5195
5204
|
"name": "assetMetas";
|
|
5205
|
+
"docs": [
|
|
5206
|
+
"List of assets and their oracle configs supported by the protocol"
|
|
5207
|
+
];
|
|
5196
5208
|
"type": {
|
|
5197
5209
|
"vec": {
|
|
5198
5210
|
"defined": {
|
|
@@ -4692,7 +4692,7 @@ export type GlamMint = {
|
|
|
4692
4692
|
},
|
|
4693
4693
|
{
|
|
4694
4694
|
"name": "priority",
|
|
4695
|
-
"type": "
|
|
4695
|
+
"type": "i8"
|
|
4696
4696
|
},
|
|
4697
4697
|
{
|
|
4698
4698
|
"name": "padding",
|
|
@@ -5181,18 +5181,30 @@ export type GlamMint = {
|
|
|
5181
5181
|
},
|
|
5182
5182
|
{
|
|
5183
5183
|
"name": "referrer",
|
|
5184
|
+
"docs": [
|
|
5185
|
+
"Default GLAM referrer"
|
|
5186
|
+
],
|
|
5184
5187
|
"type": "pubkey"
|
|
5185
5188
|
},
|
|
5186
5189
|
{
|
|
5187
5190
|
"name": "baseFeeBps",
|
|
5191
|
+
"docs": [
|
|
5192
|
+
"Default protocol base fee applied to all vaults"
|
|
5193
|
+
],
|
|
5188
5194
|
"type": "u16"
|
|
5189
5195
|
},
|
|
5190
5196
|
{
|
|
5191
5197
|
"name": "flowFeeBps",
|
|
5198
|
+
"docs": [
|
|
5199
|
+
"Default protocol flow fee applied to all vaults"
|
|
5200
|
+
],
|
|
5192
5201
|
"type": "u16"
|
|
5193
5202
|
},
|
|
5194
5203
|
{
|
|
5195
5204
|
"name": "assetMetas",
|
|
5205
|
+
"docs": [
|
|
5206
|
+
"List of assets and their oracle configs supported by the protocol"
|
|
5207
|
+
],
|
|
5196
5208
|
"type": {
|
|
5197
5209
|
"vec": {
|
|
5198
5210
|
"defined": {
|
|
@@ -1818,15 +1818,25 @@ export type GlamProtocol = {
|
|
|
1818
1818
|
"msg": "Drift spot market cumulative interest is stale"
|
|
1819
1819
|
},
|
|
1820
1820
|
{
|
|
1821
|
-
"code":
|
|
1821
|
+
"code": 49017,
|
|
1822
1822
|
"name": "assetBalanceNotZero",
|
|
1823
1823
|
"msg": "Cannot delete asset: vault token account balance is not zero"
|
|
1824
1824
|
},
|
|
1825
1825
|
{
|
|
1826
|
-
"code":
|
|
1826
|
+
"code": 49018,
|
|
1827
1827
|
"name": "cannotDeleteBaseAsset",
|
|
1828
1828
|
"msg": "Cannot delete base asset from allowlist"
|
|
1829
1829
|
},
|
|
1830
|
+
{
|
|
1831
|
+
"code": 49019,
|
|
1832
|
+
"name": "integrationAclLimitExceeded",
|
|
1833
|
+
"msg": "Integration ACL limit exceeded"
|
|
1834
|
+
},
|
|
1835
|
+
{
|
|
1836
|
+
"code": 49020,
|
|
1837
|
+
"name": "delegateAclLimitExceeded",
|
|
1838
|
+
"msg": "Delegate ACL limit exceeded"
|
|
1839
|
+
},
|
|
1830
1840
|
{
|
|
1831
1841
|
"code": 50000,
|
|
1832
1842
|
"name": "withdrawDenied",
|
|
@@ -3258,6 +3268,11 @@ export type GlamProtocol = {
|
|
|
3258
3268
|
"type": "u16",
|
|
3259
3269
|
"value": "1"
|
|
3260
3270
|
},
|
|
3271
|
+
{
|
|
3272
|
+
"name": "protoSystemPermEmergencyUpdate",
|
|
3273
|
+
"type": "u64",
|
|
3274
|
+
"value": "4"
|
|
3275
|
+
},
|
|
3261
3276
|
{
|
|
3262
3277
|
"name": "protoSystemPermTransfer",
|
|
3263
3278
|
"type": "u64",
|