@glamsystems/glam-sdk 1.0.14-alpha.4 → 1.0.14-alpha.6

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 (91) hide show
  1. package/index.cjs.js +50322 -20832
  2. package/index.esm.js +50167 -20833
  3. package/package.json +3 -3
  4. package/target/idl/ext_jupiter-staging.json +1960 -0
  5. package/target/idl/ext_jupiter.json +1960 -0
  6. package/target/idl/ext_orca-staging.json +2797 -0
  7. package/target/idl/ext_orca.json +2797 -0
  8. package/target/idl/glam_mint-staging.json +1452 -80
  9. package/target/idl/glam_mint.json +256 -1
  10. package/target/idl/glam_protocol-staging.json +22 -2
  11. package/target/idl/glam_protocol.json +584 -0
  12. package/target/types/ext_jupiter-staging.ts +1966 -0
  13. package/target/types/ext_jupiter.ts +1966 -0
  14. package/target/types/ext_orca-staging.ts +2803 -0
  15. package/target/types/ext_orca.ts +2803 -0
  16. package/target/types/glam_mint-staging.ts +1452 -80
  17. package/target/types/glam_mint.ts +256 -1
  18. package/target/types/glam_protocol-staging.ts +22 -2
  19. package/target/types/glam_protocol.ts +584 -0
  20. package/src/assets.d.ts +0 -40
  21. package/src/client/access.d.ts +0 -57
  22. package/src/client/base.d.ts +0 -180
  23. package/src/client/bridge.d.ts +0 -185
  24. package/src/client/bridgeRegistry.d.ts +0 -32
  25. package/src/client/cctp.d.ts +0 -156
  26. package/src/client/epi.d.ts +0 -78
  27. package/src/client/fees.d.ts +0 -33
  28. package/src/client/invest.d.ts +0 -37
  29. package/src/client/jupiter.d.ts +0 -45
  30. package/src/client/kamino/farm.d.ts +0 -39
  31. package/src/client/kamino/index.d.ts +0 -4
  32. package/src/client/kamino/lending.d.ts +0 -86
  33. package/src/client/kamino/types.d.ts +0 -56
  34. package/src/client/kamino/vaults.d.ts +0 -31
  35. package/src/client/marinade.d.ts +0 -42
  36. package/src/client/mint.d.ts +0 -127
  37. package/src/client/price.d.ts +0 -128
  38. package/src/client/stake-pool.d.ts +0 -39
  39. package/src/client/stake.d.ts +0 -34
  40. package/src/client/state.d.ts +0 -56
  41. package/src/client/timelock.d.ts +0 -31
  42. package/src/client/vault.d.ts +0 -90
  43. package/src/client.d.ts +0 -62
  44. package/src/clientConfig.d.ts +0 -29
  45. package/src/constants.d.ts +0 -82
  46. package/src/deser/base.d.ts +0 -18
  47. package/src/deser/index.d.ts +0 -3
  48. package/src/deser/integrationPolicies.d.ts +0 -106
  49. package/src/deser/kaminoLayouts.d.ts +0 -264
  50. package/src/deser/tokenAclLayouts.d.ts +0 -67
  51. package/src/error.d.ts +0 -29
  52. package/src/glamExports.d.ts +0 -5563
  53. package/src/globalConfig.d.ts +0 -22
  54. package/src/index.d.ts +0 -18
  55. package/src/models/acl.d.ts +0 -43
  56. package/src/models/index.d.ts +0 -8
  57. package/src/models/mint.d.ts +0 -64
  58. package/src/models/state.d.ts +0 -104
  59. package/src/models/types.d.ts +0 -28
  60. package/src/react/cluster-provider.d.ts +0 -22
  61. package/src/react/glam.d.ts +0 -47
  62. package/src/react/index.d.ts +0 -5
  63. package/src/react/query-keys.d.ts +0 -38
  64. package/src/react/useVaultBalanceSubscription.d.ts +0 -17
  65. package/src/utils/accounts.d.ts +0 -72
  66. package/src/utils/bitmask.d.ts +0 -53
  67. package/src/utils/blockhash.d.ts +0 -11
  68. package/src/utils/common.d.ts +0 -37
  69. package/src/utils/computeBudget.d.ts +0 -15
  70. package/src/utils/evm.d.ts +0 -10
  71. package/src/utils/fraction.d.ts +0 -29
  72. package/src/utils/glamPDAs.d.ts +0 -14
  73. package/src/utils/index.d.ts +0 -16
  74. package/src/utils/jupiterApi.d.ts +0 -89
  75. package/src/utils/lookupTables.d.ts +0 -53
  76. package/src/utils/pkmap.d.ts +0 -82
  77. package/src/utils/pkset.d.ts +0 -73
  78. package/src/utils/positionCategorizer.d.ts +0 -36
  79. package/src/utils/rpc.d.ts +0 -33
  80. package/src/utils/timelock.d.ts +0 -52
  81. package/src/utils/transaction.d.ts +0 -13
  82. package/target/types/ext_bridge.d.ts +0 -2385
  83. package/target/types/ext_cctp.d.ts +0 -1268
  84. package/target/types/ext_epi.d.ts +0 -2175
  85. package/target/types/ext_kamino.d.ts +0 -3433
  86. package/target/types/ext_marinade.d.ts +0 -1593
  87. package/target/types/ext_spl.d.ts +0 -1274
  88. package/target/types/ext_stake_pool.d.ts +0 -1622
  89. package/target/types/glam_config.d.ts +0 -755
  90. package/target/types/glam_mint.d.ts +0 -6094
  91. package/target/types/glam_protocol.d.ts +0 -2708
@@ -2834,6 +2834,249 @@ export type GlamMint = {
2834
2834
  }
2835
2835
  ]
2836
2836
  },
2837
+ {
2838
+ "name": "priceOrcaWhirlpoolPositions",
2839
+ "docs": [
2840
+ "Prices Orca Whirlpools positions registered as vault external positions.",
2841
+ "",
2842
+ "Remaining accounts for each position:",
2843
+ "- position",
2844
+ "- position_token_account",
2845
+ "- whirlpool",
2846
+ "- tick_array_lower",
2847
+ "- tick_array_upper",
2848
+ "- token_mint_a",
2849
+ "- token_oracle_a",
2850
+ "- token_mint_b",
2851
+ "- token_oracle_b",
2852
+ "- optional reward_mint, reward_oracle pairs for initialized rewards with nonzero value"
2853
+ ],
2854
+ "discriminator": [
2855
+ 3,
2856
+ 81,
2857
+ 117,
2858
+ 34,
2859
+ 5,
2860
+ 238,
2861
+ 158,
2862
+ 232
2863
+ ],
2864
+ "accounts": [
2865
+ {
2866
+ "name": "glamState",
2867
+ "writable": true
2868
+ },
2869
+ {
2870
+ "name": "glamVault",
2871
+ "pda": {
2872
+ "seeds": [
2873
+ {
2874
+ "kind": "const",
2875
+ "value": [
2876
+ 118,
2877
+ 97,
2878
+ 117,
2879
+ 108,
2880
+ 116
2881
+ ]
2882
+ },
2883
+ {
2884
+ "kind": "account",
2885
+ "path": "glamState"
2886
+ }
2887
+ ],
2888
+ "program": {
2889
+ "kind": "const",
2890
+ "value": [
2891
+ 227,
2892
+ 199,
2893
+ 235,
2894
+ 230,
2895
+ 176,
2896
+ 132,
2897
+ 243,
2898
+ 117,
2899
+ 43,
2900
+ 131,
2901
+ 173,
2902
+ 18,
2903
+ 78,
2904
+ 255,
2905
+ 26,
2906
+ 50,
2907
+ 209,
2908
+ 135,
2909
+ 86,
2910
+ 219,
2911
+ 140,
2912
+ 126,
2913
+ 61,
2914
+ 255,
2915
+ 0,
2916
+ 218,
2917
+ 252,
2918
+ 224,
2919
+ 172,
2920
+ 8,
2921
+ 223,
2922
+ 207
2923
+ ]
2924
+ }
2925
+ }
2926
+ },
2927
+ {
2928
+ "name": "signer",
2929
+ "writable": true,
2930
+ "signer": true
2931
+ },
2932
+ {
2933
+ "name": "solUsdOracle"
2934
+ },
2935
+ {
2936
+ "name": "baseAssetOracle"
2937
+ },
2938
+ {
2939
+ "name": "integrationAuthority",
2940
+ "pda": {
2941
+ "seeds": [
2942
+ {
2943
+ "kind": "const",
2944
+ "value": [
2945
+ 105,
2946
+ 110,
2947
+ 116,
2948
+ 101,
2949
+ 103,
2950
+ 114,
2951
+ 97,
2952
+ 116,
2953
+ 105,
2954
+ 111,
2955
+ 110,
2956
+ 45,
2957
+ 97,
2958
+ 117,
2959
+ 116,
2960
+ 104,
2961
+ 111,
2962
+ 114,
2963
+ 105,
2964
+ 116,
2965
+ 121
2966
+ ]
2967
+ }
2968
+ ]
2969
+ }
2970
+ },
2971
+ {
2972
+ "name": "glamConfig",
2973
+ "pda": {
2974
+ "seeds": [
2975
+ {
2976
+ "kind": "const",
2977
+ "value": [
2978
+ 103,
2979
+ 108,
2980
+ 111,
2981
+ 98,
2982
+ 97,
2983
+ 108,
2984
+ 45,
2985
+ 99,
2986
+ 111,
2987
+ 110,
2988
+ 102,
2989
+ 105,
2990
+ 103
2991
+ ]
2992
+ }
2993
+ ],
2994
+ "program": {
2995
+ "kind": "const",
2996
+ "value": [
2997
+ 10,
2998
+ 11,
2999
+ 0,
3000
+ 83,
3001
+ 72,
3002
+ 16,
3003
+ 46,
3004
+ 144,
3005
+ 46,
3006
+ 42,
3007
+ 79,
3008
+ 22,
3009
+ 157,
3010
+ 123,
3011
+ 21,
3012
+ 242,
3013
+ 192,
3014
+ 146,
3015
+ 1,
3016
+ 78,
3017
+ 88,
3018
+ 59,
3019
+ 102,
3020
+ 9,
3021
+ 190,
3022
+ 226,
3023
+ 92,
3024
+ 189,
3025
+ 187,
3026
+ 232,
3027
+ 83,
3028
+ 220
3029
+ ]
3030
+ }
3031
+ }
3032
+ },
3033
+ {
3034
+ "name": "glamProtocol",
3035
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
3036
+ },
3037
+ {
3038
+ "name": "eventAuthority",
3039
+ "optional": true,
3040
+ "pda": {
3041
+ "seeds": [
3042
+ {
3043
+ "kind": "const",
3044
+ "value": [
3045
+ 95,
3046
+ 95,
3047
+ 101,
3048
+ 118,
3049
+ 101,
3050
+ 110,
3051
+ 116,
3052
+ 95,
3053
+ 97,
3054
+ 117,
3055
+ 116,
3056
+ 104,
3057
+ 111,
3058
+ 114,
3059
+ 105,
3060
+ 116,
3061
+ 121
3062
+ ]
3063
+ }
3064
+ ]
3065
+ }
3066
+ },
3067
+ {
3068
+ "name": "eventProgram",
3069
+ "optional": true,
3070
+ "address": "GM1NtvvnSXUptTrMCqbogAdZJydZSNv98DoU5AZVLmGh"
3071
+ }
3072
+ ],
3073
+ "args": [
3074
+ {
3075
+ "name": "numPositions",
3076
+ "type": "u8"
3077
+ }
3078
+ ]
3079
+ },
2837
3080
  {
2838
3081
  "name": "priceSingleAssetVault",
2839
3082
  "docs": [
@@ -4692,7 +4935,7 @@ export type GlamMint = {
4692
4935
  },
4693
4936
  {
4694
4937
  "name": "priority",
4695
- "type": "u8"
4938
+ "type": "i8"
4696
4939
  },
4697
4940
  {
4698
4941
  "name": "padding",
@@ -5181,18 +5424,30 @@ export type GlamMint = {
5181
5424
  },
5182
5425
  {
5183
5426
  "name": "referrer",
5427
+ "docs": [
5428
+ "Default GLAM referrer"
5429
+ ],
5184
5430
  "type": "pubkey"
5185
5431
  },
5186
5432
  {
5187
5433
  "name": "baseFeeBps",
5434
+ "docs": [
5435
+ "Default protocol base fee applied to all vaults"
5436
+ ],
5188
5437
  "type": "u16"
5189
5438
  },
5190
5439
  {
5191
5440
  "name": "flowFeeBps",
5441
+ "docs": [
5442
+ "Default protocol flow fee applied to all vaults"
5443
+ ],
5192
5444
  "type": "u16"
5193
5445
  },
5194
5446
  {
5195
5447
  "name": "assetMetas",
5448
+ "docs": [
5449
+ "List of assets and their oracle configs supported by the protocol"
5450
+ ],
5196
5451
  "type": {
5197
5452
  "vec": {
5198
5453
  "defined": {
@@ -1818,15 +1818,30 @@ export type GlamProtocol = {
1818
1818
  "msg": "Drift spot market cumulative interest is stale"
1819
1819
  },
1820
1820
  {
1821
- "code": 49018,
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": 49019,
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
+ },
1840
+ {
1841
+ "code": 49021,
1842
+ "name": "invalidFeeStructure",
1843
+ "msg": "Invalid fee structure"
1844
+ },
1830
1845
  {
1831
1846
  "code": 50000,
1832
1847
  "name": "withdrawDenied",
@@ -3258,6 +3273,11 @@ export type GlamProtocol = {
3258
3273
  "type": "u16",
3259
3274
  "value": "1"
3260
3275
  },
3276
+ {
3277
+ "name": "protoSystemPermEmergencyUpdate",
3278
+ "type": "u64",
3279
+ "value": "4"
3280
+ },
3261
3281
  {
3262
3282
  "name": "protoSystemPermTransfer",
3263
3283
  "type": "u64",