@glamsystems/glam-sdk 1.0.13 → 1.0.14-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/README.md +1 -1
- package/index.cjs.js +14542 -21898
- package/index.esm.js +14521 -21841
- package/package.json +2 -2
- package/src/assets.d.ts +6 -15
- package/src/client/base.d.ts +24 -5
- package/src/client/bridge.d.ts +184 -0
- package/src/client/bridgeRegistry.d.ts +32 -0
- package/src/client/epi.d.ts +78 -0
- package/src/client/fees.d.ts +1 -0
- package/src/client/jupiter.d.ts +22 -18
- package/src/client/price.d.ts +13 -37
- package/src/client.d.ts +6 -5
- package/src/constants.d.ts +5 -7
- package/src/deser/index.d.ts +0 -1
- package/src/deser/integrationPolicies.d.ts +23 -20
- package/src/error.d.ts +2 -1
- package/src/glamExports.d.ts +2423 -1787
- package/src/globalConfig.d.ts +22 -0
- package/src/index.d.ts +3 -1
- package/src/react/glam.d.ts +0 -4
- package/src/react/query-keys.d.ts +1 -3
- package/src/utils/accounts.d.ts +4 -1
- package/src/utils/common.d.ts +2 -0
- package/src/utils/index.d.ts +0 -1
- package/src/utils/positionCategorizer.d.ts +3 -21
- package/target/idl/ext_cctp.json +1 -1
- package/target/idl/ext_kamino-staging.json +1 -1
- package/target/idl/ext_kamino.json +109 -1
- package/target/idl/ext_spl-staging.json +1 -1
- package/target/idl/ext_spl.json +1 -1
- package/target/idl/glam_config.json +75 -9
- package/target/idl/glam_mint.json +205 -11
- package/target/idl/glam_policies.json +2 -7
- package/target/idl/glam_protocol-staging.json +118 -522
- package/target/idl/glam_protocol.json +204 -121
- package/target/types/ext_bridge.d.ts +2397 -0
- package/target/types/ext_cctp.d.ts +1 -1
- package/target/types/ext_cctp.ts +1 -1
- package/target/types/ext_epi.d.ts +2175 -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_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/glam_config.d.ts +75 -9
- package/target/types/glam_config.ts +75 -9
- package/target/types/glam_mint.d.ts +205 -11
- package/target/types/glam_mint.ts +205 -11
- package/target/types/glam_policies.ts +2 -7
- package/target/types/glam_protocol-staging.ts +118 -522
- package/target/types/glam_protocol.d.ts +204 -121
- package/target/types/glam_protocol.ts +204 -121
- package/src/client/drift/index.d.ts +0 -2
- package/src/client/drift/protocol-v2.d.ts +0 -130
- package/src/client/drift/vaults.d.ts +0 -60
- package/src/deser/driftLayouts.d.ts +0 -217
- 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
- package/target/idl/ext_drift-staging.json +0 -5442
- package/target/idl/ext_drift.json +0 -4962
- package/target/types/ext_drift-staging.ts +0 -5448
- package/target/types/ext_drift.d.ts +0 -4968
- package/target/types/ext_drift.ts +0 -4968
- package/target/types/ext_offchain.d.ts +0 -1074
|
@@ -8,7 +8,7 @@ export type GlamProtocol = {
|
|
|
8
8
|
"address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz",
|
|
9
9
|
"metadata": {
|
|
10
10
|
"name": "glamProtocol",
|
|
11
|
-
"version": "1.0.
|
|
11
|
+
"version": "1.0.4",
|
|
12
12
|
"spec": "0.1.0",
|
|
13
13
|
"description": "Glam Protocol"
|
|
14
14
|
},
|
|
@@ -63,324 +63,6 @@ export type GlamProtocol = {
|
|
|
63
63
|
],
|
|
64
64
|
"args": []
|
|
65
65
|
},
|
|
66
|
-
{
|
|
67
|
-
"name": "chargeProtocolFee",
|
|
68
|
-
"discriminator": [
|
|
69
|
-
48,
|
|
70
|
-
225,
|
|
71
|
-
89,
|
|
72
|
-
103,
|
|
73
|
-
48,
|
|
74
|
-
65,
|
|
75
|
-
183,
|
|
76
|
-
238
|
|
77
|
-
],
|
|
78
|
-
"accounts": [
|
|
79
|
-
{
|
|
80
|
-
"name": "glamState",
|
|
81
|
-
"writable": true
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"name": "glamVault",
|
|
85
|
-
"writable": true,
|
|
86
|
-
"pda": {
|
|
87
|
-
"seeds": [
|
|
88
|
-
{
|
|
89
|
-
"kind": "const",
|
|
90
|
-
"value": [
|
|
91
|
-
118,
|
|
92
|
-
97,
|
|
93
|
-
117,
|
|
94
|
-
108,
|
|
95
|
-
116
|
|
96
|
-
]
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"kind": "account",
|
|
100
|
-
"path": "glamState"
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"name": "signer",
|
|
107
|
-
"writable": true,
|
|
108
|
-
"signer": true
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"name": "depositAsset"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"name": "vaultDepositAta",
|
|
115
|
-
"writable": true,
|
|
116
|
-
"pda": {
|
|
117
|
-
"seeds": [
|
|
118
|
-
{
|
|
119
|
-
"kind": "account",
|
|
120
|
-
"path": "glamVault"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"kind": "account",
|
|
124
|
-
"path": "depositTokenProgram"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"kind": "account",
|
|
128
|
-
"path": "depositAsset"
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
"program": {
|
|
132
|
-
"kind": "const",
|
|
133
|
-
"value": [
|
|
134
|
-
140,
|
|
135
|
-
151,
|
|
136
|
-
37,
|
|
137
|
-
143,
|
|
138
|
-
78,
|
|
139
|
-
36,
|
|
140
|
-
137,
|
|
141
|
-
241,
|
|
142
|
-
187,
|
|
143
|
-
61,
|
|
144
|
-
16,
|
|
145
|
-
41,
|
|
146
|
-
20,
|
|
147
|
-
142,
|
|
148
|
-
13,
|
|
149
|
-
131,
|
|
150
|
-
11,
|
|
151
|
-
90,
|
|
152
|
-
19,
|
|
153
|
-
153,
|
|
154
|
-
218,
|
|
155
|
-
255,
|
|
156
|
-
16,
|
|
157
|
-
132,
|
|
158
|
-
4,
|
|
159
|
-
142,
|
|
160
|
-
123,
|
|
161
|
-
216,
|
|
162
|
-
219,
|
|
163
|
-
233,
|
|
164
|
-
248,
|
|
165
|
-
89
|
|
166
|
-
]
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"name": "protocolFeeAuthority"
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"name": "protocolFeeAuthorityAta",
|
|
175
|
-
"writable": true,
|
|
176
|
-
"pda": {
|
|
177
|
-
"seeds": [
|
|
178
|
-
{
|
|
179
|
-
"kind": "account",
|
|
180
|
-
"path": "protocolFeeAuthority"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"kind": "account",
|
|
184
|
-
"path": "depositTokenProgram"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"kind": "account",
|
|
188
|
-
"path": "depositAsset"
|
|
189
|
-
}
|
|
190
|
-
],
|
|
191
|
-
"program": {
|
|
192
|
-
"kind": "const",
|
|
193
|
-
"value": [
|
|
194
|
-
140,
|
|
195
|
-
151,
|
|
196
|
-
37,
|
|
197
|
-
143,
|
|
198
|
-
78,
|
|
199
|
-
36,
|
|
200
|
-
137,
|
|
201
|
-
241,
|
|
202
|
-
187,
|
|
203
|
-
61,
|
|
204
|
-
16,
|
|
205
|
-
41,
|
|
206
|
-
20,
|
|
207
|
-
142,
|
|
208
|
-
13,
|
|
209
|
-
131,
|
|
210
|
-
11,
|
|
211
|
-
90,
|
|
212
|
-
19,
|
|
213
|
-
153,
|
|
214
|
-
218,
|
|
215
|
-
255,
|
|
216
|
-
16,
|
|
217
|
-
132,
|
|
218
|
-
4,
|
|
219
|
-
142,
|
|
220
|
-
123,
|
|
221
|
-
216,
|
|
222
|
-
219,
|
|
223
|
-
233,
|
|
224
|
-
248,
|
|
225
|
-
89
|
|
226
|
-
]
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"name": "glamConfig",
|
|
232
|
-
"pda": {
|
|
233
|
-
"seeds": [
|
|
234
|
-
{
|
|
235
|
-
"kind": "const",
|
|
236
|
-
"value": [
|
|
237
|
-
103,
|
|
238
|
-
108,
|
|
239
|
-
111,
|
|
240
|
-
98,
|
|
241
|
-
97,
|
|
242
|
-
108,
|
|
243
|
-
45,
|
|
244
|
-
99,
|
|
245
|
-
111,
|
|
246
|
-
110,
|
|
247
|
-
102,
|
|
248
|
-
105,
|
|
249
|
-
103
|
|
250
|
-
]
|
|
251
|
-
}
|
|
252
|
-
],
|
|
253
|
-
"program": {
|
|
254
|
-
"kind": "const",
|
|
255
|
-
"value": [
|
|
256
|
-
10,
|
|
257
|
-
11,
|
|
258
|
-
0,
|
|
259
|
-
83,
|
|
260
|
-
72,
|
|
261
|
-
16,
|
|
262
|
-
46,
|
|
263
|
-
144,
|
|
264
|
-
46,
|
|
265
|
-
42,
|
|
266
|
-
79,
|
|
267
|
-
22,
|
|
268
|
-
157,
|
|
269
|
-
123,
|
|
270
|
-
21,
|
|
271
|
-
242,
|
|
272
|
-
192,
|
|
273
|
-
146,
|
|
274
|
-
1,
|
|
275
|
-
78,
|
|
276
|
-
88,
|
|
277
|
-
59,
|
|
278
|
-
102,
|
|
279
|
-
9,
|
|
280
|
-
190,
|
|
281
|
-
226,
|
|
282
|
-
92,
|
|
283
|
-
189,
|
|
284
|
-
187,
|
|
285
|
-
232,
|
|
286
|
-
83,
|
|
287
|
-
220
|
|
288
|
-
]
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
},
|
|
292
|
-
{
|
|
293
|
-
"name": "systemProgram",
|
|
294
|
-
"address": "11111111111111111111111111111111"
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
"name": "associatedTokenProgram",
|
|
298
|
-
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
"name": "depositTokenProgram"
|
|
302
|
-
}
|
|
303
|
-
],
|
|
304
|
-
"args": []
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"name": "checkAndUpdateTransferTracker",
|
|
308
|
-
"discriminator": [
|
|
309
|
-
180,
|
|
310
|
-
225,
|
|
311
|
-
201,
|
|
312
|
-
123,
|
|
313
|
-
192,
|
|
314
|
-
30,
|
|
315
|
-
178,
|
|
316
|
-
195
|
|
317
|
-
],
|
|
318
|
-
"accounts": [
|
|
319
|
-
{
|
|
320
|
-
"name": "glamState"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
"name": "glamSigner",
|
|
324
|
-
"writable": true,
|
|
325
|
-
"signer": true
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"name": "transferTracker",
|
|
329
|
-
"writable": true,
|
|
330
|
-
"pda": {
|
|
331
|
-
"seeds": [
|
|
332
|
-
{
|
|
333
|
-
"kind": "const",
|
|
334
|
-
"value": [
|
|
335
|
-
116,
|
|
336
|
-
114,
|
|
337
|
-
97,
|
|
338
|
-
110,
|
|
339
|
-
115,
|
|
340
|
-
102,
|
|
341
|
-
101,
|
|
342
|
-
114,
|
|
343
|
-
45,
|
|
344
|
-
116,
|
|
345
|
-
114,
|
|
346
|
-
97,
|
|
347
|
-
99,
|
|
348
|
-
107,
|
|
349
|
-
101,
|
|
350
|
-
114
|
|
351
|
-
]
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
"kind": "account",
|
|
355
|
-
"path": "glamState"
|
|
356
|
-
},
|
|
357
|
-
{
|
|
358
|
-
"kind": "account",
|
|
359
|
-
"path": "glamSigner"
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
"kind": "arg",
|
|
363
|
-
"path": "mint"
|
|
364
|
-
}
|
|
365
|
-
]
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
"name": "systemProgram",
|
|
370
|
-
"address": "11111111111111111111111111111111"
|
|
371
|
-
}
|
|
372
|
-
],
|
|
373
|
-
"args": [
|
|
374
|
-
{
|
|
375
|
-
"name": "mint",
|
|
376
|
-
"type": "pubkey"
|
|
377
|
-
},
|
|
378
|
-
{
|
|
379
|
-
"name": "amount",
|
|
380
|
-
"type": "u64"
|
|
381
|
-
}
|
|
382
|
-
]
|
|
383
|
-
},
|
|
384
66
|
{
|
|
385
67
|
"name": "closeState",
|
|
386
68
|
"discriminator": [
|
|
@@ -766,6 +448,70 @@ export type GlamProtocol = {
|
|
|
766
448
|
243,
|
|
767
449
|
18
|
|
768
450
|
],
|
|
451
|
+
"accounts": [
|
|
452
|
+
{
|
|
453
|
+
"name": "glamState",
|
|
454
|
+
"writable": true
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "glamVault",
|
|
458
|
+
"writable": true,
|
|
459
|
+
"pda": {
|
|
460
|
+
"seeds": [
|
|
461
|
+
{
|
|
462
|
+
"kind": "const",
|
|
463
|
+
"value": [
|
|
464
|
+
118,
|
|
465
|
+
97,
|
|
466
|
+
117,
|
|
467
|
+
108,
|
|
468
|
+
116
|
|
469
|
+
]
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"kind": "account",
|
|
473
|
+
"path": "glamState"
|
|
474
|
+
}
|
|
475
|
+
]
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"name": "glamSigner",
|
|
480
|
+
"writable": true,
|
|
481
|
+
"signer": true
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "cpiProgram",
|
|
485
|
+
"address": "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"name": "inputStakePool",
|
|
489
|
+
"optional": true
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "outputStakePool",
|
|
493
|
+
"optional": true
|
|
494
|
+
}
|
|
495
|
+
],
|
|
496
|
+
"args": [
|
|
497
|
+
{
|
|
498
|
+
"name": "data",
|
|
499
|
+
"type": "bytes"
|
|
500
|
+
}
|
|
501
|
+
]
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"name": "jupiterSwapV2",
|
|
505
|
+
"discriminator": [
|
|
506
|
+
28,
|
|
507
|
+
155,
|
|
508
|
+
14,
|
|
509
|
+
63,
|
|
510
|
+
87,
|
|
511
|
+
96,
|
|
512
|
+
62,
|
|
513
|
+
221
|
|
514
|
+
],
|
|
769
515
|
"accounts": [
|
|
770
516
|
{
|
|
771
517
|
"name": "glamState",
|
|
@@ -887,6 +633,10 @@ export type GlamProtocol = {
|
|
|
887
633
|
}
|
|
888
634
|
],
|
|
889
635
|
"args": [
|
|
636
|
+
{
|
|
637
|
+
"name": "skipQuotePriceCheck",
|
|
638
|
+
"type": "bool"
|
|
639
|
+
},
|
|
890
640
|
{
|
|
891
641
|
"name": "data",
|
|
892
642
|
"type": "bytes"
|
|
@@ -1064,40 +814,6 @@ export type GlamProtocol = {
|
|
|
1064
814
|
}
|
|
1065
815
|
]
|
|
1066
816
|
},
|
|
1067
|
-
{
|
|
1068
|
-
"name": "setTransferRateLimitPolicy",
|
|
1069
|
-
"discriminator": [
|
|
1070
|
-
27,
|
|
1071
|
-
40,
|
|
1072
|
-
234,
|
|
1073
|
-
194,
|
|
1074
|
-
151,
|
|
1075
|
-
218,
|
|
1076
|
-
55,
|
|
1077
|
-
203
|
|
1078
|
-
],
|
|
1079
|
-
"accounts": [
|
|
1080
|
-
{
|
|
1081
|
-
"name": "glamState",
|
|
1082
|
-
"writable": true
|
|
1083
|
-
},
|
|
1084
|
-
{
|
|
1085
|
-
"name": "glamSigner",
|
|
1086
|
-
"writable": true,
|
|
1087
|
-
"signer": true
|
|
1088
|
-
}
|
|
1089
|
-
],
|
|
1090
|
-
"args": [
|
|
1091
|
-
{
|
|
1092
|
-
"name": "policy",
|
|
1093
|
-
"type": {
|
|
1094
|
-
"defined": {
|
|
1095
|
-
"name": "transferRateLimitPolicy"
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
]
|
|
1100
|
-
},
|
|
1101
817
|
{
|
|
1102
818
|
"name": "stakeAuthorize",
|
|
1103
819
|
"discriminator": [
|
|
@@ -1953,19 +1669,6 @@ export type GlamProtocol = {
|
|
|
1953
1669
|
249,
|
|
1954
1670
|
103
|
|
1955
1671
|
]
|
|
1956
|
-
},
|
|
1957
|
-
{
|
|
1958
|
-
"name": "transferTracker",
|
|
1959
|
-
"discriminator": [
|
|
1960
|
-
153,
|
|
1961
|
-
136,
|
|
1962
|
-
2,
|
|
1963
|
-
106,
|
|
1964
|
-
24,
|
|
1965
|
-
146,
|
|
1966
|
-
147,
|
|
1967
|
-
60
|
|
1968
|
-
]
|
|
1969
1672
|
}
|
|
1970
1673
|
],
|
|
1971
1674
|
"errors": [
|
|
@@ -2021,8 +1724,8 @@ export type GlamProtocol = {
|
|
|
2021
1724
|
},
|
|
2022
1725
|
{
|
|
2023
1726
|
"code": 48010,
|
|
2024
|
-
"name": "
|
|
2025
|
-
"msg": "Account
|
|
1727
|
+
"name": "unexpectedProgramOwner",
|
|
1728
|
+
"msg": "Account is owned by an unexpected program"
|
|
2026
1729
|
},
|
|
2027
1730
|
{
|
|
2028
1731
|
"code": 48011,
|
|
@@ -2051,8 +1754,8 @@ export type GlamProtocol = {
|
|
|
2051
1754
|
},
|
|
2052
1755
|
{
|
|
2053
1756
|
"code": 49004,
|
|
2054
|
-
"name": "
|
|
2055
|
-
"msg": "
|
|
1757
|
+
"name": "invalidAssetsLen",
|
|
1758
|
+
"msg": "Too many assets: max 100"
|
|
2056
1759
|
},
|
|
2057
1760
|
{
|
|
2058
1761
|
"code": 49005,
|
|
@@ -2111,13 +1814,8 @@ export type GlamProtocol = {
|
|
|
2111
1814
|
},
|
|
2112
1815
|
{
|
|
2113
1816
|
"code": 49016,
|
|
2114
|
-
"name": "
|
|
2115
|
-
"msg": "
|
|
2116
|
-
},
|
|
2117
|
-
{
|
|
2118
|
-
"code": 49017,
|
|
2119
|
-
"name": "delegateAclLimitExceeded",
|
|
2120
|
-
"msg": "Delegate ACL limit exceeded"
|
|
1817
|
+
"name": "staleDriftInterest",
|
|
1818
|
+
"msg": "Drift spot market cumulative interest is stale"
|
|
2121
1819
|
},
|
|
2122
1820
|
{
|
|
2123
1821
|
"code": 49018,
|
|
@@ -2169,6 +1867,11 @@ export type GlamProtocol = {
|
|
|
2169
1867
|
"name": "multipleStakeAccountsDisallowed",
|
|
2170
1868
|
"msg": "Multiple stake accounts disallowed"
|
|
2171
1869
|
},
|
|
1870
|
+
{
|
|
1871
|
+
"code": 50008,
|
|
1872
|
+
"name": "maxDeviationExceeded",
|
|
1873
|
+
"msg": "Max deviation exceeded"
|
|
1874
|
+
},
|
|
2172
1875
|
{
|
|
2173
1876
|
"code": 51000,
|
|
2174
1877
|
"name": "invalidAssetPrice",
|
|
@@ -2207,7 +1910,7 @@ export type GlamProtocol = {
|
|
|
2207
1910
|
{
|
|
2208
1911
|
"code": 51105,
|
|
2209
1912
|
"name": "priceDivergenceTooLarge",
|
|
2210
|
-
"msg": "
|
|
1913
|
+
"msg": "No priced assets found"
|
|
2211
1914
|
},
|
|
2212
1915
|
{
|
|
2213
1916
|
"code": 51106,
|
|
@@ -2216,18 +1919,18 @@ export type GlamProtocol = {
|
|
|
2216
1919
|
},
|
|
2217
1920
|
{
|
|
2218
1921
|
"code": 51107,
|
|
2219
|
-
"name": "
|
|
2220
|
-
"msg": "
|
|
1922
|
+
"name": "mathError",
|
|
1923
|
+
"msg": "Math error"
|
|
2221
1924
|
},
|
|
2222
1925
|
{
|
|
2223
1926
|
"code": 51108,
|
|
2224
|
-
"name": "
|
|
2225
|
-
"msg": "
|
|
1927
|
+
"name": "typeCastingError",
|
|
1928
|
+
"msg": "Type casting error"
|
|
2226
1929
|
},
|
|
2227
1930
|
{
|
|
2228
1931
|
"code": 51109,
|
|
2229
|
-
"name": "
|
|
2230
|
-
"msg": "
|
|
1932
|
+
"name": "baseAssetNotSupported",
|
|
1933
|
+
"msg": "Base asset must have 6 decimals."
|
|
2231
1934
|
},
|
|
2232
1935
|
{
|
|
2233
1936
|
"code": 51110,
|
|
@@ -2246,8 +1949,8 @@ export type GlamProtocol = {
|
|
|
2246
1949
|
},
|
|
2247
1950
|
{
|
|
2248
1951
|
"code": 51113,
|
|
2249
|
-
"name": "
|
|
2250
|
-
"msg": "
|
|
1952
|
+
"name": "unexpectedDiscriminator",
|
|
1953
|
+
"msg": "Invalid account: discriminator mismatch"
|
|
2251
1954
|
},
|
|
2252
1955
|
{
|
|
2253
1956
|
"code": 51114,
|
|
@@ -2259,6 +1962,11 @@ export type GlamProtocol = {
|
|
|
2259
1962
|
"name": "oraclePriceSuspended",
|
|
2260
1963
|
"msg": "Oracle price is suspended"
|
|
2261
1964
|
},
|
|
1965
|
+
{
|
|
1966
|
+
"code": 51116,
|
|
1967
|
+
"name": "assetNotInPricingSet",
|
|
1968
|
+
"msg": "Asset not in pricing set"
|
|
1969
|
+
},
|
|
2262
1970
|
{
|
|
2263
1971
|
"code": 50100,
|
|
2264
1972
|
"name": "transferRateLimitExceeded",
|
|
@@ -2288,6 +1996,16 @@ export type GlamProtocol = {
|
|
|
2288
1996
|
"code": 52003,
|
|
2289
1997
|
"name": "lockUp",
|
|
2290
1998
|
"msg": "Policy violation: lock-up has not expired"
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
"code": 52004,
|
|
2002
|
+
"name": "policyNotSet",
|
|
2003
|
+
"msg": "Protocol policy not set"
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
"code": 52005,
|
|
2007
|
+
"name": "unsupportedOracleSource",
|
|
2008
|
+
"msg": "Oracle source not supported in this context"
|
|
2291
2009
|
}
|
|
2292
2010
|
],
|
|
2293
2011
|
"types": [
|
|
@@ -2377,30 +2095,6 @@ export type GlamProtocol = {
|
|
|
2377
2095
|
]
|
|
2378
2096
|
}
|
|
2379
2097
|
},
|
|
2380
|
-
{
|
|
2381
|
-
"name": "assetRateLimit",
|
|
2382
|
-
"type": {
|
|
2383
|
-
"kind": "struct",
|
|
2384
|
-
"fields": [
|
|
2385
|
-
{
|
|
2386
|
-
"name": "mint",
|
|
2387
|
-
"type": "pubkey"
|
|
2388
|
-
},
|
|
2389
|
-
{
|
|
2390
|
-
"name": "periodType",
|
|
2391
|
-
"type": {
|
|
2392
|
-
"defined": {
|
|
2393
|
-
"name": "periodType"
|
|
2394
|
-
}
|
|
2395
|
-
}
|
|
2396
|
-
},
|
|
2397
|
-
{
|
|
2398
|
-
"name": "amount",
|
|
2399
|
-
"type": "u64"
|
|
2400
|
-
}
|
|
2401
|
-
]
|
|
2402
|
-
}
|
|
2403
|
-
},
|
|
2404
2098
|
{
|
|
2405
2099
|
"name": "createdModel",
|
|
2406
2100
|
"type": {
|
|
@@ -2452,28 +2146,6 @@ export type GlamProtocol = {
|
|
|
2452
2146
|
]
|
|
2453
2147
|
}
|
|
2454
2148
|
},
|
|
2455
|
-
{
|
|
2456
|
-
"name": "delegateRateLimit",
|
|
2457
|
-
"type": {
|
|
2458
|
-
"kind": "struct",
|
|
2459
|
-
"fields": [
|
|
2460
|
-
{
|
|
2461
|
-
"name": "delegate",
|
|
2462
|
-
"type": "pubkey"
|
|
2463
|
-
},
|
|
2464
|
-
{
|
|
2465
|
-
"name": "limits",
|
|
2466
|
-
"type": {
|
|
2467
|
-
"vec": {
|
|
2468
|
-
"defined": {
|
|
2469
|
-
"name": "assetRateLimit"
|
|
2470
|
-
}
|
|
2471
|
-
}
|
|
2472
|
-
}
|
|
2473
|
-
}
|
|
2474
|
-
]
|
|
2475
|
-
}
|
|
2476
|
-
},
|
|
2477
2149
|
{
|
|
2478
2150
|
"name": "emergencyAccessUpdateArgs",
|
|
2479
2151
|
"type": {
|
|
@@ -2982,6 +2654,10 @@ export type GlamProtocol = {
|
|
|
2982
2654
|
"vec": "pubkey"
|
|
2983
2655
|
}
|
|
2984
2656
|
}
|
|
2657
|
+
},
|
|
2658
|
+
{
|
|
2659
|
+
"name": "maxDeviationBps",
|
|
2660
|
+
"type": "i16"
|
|
2985
2661
|
}
|
|
2986
2662
|
]
|
|
2987
2663
|
}
|
|
@@ -3144,26 +2820,6 @@ export type GlamProtocol = {
|
|
|
3144
2820
|
]
|
|
3145
2821
|
}
|
|
3146
2822
|
},
|
|
3147
|
-
{
|
|
3148
|
-
"name": "periodType",
|
|
3149
|
-
"repr": {
|
|
3150
|
-
"kind": "rust"
|
|
3151
|
-
},
|
|
3152
|
-
"type": {
|
|
3153
|
-
"kind": "enum",
|
|
3154
|
-
"variants": [
|
|
3155
|
-
{
|
|
3156
|
-
"name": "day"
|
|
3157
|
-
},
|
|
3158
|
-
{
|
|
3159
|
-
"name": "week"
|
|
3160
|
-
},
|
|
3161
|
-
{
|
|
3162
|
-
"name": "month"
|
|
3163
|
-
}
|
|
3164
|
-
]
|
|
3165
|
-
}
|
|
3166
|
-
},
|
|
3167
2823
|
{
|
|
3168
2824
|
"name": "pricedProtocol",
|
|
3169
2825
|
"type": {
|
|
@@ -3531,66 +3187,6 @@ export type GlamProtocol = {
|
|
|
3531
3187
|
]
|
|
3532
3188
|
}
|
|
3533
3189
|
},
|
|
3534
|
-
{
|
|
3535
|
-
"name": "transferRateLimitPolicy",
|
|
3536
|
-
"type": {
|
|
3537
|
-
"kind": "struct",
|
|
3538
|
-
"fields": [
|
|
3539
|
-
{
|
|
3540
|
-
"name": "vaultDefaults",
|
|
3541
|
-
"type": {
|
|
3542
|
-
"vec": {
|
|
3543
|
-
"defined": {
|
|
3544
|
-
"name": "assetRateLimit"
|
|
3545
|
-
}
|
|
3546
|
-
}
|
|
3547
|
-
}
|
|
3548
|
-
},
|
|
3549
|
-
{
|
|
3550
|
-
"name": "delegateOverrides",
|
|
3551
|
-
"type": {
|
|
3552
|
-
"vec": {
|
|
3553
|
-
"defined": {
|
|
3554
|
-
"name": "delegateRateLimit"
|
|
3555
|
-
}
|
|
3556
|
-
}
|
|
3557
|
-
}
|
|
3558
|
-
}
|
|
3559
|
-
]
|
|
3560
|
-
}
|
|
3561
|
-
},
|
|
3562
|
-
{
|
|
3563
|
-
"name": "transferTracker",
|
|
3564
|
-
"type": {
|
|
3565
|
-
"kind": "struct",
|
|
3566
|
-
"fields": [
|
|
3567
|
-
{
|
|
3568
|
-
"name": "vault",
|
|
3569
|
-
"type": "pubkey"
|
|
3570
|
-
},
|
|
3571
|
-
{
|
|
3572
|
-
"name": "signer",
|
|
3573
|
-
"type": "pubkey"
|
|
3574
|
-
},
|
|
3575
|
-
{
|
|
3576
|
-
"name": "mint",
|
|
3577
|
-
"type": "pubkey"
|
|
3578
|
-
},
|
|
3579
|
-
{
|
|
3580
|
-
"name": "periodStart",
|
|
3581
|
-
"type": "i64"
|
|
3582
|
-
},
|
|
3583
|
-
{
|
|
3584
|
-
"name": "amountTransferred",
|
|
3585
|
-
"type": "u64"
|
|
3586
|
-
},
|
|
3587
|
-
{
|
|
3588
|
-
"name": "bump",
|
|
3589
|
-
"type": "u8"
|
|
3590
|
-
}
|
|
3591
|
-
]
|
|
3592
|
-
}
|
|
3593
|
-
},
|
|
3594
3190
|
{
|
|
3595
3191
|
"name": "valuationModel",
|
|
3596
3192
|
"type": {
|
|
@@ -3612,6 +3208,16 @@ export type GlamProtocol = {
|
|
|
3612
3208
|
"type": "u16",
|
|
3613
3209
|
"value": "4"
|
|
3614
3210
|
},
|
|
3211
|
+
{
|
|
3212
|
+
"name": "protoJupiterSwapPermSkipQuotePriceCheck",
|
|
3213
|
+
"type": "u64",
|
|
3214
|
+
"value": "32"
|
|
3215
|
+
},
|
|
3216
|
+
{
|
|
3217
|
+
"name": "protoJupiterSwapPermSkipQuotePriceCheckLimited",
|
|
3218
|
+
"type": "u64",
|
|
3219
|
+
"value": "16"
|
|
3220
|
+
},
|
|
3615
3221
|
{
|
|
3616
3222
|
"name": "protoJupiterSwapPermSwapAllowlisted",
|
|
3617
3223
|
"type": "u64",
|
|
@@ -3652,11 +3258,6 @@ export type GlamProtocol = {
|
|
|
3652
3258
|
"type": "u16",
|
|
3653
3259
|
"value": "1"
|
|
3654
3260
|
},
|
|
3655
|
-
{
|
|
3656
|
-
"name": "protoSystemPermEmergencyUpdate",
|
|
3657
|
-
"type": "u64",
|
|
3658
|
-
"value": "4"
|
|
3659
|
-
},
|
|
3660
3261
|
{
|
|
3661
3262
|
"name": "protoSystemPermTransfer",
|
|
3662
3263
|
"type": "u64",
|
|
@@ -3666,11 +3267,6 @@ export type GlamProtocol = {
|
|
|
3666
3267
|
"name": "protoSystemPermWsol",
|
|
3667
3268
|
"type": "u64",
|
|
3668
3269
|
"value": "1"
|
|
3669
|
-
},
|
|
3670
|
-
{
|
|
3671
|
-
"name": "protoTransferLimit",
|
|
3672
|
-
"type": "u16",
|
|
3673
|
-
"value": "8"
|
|
3674
3270
|
}
|
|
3675
3271
|
]
|
|
3676
3272
|
};
|