@glamsystems/glam-sdk 1.0.12-alpha.1 → 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 (53) hide show
  1. package/index.cjs.js +1307 -2196
  2. package/index.esm.js +1305 -2197
  3. package/package.json +1 -1
  4. package/src/client/base.d.ts +1 -1
  5. package/src/client/fees.d.ts +0 -3
  6. package/src/client/jupiter.d.ts +3 -0
  7. package/src/client/kamino/lending.d.ts +6 -0
  8. package/src/client/stake.d.ts +1 -1
  9. package/src/client/state.d.ts +0 -2
  10. package/src/deser/driftLayouts.d.ts +4 -0
  11. package/src/deser/integrationPolicies.d.ts +3 -3
  12. package/src/error.d.ts +23 -2
  13. package/src/glamExports.d.ts +29 -0
  14. package/src/models/state.d.ts +0 -4
  15. package/src/react/query-keys.d.ts +1 -0
  16. package/src/utils/transaction.d.ts +5 -2
  17. package/target/idl/ext_cctp.json +0 -6
  18. package/target/idl/ext_drift-staging.json +0 -6
  19. package/target/idl/ext_drift.json +0 -6
  20. package/target/idl/ext_kamino-staging.json +313 -6
  21. package/target/idl/ext_kamino.json +205 -6
  22. package/target/idl/ext_marinade.json +0 -6
  23. package/target/idl/ext_spl-staging.json +0 -6
  24. package/target/idl/ext_spl.json +0 -6
  25. package/target/idl/ext_stake_pool-staging.json +0 -6
  26. package/target/idl/ext_stake_pool.json +0 -6
  27. package/target/idl/glam_mint-staging.json +0 -6
  28. package/target/idl/glam_mint.json +0 -229
  29. package/target/idl/glam_protocol-staging.json +0 -271
  30. package/target/idl/glam_protocol.json +129 -1086
  31. package/target/types/ext_cctp.d.ts +0 -6
  32. package/target/types/ext_cctp.ts +0 -6
  33. package/target/types/ext_drift-staging.ts +0 -6
  34. package/target/types/ext_drift.d.ts +0 -6
  35. package/target/types/ext_drift.ts +0 -6
  36. package/target/types/ext_kamino-staging.ts +313 -6
  37. package/target/types/ext_kamino.d.ts +205 -6
  38. package/target/types/ext_kamino.ts +205 -6
  39. package/target/types/ext_marinade.d.ts +0 -6
  40. package/target/types/ext_marinade.ts +0 -6
  41. package/target/types/ext_offchain.d.ts +0 -6
  42. package/target/types/ext_spl-staging.ts +0 -6
  43. package/target/types/ext_spl.d.ts +0 -6
  44. package/target/types/ext_spl.ts +0 -6
  45. package/target/types/ext_stake_pool-staging.ts +0 -6
  46. package/target/types/ext_stake_pool.d.ts +0 -6
  47. package/target/types/ext_stake_pool.ts +0 -6
  48. package/target/types/glam_mint-staging.ts +0 -6
  49. package/target/types/glam_mint.d.ts +0 -229
  50. package/target/types/glam_mint.ts +0 -229
  51. package/target/types/glam_protocol-staging.ts +0 -271
  52. package/target/types/glam_protocol.d.ts +129 -1086
  53. package/target/types/glam_protocol.ts +128 -1085
@@ -32,249 +32,6 @@
32
32
  ],
33
33
  "args": []
34
34
  },
35
- {
36
- "name": "charge_protocol_fee",
37
- "docs": [
38
- "Charges protocol base fee on non-tokenized vaults"
39
- ],
40
- "discriminator": [
41
- 48,
42
- 225,
43
- 89,
44
- 103,
45
- 48,
46
- 65,
47
- 183,
48
- 238
49
- ],
50
- "accounts": [
51
- {
52
- "name": "glam_state",
53
- "writable": true
54
- },
55
- {
56
- "name": "glam_vault",
57
- "writable": true,
58
- "pda": {
59
- "seeds": [
60
- {
61
- "kind": "const",
62
- "value": [
63
- 118,
64
- 97,
65
- 117,
66
- 108,
67
- 116
68
- ]
69
- },
70
- {
71
- "kind": "account",
72
- "path": "glam_state"
73
- }
74
- ]
75
- }
76
- },
77
- {
78
- "name": "signer",
79
- "writable": true,
80
- "signer": true
81
- },
82
- {
83
- "name": "deposit_asset"
84
- },
85
- {
86
- "name": "vault_deposit_ata",
87
- "writable": true,
88
- "pda": {
89
- "seeds": [
90
- {
91
- "kind": "account",
92
- "path": "glam_vault"
93
- },
94
- {
95
- "kind": "account",
96
- "path": "deposit_token_program"
97
- },
98
- {
99
- "kind": "account",
100
- "path": "deposit_asset"
101
- }
102
- ],
103
- "program": {
104
- "kind": "const",
105
- "value": [
106
- 140,
107
- 151,
108
- 37,
109
- 143,
110
- 78,
111
- 36,
112
- 137,
113
- 241,
114
- 187,
115
- 61,
116
- 16,
117
- 41,
118
- 20,
119
- 142,
120
- 13,
121
- 131,
122
- 11,
123
- 90,
124
- 19,
125
- 153,
126
- 218,
127
- 255,
128
- 16,
129
- 132,
130
- 4,
131
- 142,
132
- 123,
133
- 216,
134
- 219,
135
- 233,
136
- 248,
137
- 89
138
- ]
139
- }
140
- }
141
- },
142
- {
143
- "name": "protocol_fee_authority"
144
- },
145
- {
146
- "name": "protocol_fee_authority_ata",
147
- "writable": true,
148
- "pda": {
149
- "seeds": [
150
- {
151
- "kind": "account",
152
- "path": "protocol_fee_authority"
153
- },
154
- {
155
- "kind": "account",
156
- "path": "deposit_token_program"
157
- },
158
- {
159
- "kind": "account",
160
- "path": "deposit_asset"
161
- }
162
- ],
163
- "program": {
164
- "kind": "const",
165
- "value": [
166
- 140,
167
- 151,
168
- 37,
169
- 143,
170
- 78,
171
- 36,
172
- 137,
173
- 241,
174
- 187,
175
- 61,
176
- 16,
177
- 41,
178
- 20,
179
- 142,
180
- 13,
181
- 131,
182
- 11,
183
- 90,
184
- 19,
185
- 153,
186
- 218,
187
- 255,
188
- 16,
189
- 132,
190
- 4,
191
- 142,
192
- 123,
193
- 216,
194
- 219,
195
- 233,
196
- 248,
197
- 89
198
- ]
199
- }
200
- }
201
- },
202
- {
203
- "name": "glam_config",
204
- "pda": {
205
- "seeds": [
206
- {
207
- "kind": "const",
208
- "value": [
209
- 103,
210
- 108,
211
- 111,
212
- 98,
213
- 97,
214
- 108,
215
- 45,
216
- 99,
217
- 111,
218
- 110,
219
- 102,
220
- 105,
221
- 103
222
- ]
223
- }
224
- ],
225
- "program": {
226
- "kind": "const",
227
- "value": [
228
- 10,
229
- 11,
230
- 0,
231
- 83,
232
- 72,
233
- 16,
234
- 46,
235
- 144,
236
- 46,
237
- 42,
238
- 79,
239
- 22,
240
- 157,
241
- 123,
242
- 21,
243
- 242,
244
- 192,
245
- 146,
246
- 1,
247
- 78,
248
- 88,
249
- 59,
250
- 102,
251
- 9,
252
- 190,
253
- 226,
254
- 92,
255
- 189,
256
- 187,
257
- 232,
258
- 83,
259
- 220
260
- ]
261
- }
262
- }
263
- },
264
- {
265
- "name": "system_program",
266
- "address": "11111111111111111111111111111111"
267
- },
268
- {
269
- "name": "associated_token_program",
270
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
271
- },
272
- {
273
- "name": "deposit_token_program"
274
- }
275
- ],
276
- "args": []
277
- },
278
35
  {
279
36
  "name": "check_and_update_transfer_tracker",
280
37
  "discriminator": [
@@ -2511,12 +2268,6 @@
2511
2268
  },
2512
2269
  {
2513
2270
  "name": "OracleConfigs"
2514
- },
2515
- {
2516
- "name": "ReduceOnly"
2517
- },
2518
- {
2519
- "name": "AnyLst"
2520
2271
  }
2521
2272
  ]
2522
2273
  }
@@ -3408,18 +3159,6 @@
3408
3159
  }
3409
3160
  }
3410
3161
  },
3411
- {
3412
- "name": "reduce_only",
3413
- "type": {
3414
- "option": "bool"
3415
- }
3416
- },
3417
- {
3418
- "name": "any_lst",
3419
- "type": {
3420
- "option": "bool"
3421
- }
3422
- },
3423
3162
  {
3424
3163
  "name": "timelock_duration",
3425
3164
  "type": {
@@ -3449,16 +3188,6 @@
3449
3188
  }
3450
3189
  }
3451
3190
  }
3452
- },
3453
- {
3454
- "name": "fee_structure",
3455
- "type": {
3456
- "option": {
3457
- "defined": {
3458
- "name": "FeeStructure"
3459
- }
3460
- }
3461
- }
3462
3191
  }
3463
3192
  ]
3464
3193
  }