@glamsystems/glam-sdk 1.0.12-alpha.2 → 1.0.12-alpha.3

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 (45) hide show
  1. package/index.cjs.js +881 -2046
  2. package/index.esm.js +881 -2046
  3. package/package.json +1 -1
  4. package/src/client/fees.d.ts +0 -3
  5. package/src/client/stake.d.ts +1 -1
  6. package/src/client/state.d.ts +0 -2
  7. package/src/glamExports.d.ts +29 -0
  8. package/src/models/state.d.ts +0 -4
  9. package/target/idl/ext_cctp.json +0 -6
  10. package/target/idl/ext_drift-staging.json +0 -6
  11. package/target/idl/ext_drift.json +0 -6
  12. package/target/idl/ext_kamino-staging.json +205 -6
  13. package/target/idl/ext_kamino.json +205 -6
  14. package/target/idl/ext_marinade.json +0 -6
  15. package/target/idl/ext_spl-staging.json +0 -6
  16. package/target/idl/ext_spl.json +0 -6
  17. package/target/idl/ext_stake_pool-staging.json +0 -6
  18. package/target/idl/ext_stake_pool.json +0 -6
  19. package/target/idl/glam_mint-staging.json +0 -6
  20. package/target/idl/glam_mint.json +0 -229
  21. package/target/idl/glam_protocol-staging.json +0 -271
  22. package/target/idl/glam_protocol.json +129 -1086
  23. package/target/types/ext_cctp.d.ts +0 -6
  24. package/target/types/ext_cctp.ts +0 -6
  25. package/target/types/ext_drift-staging.ts +0 -6
  26. package/target/types/ext_drift.d.ts +0 -6
  27. package/target/types/ext_drift.ts +0 -6
  28. package/target/types/ext_kamino-staging.ts +205 -6
  29. package/target/types/ext_kamino.d.ts +205 -6
  30. package/target/types/ext_kamino.ts +205 -6
  31. package/target/types/ext_marinade.d.ts +0 -6
  32. package/target/types/ext_marinade.ts +0 -6
  33. package/target/types/ext_offchain.d.ts +0 -6
  34. package/target/types/ext_spl-staging.ts +0 -6
  35. package/target/types/ext_spl.d.ts +0 -6
  36. package/target/types/ext_spl.ts +0 -6
  37. package/target/types/ext_stake_pool-staging.ts +0 -6
  38. package/target/types/ext_stake_pool.d.ts +0 -6
  39. package/target/types/ext_stake_pool.ts +0 -6
  40. package/target/types/glam_mint-staging.ts +0 -6
  41. package/target/types/glam_mint.d.ts +0 -229
  42. package/target/types/glam_mint.ts +0 -229
  43. package/target/types/glam_protocol-staging.ts +0 -271
  44. package/target/types/glam_protocol.d.ts +129 -1086
  45. package/target/types/glam_protocol.ts +128 -1085
@@ -2985,229 +2985,6 @@ export type GlamMint = {
2985
2985
  ],
2986
2986
  "args": []
2987
2987
  },
2988
- {
2989
- "name": "priceStakeAccounts",
2990
- "discriminator": [
2991
- 119,
2992
- 137,
2993
- 9,
2994
- 15,
2995
- 196,
2996
- 73,
2997
- 30,
2998
- 27
2999
- ],
3000
- "accounts": [
3001
- {
3002
- "name": "glamState",
3003
- "writable": true
3004
- },
3005
- {
3006
- "name": "glamVault",
3007
- "pda": {
3008
- "seeds": [
3009
- {
3010
- "kind": "const",
3011
- "value": [
3012
- 118,
3013
- 97,
3014
- 117,
3015
- 108,
3016
- 116
3017
- ]
3018
- },
3019
- {
3020
- "kind": "account",
3021
- "path": "glamState"
3022
- }
3023
- ],
3024
- "program": {
3025
- "kind": "const",
3026
- "value": [
3027
- 227,
3028
- 199,
3029
- 235,
3030
- 230,
3031
- 176,
3032
- 132,
3033
- 243,
3034
- 117,
3035
- 43,
3036
- 131,
3037
- 173,
3038
- 18,
3039
- 78,
3040
- 255,
3041
- 26,
3042
- 50,
3043
- 209,
3044
- 135,
3045
- 86,
3046
- 219,
3047
- 140,
3048
- 126,
3049
- 61,
3050
- 255,
3051
- 0,
3052
- 218,
3053
- 252,
3054
- 224,
3055
- 172,
3056
- 8,
3057
- 223,
3058
- 207
3059
- ]
3060
- }
3061
- }
3062
- },
3063
- {
3064
- "name": "signer",
3065
- "writable": true,
3066
- "signer": true
3067
- },
3068
- {
3069
- "name": "solUsdOracle"
3070
- },
3071
- {
3072
- "name": "baseAssetOracle"
3073
- },
3074
- {
3075
- "name": "integrationAuthority",
3076
- "pda": {
3077
- "seeds": [
3078
- {
3079
- "kind": "const",
3080
- "value": [
3081
- 105,
3082
- 110,
3083
- 116,
3084
- 101,
3085
- 103,
3086
- 114,
3087
- 97,
3088
- 116,
3089
- 105,
3090
- 111,
3091
- 110,
3092
- 45,
3093
- 97,
3094
- 117,
3095
- 116,
3096
- 104,
3097
- 111,
3098
- 114,
3099
- 105,
3100
- 116,
3101
- 121
3102
- ]
3103
- }
3104
- ]
3105
- }
3106
- },
3107
- {
3108
- "name": "glamConfig",
3109
- "pda": {
3110
- "seeds": [
3111
- {
3112
- "kind": "const",
3113
- "value": [
3114
- 103,
3115
- 108,
3116
- 111,
3117
- 98,
3118
- 97,
3119
- 108,
3120
- 45,
3121
- 99,
3122
- 111,
3123
- 110,
3124
- 102,
3125
- 105,
3126
- 103
3127
- ]
3128
- }
3129
- ],
3130
- "program": {
3131
- "kind": "const",
3132
- "value": [
3133
- 10,
3134
- 11,
3135
- 0,
3136
- 83,
3137
- 72,
3138
- 16,
3139
- 46,
3140
- 144,
3141
- 46,
3142
- 42,
3143
- 79,
3144
- 22,
3145
- 157,
3146
- 123,
3147
- 21,
3148
- 242,
3149
- 192,
3150
- 146,
3151
- 1,
3152
- 78,
3153
- 88,
3154
- 59,
3155
- 102,
3156
- 9,
3157
- 190,
3158
- 226,
3159
- 92,
3160
- 189,
3161
- 187,
3162
- 232,
3163
- 83,
3164
- 220
3165
- ]
3166
- }
3167
- }
3168
- },
3169
- {
3170
- "name": "glamProtocol",
3171
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz"
3172
- },
3173
- {
3174
- "name": "eventAuthority",
3175
- "optional": true,
3176
- "pda": {
3177
- "seeds": [
3178
- {
3179
- "kind": "const",
3180
- "value": [
3181
- 95,
3182
- 95,
3183
- 101,
3184
- 118,
3185
- 101,
3186
- 110,
3187
- 116,
3188
- 95,
3189
- 97,
3190
- 117,
3191
- 116,
3192
- 104,
3193
- 111,
3194
- 114,
3195
- 105,
3196
- 116,
3197
- 121
3198
- ]
3199
- }
3200
- ]
3201
- }
3202
- },
3203
- {
3204
- "name": "eventProgram",
3205
- "optional": true,
3206
- "address": "GM1NtvvnSXUptTrMCqbogAdZJydZSNv98DoU5AZVLmGh"
3207
- }
3208
- ],
3209
- "args": []
3210
- },
3211
2988
  {
3212
2989
  "name": "priceVaultTokens",
3213
2990
  "docs": [
@@ -5008,12 +4785,6 @@ export type GlamMint = {
5008
4785
  },
5009
4786
  {
5010
4787
  "name": "oracleConfigs"
5011
- },
5012
- {
5013
- "name": "reduceOnly"
5014
- },
5015
- {
5016
- "name": "anyLst"
5017
4788
  }
5018
4789
  ]
5019
4790
  }
@@ -38,249 +38,6 @@ export type GlamProtocol = {
38
38
  ],
39
39
  "args": []
40
40
  },
41
- {
42
- "name": "chargeProtocolFee",
43
- "docs": [
44
- "Charges protocol base fee on non-tokenized vaults"
45
- ],
46
- "discriminator": [
47
- 48,
48
- 225,
49
- 89,
50
- 103,
51
- 48,
52
- 65,
53
- 183,
54
- 238
55
- ],
56
- "accounts": [
57
- {
58
- "name": "glamState",
59
- "writable": true
60
- },
61
- {
62
- "name": "glamVault",
63
- "writable": true,
64
- "pda": {
65
- "seeds": [
66
- {
67
- "kind": "const",
68
- "value": [
69
- 118,
70
- 97,
71
- 117,
72
- 108,
73
- 116
74
- ]
75
- },
76
- {
77
- "kind": "account",
78
- "path": "glamState"
79
- }
80
- ]
81
- }
82
- },
83
- {
84
- "name": "signer",
85
- "writable": true,
86
- "signer": true
87
- },
88
- {
89
- "name": "depositAsset"
90
- },
91
- {
92
- "name": "vaultDepositAta",
93
- "writable": true,
94
- "pda": {
95
- "seeds": [
96
- {
97
- "kind": "account",
98
- "path": "glamVault"
99
- },
100
- {
101
- "kind": "account",
102
- "path": "depositTokenProgram"
103
- },
104
- {
105
- "kind": "account",
106
- "path": "depositAsset"
107
- }
108
- ],
109
- "program": {
110
- "kind": "const",
111
- "value": [
112
- 140,
113
- 151,
114
- 37,
115
- 143,
116
- 78,
117
- 36,
118
- 137,
119
- 241,
120
- 187,
121
- 61,
122
- 16,
123
- 41,
124
- 20,
125
- 142,
126
- 13,
127
- 131,
128
- 11,
129
- 90,
130
- 19,
131
- 153,
132
- 218,
133
- 255,
134
- 16,
135
- 132,
136
- 4,
137
- 142,
138
- 123,
139
- 216,
140
- 219,
141
- 233,
142
- 248,
143
- 89
144
- ]
145
- }
146
- }
147
- },
148
- {
149
- "name": "protocolFeeAuthority"
150
- },
151
- {
152
- "name": "protocolFeeAuthorityAta",
153
- "writable": true,
154
- "pda": {
155
- "seeds": [
156
- {
157
- "kind": "account",
158
- "path": "protocolFeeAuthority"
159
- },
160
- {
161
- "kind": "account",
162
- "path": "depositTokenProgram"
163
- },
164
- {
165
- "kind": "account",
166
- "path": "depositAsset"
167
- }
168
- ],
169
- "program": {
170
- "kind": "const",
171
- "value": [
172
- 140,
173
- 151,
174
- 37,
175
- 143,
176
- 78,
177
- 36,
178
- 137,
179
- 241,
180
- 187,
181
- 61,
182
- 16,
183
- 41,
184
- 20,
185
- 142,
186
- 13,
187
- 131,
188
- 11,
189
- 90,
190
- 19,
191
- 153,
192
- 218,
193
- 255,
194
- 16,
195
- 132,
196
- 4,
197
- 142,
198
- 123,
199
- 216,
200
- 219,
201
- 233,
202
- 248,
203
- 89
204
- ]
205
- }
206
- }
207
- },
208
- {
209
- "name": "glamConfig",
210
- "pda": {
211
- "seeds": [
212
- {
213
- "kind": "const",
214
- "value": [
215
- 103,
216
- 108,
217
- 111,
218
- 98,
219
- 97,
220
- 108,
221
- 45,
222
- 99,
223
- 111,
224
- 110,
225
- 102,
226
- 105,
227
- 103
228
- ]
229
- }
230
- ],
231
- "program": {
232
- "kind": "const",
233
- "value": [
234
- 10,
235
- 11,
236
- 0,
237
- 83,
238
- 72,
239
- 16,
240
- 46,
241
- 144,
242
- 46,
243
- 42,
244
- 79,
245
- 22,
246
- 157,
247
- 123,
248
- 21,
249
- 242,
250
- 192,
251
- 146,
252
- 1,
253
- 78,
254
- 88,
255
- 59,
256
- 102,
257
- 9,
258
- 190,
259
- 226,
260
- 92,
261
- 189,
262
- 187,
263
- 232,
264
- 83,
265
- 220
266
- ]
267
- }
268
- }
269
- },
270
- {
271
- "name": "systemProgram",
272
- "address": "11111111111111111111111111111111"
273
- },
274
- {
275
- "name": "associatedTokenProgram",
276
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
277
- },
278
- {
279
- "name": "depositTokenProgram"
280
- }
281
- ],
282
- "args": []
283
- },
284
41
  {
285
42
  "name": "checkAndUpdateTransferTracker",
286
43
  "discriminator": [
@@ -2517,12 +2274,6 @@ export type GlamProtocol = {
2517
2274
  },
2518
2275
  {
2519
2276
  "name": "oracleConfigs"
2520
- },
2521
- {
2522
- "name": "reduceOnly"
2523
- },
2524
- {
2525
- "name": "anyLst"
2526
2277
  }
2527
2278
  ]
2528
2279
  }
@@ -3414,18 +3165,6 @@ export type GlamProtocol = {
3414
3165
  }
3415
3166
  }
3416
3167
  },
3417
- {
3418
- "name": "reduceOnly",
3419
- "type": {
3420
- "option": "bool"
3421
- }
3422
- },
3423
- {
3424
- "name": "anyLst",
3425
- "type": {
3426
- "option": "bool"
3427
- }
3428
- },
3429
3168
  {
3430
3169
  "name": "timelockDuration",
3431
3170
  "type": {
@@ -3455,16 +3194,6 @@ export type GlamProtocol = {
3455
3194
  }
3456
3195
  }
3457
3196
  }
3458
- },
3459
- {
3460
- "name": "feeStructure",
3461
- "type": {
3462
- "option": {
3463
- "defined": {
3464
- "name": "feeStructure"
3465
- }
3466
- }
3467
- }
3468
3197
  }
3469
3198
  ]
3470
3199
  }