@glamsystems/glam-sdk 1.0.12-alpha.3 → 1.0.13-test

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 (110) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +1 -1
  3. package/index.cjs.js +1 -57320
  4. package/index.esm.js +1 -57081
  5. package/package.json +26 -15
  6. package/src/assets.d.ts +10 -17
  7. package/src/client/access.d.ts +13 -0
  8. package/src/client/base.d.ts +30 -7
  9. package/src/client/bridge.d.ts +183 -0
  10. package/src/client/bridgeRegistry.d.ts +32 -0
  11. package/src/client/epi.d.ts +78 -0
  12. package/src/client/fees.d.ts +4 -0
  13. package/src/client/invest.d.ts +1 -1
  14. package/src/client/jupiter.d.ts +27 -20
  15. package/src/client/loopscale.d.ts +84 -0
  16. package/src/client/mint.d.ts +54 -1
  17. package/src/client/price.d.ts +26 -39
  18. package/src/client.d.ts +9 -5
  19. package/src/constants.d.ts +11 -7
  20. package/src/deser/index.d.ts +1 -1
  21. package/src/deser/integrationPolicies.d.ts +30 -20
  22. package/src/deser/tokenAclLayouts.d.ts +67 -0
  23. package/src/error.d.ts +2 -1
  24. package/src/glamExports.d.ts +1351 -1546
  25. package/src/globalConfig.d.ts +27 -0
  26. package/src/index.d.ts +5 -1
  27. package/src/models/state.d.ts +2 -0
  28. package/src/utils/accounts.d.ts +9 -1
  29. package/src/utils/bitmask.d.ts +3 -0
  30. package/src/utils/common.d.ts +2 -0
  31. package/src/utils/glamPDAs.d.ts +6 -0
  32. package/src/utils/index.d.ts +0 -1
  33. package/src/utils/pkmap.d.ts +23 -18
  34. package/src/utils/positionCategorizer.d.ts +3 -21
  35. package/target/idl/ext_bridge-staging.json +2379 -0
  36. package/target/idl/ext_bridge.json +2379 -0
  37. package/target/idl/ext_cctp.json +1 -1
  38. package/target/idl/ext_drift.json +1613 -142
  39. package/target/idl/ext_epi-staging.json +2169 -0
  40. package/target/idl/ext_epi.json +2169 -0
  41. package/target/idl/ext_kamino-staging.json +1 -1
  42. package/target/idl/ext_kamino.json +109 -1
  43. package/target/idl/{ext_drift-staging.json → ext_loopscale-staging.json} +986 -1438
  44. package/target/idl/ext_loopscale.json +3541 -0
  45. package/target/idl/ext_marinade-staging.json +1587 -0
  46. package/target/idl/ext_spl-staging.json +1 -1
  47. package/target/idl/ext_spl.json +1 -1
  48. package/target/idl/glam_config.json +78 -9
  49. package/target/idl/glam_mint-staging.json +3002 -1244
  50. package/target/idl/glam_mint.json +239 -8
  51. package/target/idl/glam_policies.json +2 -7
  52. package/target/idl/glam_protocol-staging.json +187 -266
  53. package/target/idl/glam_protocol.json +217 -114
  54. package/target/idl/mock_layerzero_endpoint.json +144 -0
  55. package/target/idl/mock_layerzero_oft.json +155 -0
  56. package/target/types/ext_bridge-staging.d.ts +2385 -0
  57. package/target/types/ext_bridge-staging.ts +2385 -0
  58. package/target/types/ext_bridge.d.ts +2385 -0
  59. package/target/types/ext_bridge.ts +2385 -0
  60. package/target/types/ext_cctp.d.ts +1 -1
  61. package/target/types/ext_cctp.ts +1 -1
  62. package/target/types/ext_drift.d.ts +1609 -138
  63. package/target/types/ext_drift.ts +1613 -142
  64. package/target/types/ext_epi-staging.d.ts +2175 -0
  65. package/target/types/ext_epi-staging.ts +2175 -0
  66. package/target/types/ext_epi.d.ts +2175 -0
  67. package/target/types/ext_epi.ts +2175 -0
  68. package/target/types/ext_kamino-staging.d.ts +3433 -0
  69. package/target/types/ext_kamino-staging.ts +1 -1
  70. package/target/types/ext_kamino.d.ts +109 -1
  71. package/target/types/ext_kamino.ts +109 -1
  72. package/target/types/ext_loopscale-staging.d.ts +3547 -0
  73. package/target/types/{ext_drift-staging.ts → ext_loopscale-staging.ts} +988 -1440
  74. package/target/types/ext_loopscale.d.ts +3547 -0
  75. package/target/types/ext_loopscale.ts +3547 -0
  76. package/target/types/ext_marinade-staging.d.ts +1593 -0
  77. package/target/types/ext_marinade-staging.ts +1593 -0
  78. package/target/types/{ext_offchain.d.ts → ext_spl-staging.d.ts} +219 -19
  79. package/target/types/ext_spl-staging.ts +1 -1
  80. package/target/types/ext_spl.d.ts +1 -1
  81. package/target/types/ext_spl.ts +1 -1
  82. package/target/types/ext_stake_pool-staging.d.ts +1622 -0
  83. package/target/types/glam_config.d.ts +78 -9
  84. package/target/types/glam_config.ts +78 -9
  85. package/target/types/glam_mint-staging.d.ts +7856 -0
  86. package/target/types/glam_mint-staging.ts +3002 -1244
  87. package/target/types/glam_mint.d.ts +239 -8
  88. package/target/types/glam_mint.ts +239 -8
  89. package/target/types/glam_policies.d.ts +477 -0
  90. package/target/types/glam_policies.ts +2 -7
  91. package/target/types/glam_protocol-staging.d.ts +3292 -0
  92. package/target/types/glam_protocol-staging.ts +187 -266
  93. package/target/types/glam_protocol.d.ts +217 -114
  94. package/target/types/glam_protocol.ts +217 -114
  95. package/target/types/mock_layerzero_endpoint.d.ts +150 -0
  96. package/target/types/mock_layerzero_endpoint.ts +150 -0
  97. package/target/types/mock_layerzero_oft.d.ts +161 -0
  98. package/target/types/mock_layerzero_oft.ts +161 -0
  99. package/src/client/drift/index.d.ts +0 -2
  100. package/src/client/drift/protocol-v2.d.ts +0 -93
  101. package/src/client/drift/vaults.d.ts +0 -60
  102. package/src/deser/driftLayouts.d.ts +0 -217
  103. package/src/react/cluster-provider.d.ts +0 -22
  104. package/src/react/glam.d.ts +0 -51
  105. package/src/react/index.d.ts +0 -5
  106. package/src/react/query-keys.d.ts +0 -40
  107. package/src/react/useVaultBalanceSubscription.d.ts +0 -17
  108. package/src/utils/drift/index.d.ts +0 -2
  109. package/src/utils/drift/orderParams.d.ts +0 -28
  110. package/src/utils/drift/types.d.ts +0 -522
@@ -2,22 +2,22 @@
2
2
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5",
3
3
  "metadata": {
4
4
  "name": "glam_mint",
5
- "version": "1.0.2",
5
+ "version": "1.0.3",
6
6
  "spec": "0.1.0",
7
7
  "description": "GLAM mint program"
8
8
  },
9
9
  "instructions": [
10
10
  {
11
- "name": "burn_tokens",
11
+ "name": "acl_gate_add_wallet",
12
12
  "discriminator": [
13
- 76,
14
- 15,
15
- 51,
16
- 254,
17
- 229,
18
- 215,
19
- 121,
20
- 66
13
+ 177,
14
+ 209,
15
+ 222,
16
+ 44,
17
+ 139,
18
+ 216,
19
+ 75,
20
+ 85
21
21
  ],
22
22
  "accounts": [
23
23
  {
@@ -33,531 +33,556 @@
33
33
  "writable": true
34
34
  },
35
35
  {
36
- "name": "from_token_account",
37
- "writable": true
38
- },
39
- {
40
- "name": "from"
41
- },
42
- {
43
- "name": "token_2022_program",
44
- "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
45
- }
46
- ],
47
- "args": [
48
- {
49
- "name": "amount",
50
- "type": "u64"
51
- }
52
- ]
53
- },
54
- {
55
- "name": "cancel",
56
- "discriminator": [
57
- 232,
58
- 219,
59
- 223,
60
- 41,
61
- 219,
62
- 236,
63
- 220,
64
- 190
65
- ],
66
- "accounts": [
67
- {
68
- "name": "glam_state",
69
- "writable": true
70
- },
71
- {
72
- "name": "glam_mint",
36
+ "name": "list_config",
73
37
  "writable": true
74
38
  },
75
39
  {
76
- "name": "glam_escrow",
77
- "pda": {
78
- "seeds": [
79
- {
80
- "kind": "const",
81
- "value": [
82
- 101,
83
- 115,
84
- 99,
85
- 114,
86
- 111,
87
- 119
88
- ]
89
- },
90
- {
91
- "kind": "account",
92
- "path": "glam_mint"
93
- }
94
- ]
95
- }
40
+ "name": "wallet"
96
41
  },
97
42
  {
98
- "name": "request_queue",
43
+ "name": "wallet_entry",
99
44
  "writable": true,
100
45
  "pda": {
101
46
  "seeds": [
102
47
  {
103
48
  "kind": "const",
104
49
  "value": [
105
- 114,
106
- 101,
107
- 113,
108
- 117,
50
+ 119,
51
+ 97,
52
+ 108,
53
+ 108,
109
54
  101,
110
- 115,
111
55
  116,
112
- 45,
113
- 113,
114
- 117,
56
+ 95,
115
57
  101,
116
- 117,
117
- 101
58
+ 110,
59
+ 116,
60
+ 114,
61
+ 121
118
62
  ]
119
63
  },
120
64
  {
121
65
  "kind": "account",
122
- "path": "glam_mint"
123
- }
124
- ]
125
- }
126
- },
127
- {
128
- "name": "signer",
129
- "writable": true,
130
- "signer": true
131
- },
132
- {
133
- "name": "user"
134
- },
135
- {
136
- "name": "recover_token_mint"
137
- },
138
- {
139
- "name": "user_ata",
140
- "writable": true,
141
- "pda": {
142
- "seeds": [
143
- {
144
- "kind": "account",
145
- "path": "user"
146
- },
147
- {
148
- "kind": "account",
149
- "path": "recover_token_program"
66
+ "path": "list_config"
150
67
  },
151
68
  {
152
69
  "kind": "account",
153
- "path": "recover_token_mint"
70
+ "path": "wallet"
154
71
  }
155
72
  ],
156
73
  "program": {
157
74
  "kind": "const",
158
75
  "value": [
159
- 140,
160
- 151,
161
- 37,
162
- 143,
163
- 78,
76
+ 225,
77
+ 75,
78
+ 51,
79
+ 208,
80
+ 94,
81
+ 242,
82
+ 103,
83
+ 39,
164
84
  36,
165
- 137,
166
- 241,
167
- 187,
168
- 61,
169
- 16,
170
- 41,
171
- 20,
172
- 142,
173
- 13,
174
- 131,
175
- 11,
85
+ 154,
86
+ 175,
87
+ 185,
88
+ 45,
89
+ 215,
90
+ 178,
91
+ 172,
92
+ 212,
176
93
  90,
177
- 19,
178
- 153,
179
- 218,
180
- 255,
181
- 16,
182
- 132,
183
- 4,
184
- 142,
185
- 123,
186
- 216,
187
- 219,
188
- 233,
189
- 248,
190
- 89
94
+ 38,
95
+ 236,
96
+ 241,
97
+ 111,
98
+ 194,
99
+ 147,
100
+ 148,
101
+ 148,
102
+ 49,
103
+ 31,
104
+ 143,
105
+ 249,
106
+ 136,
107
+ 203
191
108
  ]
192
109
  }
193
110
  }
194
111
  },
195
112
  {
196
- "name": "escrow_ata",
197
- "writable": true,
198
- "pda": {
199
- "seeds": [
200
- {
201
- "kind": "account",
202
- "path": "glam_escrow"
203
- },
204
- {
205
- "kind": "account",
206
- "path": "recover_token_program"
207
- },
208
- {
209
- "kind": "account",
210
- "path": "recover_token_mint"
211
- }
212
- ],
213
- "program": {
214
- "kind": "const",
215
- "value": [
216
- 140,
217
- 151,
218
- 37,
219
- 143,
220
- 78,
221
- 36,
222
- 137,
223
- 241,
224
- 187,
225
- 61,
226
- 16,
227
- 41,
228
- 20,
229
- 142,
230
- 13,
231
- 131,
232
- 11,
233
- 90,
234
- 19,
235
- 153,
236
- 218,
237
- 255,
238
- 16,
239
- 132,
240
- 4,
241
- 142,
242
- 123,
243
- 216,
244
- 219,
245
- 233,
246
- 248,
247
- 89
248
- ]
249
- }
250
- }
113
+ "name": "token_acl_gate_program",
114
+ "address": "GATEzzqxhJnsWF6vHRsgtixxSB8PaQdcqGEVTEHWiULz"
251
115
  },
252
116
  {
253
117
  "name": "system_program",
254
118
  "address": "11111111111111111111111111111111"
255
119
  },
256
120
  {
257
- "name": "recover_token_program"
258
- },
259
- {
260
- "name": "associated_token_program",
261
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
121
+ "name": "glam_protocol",
122
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
262
123
  }
263
124
  ],
264
125
  "args": []
265
126
  },
266
127
  {
267
- "name": "claim",
128
+ "name": "acl_gate_create_list",
268
129
  "discriminator": [
269
- 62,
270
- 198,
271
- 214,
272
- 193,
273
- 213,
274
- 159,
275
- 108,
276
- 210
130
+ 58,
131
+ 42,
132
+ 187,
133
+ 89,
134
+ 245,
135
+ 216,
136
+ 223,
137
+ 82
277
138
  ],
278
139
  "accounts": [
279
140
  {
280
141
  "name": "glam_state"
281
142
  },
143
+ {
144
+ "name": "glam_signer",
145
+ "writable": true,
146
+ "signer": true
147
+ },
282
148
  {
283
149
  "name": "glam_mint",
284
150
  "writable": true
285
151
  },
286
152
  {
287
- "name": "glam_escrow",
153
+ "name": "list_config",
154
+ "writable": true,
288
155
  "pda": {
289
156
  "seeds": [
290
157
  {
291
158
  "kind": "const",
292
159
  "value": [
293
- 101,
160
+ 108,
161
+ 105,
294
162
  115,
163
+ 116,
164
+ 95,
295
165
  99,
296
- 114,
297
166
  111,
298
- 119
167
+ 110,
168
+ 102,
169
+ 105,
170
+ 103
299
171
  ]
300
172
  },
301
173
  {
302
174
  "kind": "account",
303
175
  "path": "glam_mint"
304
- }
305
- ]
306
- }
307
- },
308
- {
309
- "name": "request_queue",
310
- "writable": true,
311
- "pda": {
312
- "seeds": [
176
+ },
313
177
  {
314
- "kind": "const",
315
- "value": [
316
- 114,
317
- 101,
318
- 113,
319
- 117,
320
- 101,
321
- 115,
322
- 116,
323
- 45,
324
- 113,
325
- 117,
326
- 101,
327
- 117,
328
- 101
329
- ]
330
- },
331
- {
332
- "kind": "account",
333
- "path": "glam_mint"
334
- }
335
- ]
336
- }
337
- },
338
- {
339
- "name": "signer",
340
- "writable": true,
341
- "signer": true
342
- },
343
- {
344
- "name": "claim_user"
345
- },
346
- {
347
- "name": "claim_token_mint"
348
- },
349
- {
350
- "name": "claim_user_ata",
351
- "writable": true,
352
- "pda": {
353
- "seeds": [
354
- {
355
- "kind": "account",
356
- "path": "claim_user"
357
- },
358
- {
359
- "kind": "account",
360
- "path": "claim_token_program"
361
- },
362
- {
363
- "kind": "account",
364
- "path": "claim_token_mint"
178
+ "kind": "arg",
179
+ "path": "seed"
365
180
  }
366
181
  ],
367
182
  "program": {
368
183
  "kind": "const",
369
184
  "value": [
370
- 140,
371
- 151,
372
- 37,
373
- 143,
374
- 78,
185
+ 225,
186
+ 75,
187
+ 51,
188
+ 208,
189
+ 94,
190
+ 242,
191
+ 103,
192
+ 39,
375
193
  36,
376
- 137,
377
- 241,
378
- 187,
379
- 61,
380
- 16,
381
- 41,
382
- 20,
383
- 142,
384
- 13,
385
- 131,
386
- 11,
194
+ 154,
195
+ 175,
196
+ 185,
197
+ 45,
198
+ 215,
199
+ 178,
200
+ 172,
201
+ 212,
387
202
  90,
388
- 19,
389
- 153,
390
- 218,
391
- 255,
392
- 16,
393
- 132,
394
- 4,
395
- 142,
396
- 123,
397
- 216,
398
- 219,
399
- 233,
400
- 248,
401
- 89
203
+ 38,
204
+ 236,
205
+ 241,
206
+ 111,
207
+ 194,
208
+ 147,
209
+ 148,
210
+ 148,
211
+ 49,
212
+ 31,
213
+ 143,
214
+ 249,
215
+ 136,
216
+ 203
402
217
  ]
403
218
  }
404
219
  }
405
220
  },
406
221
  {
407
- "name": "escrow_ata",
408
- "writable": true,
409
- "pda": {
410
- "seeds": [
411
- {
412
- "kind": "account",
413
- "path": "glam_escrow"
414
- },
415
- {
416
- "kind": "account",
417
- "path": "claim_token_program"
418
- },
419
- {
420
- "kind": "account",
421
- "path": "claim_token_mint"
422
- }
423
- ],
424
- "program": {
425
- "kind": "const",
426
- "value": [
427
- 140,
428
- 151,
429
- 37,
430
- 143,
431
- 78,
432
- 36,
433
- 137,
434
- 241,
435
- 187,
436
- 61,
437
- 16,
438
- 41,
439
- 20,
440
- 142,
441
- 13,
442
- 131,
443
- 11,
444
- 90,
445
- 19,
446
- 153,
447
- 218,
448
- 255,
449
- 16,
450
- 132,
451
- 4,
452
- 142,
453
- 123,
454
- 216,
455
- 219,
456
- 233,
457
- 248,
458
- 89
459
- ]
460
- }
222
+ "name": "token_acl_gate_program",
223
+ "address": "GATEzzqxhJnsWF6vHRsgtixxSB8PaQdcqGEVTEHWiULz"
224
+ },
225
+ {
226
+ "name": "system_program",
227
+ "address": "11111111111111111111111111111111"
228
+ },
229
+ {
230
+ "name": "glam_protocol",
231
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
232
+ }
233
+ ],
234
+ "args": [
235
+ {
236
+ "name": "seed",
237
+ "type": {
238
+ "array": [
239
+ "u8",
240
+ 32
241
+ ]
461
242
  }
462
243
  },
463
244
  {
464
- "name": "claim_user_policy",
245
+ "name": "mode",
246
+ "type": "u8"
247
+ }
248
+ ]
249
+ },
250
+ {
251
+ "name": "acl_gate_delete_list",
252
+ "discriminator": [
253
+ 113,
254
+ 175,
255
+ 235,
256
+ 163,
257
+ 178,
258
+ 217,
259
+ 46,
260
+ 134
261
+ ],
262
+ "accounts": [
263
+ {
264
+ "name": "glam_state"
265
+ },
266
+ {
267
+ "name": "glam_signer",
465
268
  "writable": true,
466
- "optional": true
269
+ "signer": true
270
+ },
271
+ {
272
+ "name": "glam_mint",
273
+ "writable": true
274
+ },
275
+ {
276
+ "name": "list_config",
277
+ "writable": true
278
+ },
279
+ {
280
+ "name": "token_acl_gate_program",
281
+ "address": "GATEzzqxhJnsWF6vHRsgtixxSB8PaQdcqGEVTEHWiULz"
467
282
  },
468
283
  {
469
284
  "name": "system_program",
470
285
  "address": "11111111111111111111111111111111"
471
286
  },
472
287
  {
473
- "name": "claim_token_program"
288
+ "name": "glam_protocol",
289
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
290
+ }
291
+ ],
292
+ "args": []
293
+ },
294
+ {
295
+ "name": "acl_gate_remove_wallet",
296
+ "discriminator": [
297
+ 74,
298
+ 153,
299
+ 117,
300
+ 215,
301
+ 253,
302
+ 225,
303
+ 59,
304
+ 63
305
+ ],
306
+ "accounts": [
307
+ {
308
+ "name": "glam_state"
474
309
  },
475
310
  {
476
- "name": "glam_policies_program",
477
- "address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
311
+ "name": "glam_signer",
312
+ "writable": true,
313
+ "signer": true
478
314
  },
479
315
  {
480
- "name": "associated_token_program",
481
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
316
+ "name": "glam_mint",
317
+ "writable": true
318
+ },
319
+ {
320
+ "name": "list_config",
321
+ "writable": true
322
+ },
323
+ {
324
+ "name": "wallet_entry",
325
+ "writable": true
326
+ },
327
+ {
328
+ "name": "token_acl_gate_program",
329
+ "address": "GATEzzqxhJnsWF6vHRsgtixxSB8PaQdcqGEVTEHWiULz"
330
+ },
331
+ {
332
+ "name": "system_program",
333
+ "address": "11111111111111111111111111111111"
334
+ },
335
+ {
336
+ "name": "glam_protocol",
337
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
482
338
  }
483
339
  ],
484
340
  "args": []
485
341
  },
486
342
  {
487
- "name": "claim_fees",
343
+ "name": "acl_gate_setup_extra_metas",
488
344
  "discriminator": [
345
+ 47,
346
+ 15,
347
+ 98,
348
+ 58,
489
349
  82,
490
- 251,
491
- 233,
492
- 156,
493
- 12,
494
- 52,
495
- 184,
496
- 202
350
+ 141,
351
+ 213,
352
+ 121
497
353
  ],
498
354
  "accounts": [
499
355
  {
500
- "name": "glam_state"
356
+ "name": "glam_state",
357
+ "writable": true
501
358
  },
502
359
  {
503
- "name": "glam_vault",
360
+ "name": "glam_signer",
504
361
  "writable": true,
362
+ "signer": true
363
+ },
364
+ {
365
+ "name": "glam_mint",
366
+ "writable": true
367
+ },
368
+ {
369
+ "name": "mint_config",
505
370
  "pda": {
506
371
  "seeds": [
507
372
  {
508
373
  "kind": "const",
509
374
  "value": [
510
- 118,
511
- 97,
512
- 117,
513
- 108,
514
- 116
375
+ 77,
376
+ 73,
377
+ 78,
378
+ 84,
379
+ 95,
380
+ 67,
381
+ 79,
382
+ 78,
383
+ 70,
384
+ 73,
385
+ 71
515
386
  ]
516
387
  },
517
388
  {
518
389
  "kind": "account",
519
- "path": "glam_state"
390
+ "path": "glam_mint"
520
391
  }
521
392
  ],
522
393
  "program": {
523
394
  "kind": "const",
524
395
  "value": [
525
- 10,
526
- 55,
527
- 49,
528
- 193,
529
- 142,
530
- 247,
531
- 75,
532
- 193,
533
- 33,
534
- 61,
396
+ 6,
397
+ 179,
398
+ 127,
399
+ 154,
400
+ 112,
401
+ 244,
402
+ 6,
403
+ 234,
404
+ 54,
405
+ 211,
406
+ 41,
407
+ 245,
408
+ 148,
409
+ 165,
410
+ 22,
535
411
  5,
412
+ 150,
413
+ 15,
414
+ 242,
415
+ 225,
416
+ 55,
417
+ 23,
418
+ 91,
419
+ 46,
536
420
  218,
537
- 254,
538
- 219,
421
+ 0,
422
+ 102,
423
+ 202,
424
+ 50,
425
+ 58,
426
+ 107,
427
+ 206
428
+ ]
429
+ }
430
+ }
431
+ },
432
+ {
433
+ "name": "extra_metas",
434
+ "writable": true,
435
+ "pda": {
436
+ "seeds": [
437
+ {
438
+ "kind": "const",
439
+ "value": [
440
+ 116,
441
+ 104,
442
+ 97,
443
+ 119,
444
+ 95,
445
+ 101,
446
+ 120,
447
+ 116,
448
+ 114,
449
+ 97,
450
+ 95,
451
+ 97,
452
+ 99,
453
+ 99,
454
+ 111,
455
+ 117,
456
+ 110,
457
+ 116,
458
+ 95,
459
+ 109,
460
+ 101,
461
+ 116,
462
+ 97,
463
+ 115
464
+ ]
465
+ },
466
+ {
467
+ "kind": "account",
468
+ "path": "glam_mint"
469
+ }
470
+ ],
471
+ "program": {
472
+ "kind": "const",
473
+ "value": [
474
+ 225,
475
+ 75,
476
+ 51,
477
+ 208,
478
+ 94,
479
+ 242,
480
+ 103,
481
+ 39,
482
+ 36,
483
+ 154,
484
+ 175,
485
+ 185,
486
+ 45,
487
+ 215,
488
+ 178,
489
+ 172,
490
+ 212,
491
+ 90,
492
+ 38,
493
+ 236,
494
+ 241,
495
+ 111,
496
+ 194,
497
+ 147,
498
+ 148,
499
+ 148,
500
+ 49,
501
+ 31,
539
502
  143,
540
- 206,
541
- 156,
542
- 138,
543
- 14,
544
- 32,
545
- 89,
546
- 232,
547
- 248,
548
- 173,
549
- 46,
550
- 77,
551
- 46,
552
- 206,
553
- 189,
554
- 171,
555
- 68,
556
- 237
503
+ 249,
504
+ 136,
505
+ 203
557
506
  ]
558
507
  }
559
508
  }
560
509
  },
510
+ {
511
+ "name": "token_acl_gate_program",
512
+ "address": "GATEzzqxhJnsWF6vHRsgtixxSB8PaQdcqGEVTEHWiULz"
513
+ },
514
+ {
515
+ "name": "system_program",
516
+ "address": "11111111111111111111111111111111"
517
+ },
518
+ {
519
+ "name": "glam_protocol",
520
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
521
+ }
522
+ ],
523
+ "args": []
524
+ },
525
+ {
526
+ "name": "burn_tokens",
527
+ "discriminator": [
528
+ 76,
529
+ 15,
530
+ 51,
531
+ 254,
532
+ 229,
533
+ 215,
534
+ 121,
535
+ 66
536
+ ],
537
+ "accounts": [
538
+ {
539
+ "name": "glam_state"
540
+ },
541
+ {
542
+ "name": "glam_signer",
543
+ "writable": true,
544
+ "signer": true
545
+ },
546
+ {
547
+ "name": "glam_mint",
548
+ "writable": true
549
+ },
550
+ {
551
+ "name": "from_token_account",
552
+ "writable": true
553
+ },
554
+ {
555
+ "name": "from"
556
+ },
557
+ {
558
+ "name": "token_2022_program",
559
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
560
+ }
561
+ ],
562
+ "args": [
563
+ {
564
+ "name": "amount",
565
+ "type": "u64"
566
+ }
567
+ ]
568
+ },
569
+ {
570
+ "name": "cancel",
571
+ "discriminator": [
572
+ 232,
573
+ 219,
574
+ 223,
575
+ 41,
576
+ 219,
577
+ 236,
578
+ 220,
579
+ 190
580
+ ],
581
+ "accounts": [
582
+ {
583
+ "name": "glam_state",
584
+ "writable": true
585
+ },
561
586
  {
562
587
  "name": "glam_mint",
563
588
  "writable": true
@@ -585,60 +610,33 @@
585
610
  }
586
611
  },
587
612
  {
588
- "name": "escrow_mint_ata",
613
+ "name": "request_queue",
589
614
  "writable": true,
590
615
  "pda": {
591
616
  "seeds": [
592
617
  {
593
- "kind": "account",
594
- "path": "glam_escrow"
595
- },
596
- {
597
- "kind": "account",
598
- "path": "token_2022_program"
618
+ "kind": "const",
619
+ "value": [
620
+ 114,
621
+ 101,
622
+ 113,
623
+ 117,
624
+ 101,
625
+ 115,
626
+ 116,
627
+ 45,
628
+ 113,
629
+ 117,
630
+ 101,
631
+ 117,
632
+ 101
633
+ ]
599
634
  },
600
635
  {
601
636
  "kind": "account",
602
637
  "path": "glam_mint"
603
638
  }
604
- ],
605
- "program": {
606
- "kind": "const",
607
- "value": [
608
- 140,
609
- 151,
610
- 37,
611
- 143,
612
- 78,
613
- 36,
614
- 137,
615
- 241,
616
- 187,
617
- 61,
618
- 16,
619
- 41,
620
- 20,
621
- 142,
622
- 13,
623
- 131,
624
- 11,
625
- 90,
626
- 19,
627
- 153,
628
- 218,
629
- 255,
630
- 16,
631
- 132,
632
- 4,
633
- 142,
634
- 123,
635
- 216,
636
- 219,
637
- 233,
638
- 248,
639
- 89
640
- ]
641
- }
639
+ ]
642
640
  }
643
641
  },
644
642
  {
@@ -647,27 +645,27 @@
647
645
  "signer": true
648
646
  },
649
647
  {
650
- "name": "deposit_asset"
648
+ "name": "user"
651
649
  },
652
650
  {
653
- "name": "vault_deposit_ata",
654
- "docs": [
655
- "To pay out fees"
656
- ],
651
+ "name": "recover_token_mint"
652
+ },
653
+ {
654
+ "name": "user_ata",
657
655
  "writable": true,
658
656
  "pda": {
659
657
  "seeds": [
660
658
  {
661
659
  "kind": "account",
662
- "path": "glam_vault"
660
+ "path": "user"
663
661
  },
664
662
  {
665
663
  "kind": "account",
666
- "path": "deposit_token_program"
664
+ "path": "recover_token_program"
667
665
  },
668
666
  {
669
667
  "kind": "account",
670
- "path": "deposit_asset"
668
+ "path": "recover_token_mint"
671
669
  }
672
670
  ],
673
671
  "program": {
@@ -710,27 +708,21 @@
710
708
  }
711
709
  },
712
710
  {
713
- "name": "protocol_fee_authority",
714
- "docs": [
715
- "To receive protocol fee"
716
- ]
717
- },
718
- {
719
- "name": "protocol_fee_authority_ata",
711
+ "name": "escrow_ata",
720
712
  "writable": true,
721
713
  "pda": {
722
714
  "seeds": [
723
715
  {
724
716
  "kind": "account",
725
- "path": "protocol_fee_authority"
717
+ "path": "glam_escrow"
726
718
  },
727
719
  {
728
720
  "kind": "account",
729
- "path": "deposit_token_program"
721
+ "path": "recover_token_program"
730
722
  },
731
723
  {
732
724
  "kind": "account",
733
- "path": "deposit_asset"
725
+ "path": "recover_token_mint"
734
726
  }
735
727
  ],
736
728
  "program": {
@@ -773,27 +765,118 @@
773
765
  }
774
766
  },
775
767
  {
776
- "name": "manager_fee_authority",
777
- "docs": [
778
- "To receive manager fee"
779
- ]
768
+ "name": "system_program",
769
+ "address": "11111111111111111111111111111111"
780
770
  },
781
771
  {
782
- "name": "manager_fee_authority_ata",
772
+ "name": "recover_token_program"
773
+ },
774
+ {
775
+ "name": "associated_token_program",
776
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
777
+ }
778
+ ],
779
+ "args": []
780
+ },
781
+ {
782
+ "name": "claim",
783
+ "discriminator": [
784
+ 62,
785
+ 198,
786
+ 214,
787
+ 193,
788
+ 213,
789
+ 159,
790
+ 108,
791
+ 210
792
+ ],
793
+ "accounts": [
794
+ {
795
+ "name": "glam_state"
796
+ },
797
+ {
798
+ "name": "glam_mint",
799
+ "writable": true
800
+ },
801
+ {
802
+ "name": "glam_escrow",
803
+ "pda": {
804
+ "seeds": [
805
+ {
806
+ "kind": "const",
807
+ "value": [
808
+ 101,
809
+ 115,
810
+ 99,
811
+ 114,
812
+ 111,
813
+ 119
814
+ ]
815
+ },
816
+ {
817
+ "kind": "account",
818
+ "path": "glam_mint"
819
+ }
820
+ ]
821
+ }
822
+ },
823
+ {
824
+ "name": "request_queue",
825
+ "writable": true,
826
+ "pda": {
827
+ "seeds": [
828
+ {
829
+ "kind": "const",
830
+ "value": [
831
+ 114,
832
+ 101,
833
+ 113,
834
+ 117,
835
+ 101,
836
+ 115,
837
+ 116,
838
+ 45,
839
+ 113,
840
+ 117,
841
+ 101,
842
+ 117,
843
+ 101
844
+ ]
845
+ },
846
+ {
847
+ "kind": "account",
848
+ "path": "glam_mint"
849
+ }
850
+ ]
851
+ }
852
+ },
853
+ {
854
+ "name": "signer",
855
+ "writable": true,
856
+ "signer": true
857
+ },
858
+ {
859
+ "name": "claim_user"
860
+ },
861
+ {
862
+ "name": "claim_token_mint"
863
+ },
864
+ {
865
+ "name": "claim_user_ata",
783
866
  "writable": true,
784
867
  "pda": {
785
868
  "seeds": [
786
869
  {
787
870
  "kind": "account",
788
- "path": "manager_fee_authority"
871
+ "path": "claim_user"
789
872
  },
790
873
  {
791
874
  "kind": "account",
792
- "path": "deposit_token_program"
875
+ "path": "claim_token_program"
793
876
  },
794
877
  {
795
878
  "kind": "account",
796
- "path": "deposit_asset"
879
+ "path": "claim_token_mint"
797
880
  }
798
881
  ],
799
882
  "program": {
@@ -836,184 +919,162 @@
836
919
  }
837
920
  },
838
921
  {
839
- "name": "glam_config",
922
+ "name": "escrow_ata",
923
+ "writable": true,
840
924
  "pda": {
841
925
  "seeds": [
842
926
  {
843
- "kind": "const",
844
- "value": [
845
- 103,
846
- 108,
847
- 111,
848
- 98,
849
- 97,
850
- 108,
851
- 45,
852
- 99,
853
- 111,
854
- 110,
855
- 102,
856
- 105,
857
- 103
858
- ]
927
+ "kind": "account",
928
+ "path": "glam_escrow"
929
+ },
930
+ {
931
+ "kind": "account",
932
+ "path": "claim_token_program"
933
+ },
934
+ {
935
+ "kind": "account",
936
+ "path": "claim_token_mint"
859
937
  }
860
938
  ],
861
939
  "program": {
862
940
  "kind": "const",
863
941
  "value": [
864
- 10,
942
+ 140,
943
+ 151,
944
+ 37,
945
+ 143,
946
+ 78,
947
+ 36,
948
+ 137,
949
+ 241,
950
+ 187,
951
+ 61,
952
+ 16,
953
+ 41,
954
+ 20,
955
+ 142,
956
+ 13,
957
+ 131,
865
958
  11,
866
- 0,
867
- 83,
868
- 72,
959
+ 90,
960
+ 19,
961
+ 153,
962
+ 218,
963
+ 255,
869
964
  16,
870
- 46,
871
- 144,
872
- 46,
873
- 42,
874
- 79,
875
- 22,
876
- 157,
965
+ 132,
966
+ 4,
967
+ 142,
877
968
  123,
878
- 21,
879
- 242,
880
- 192,
881
- 146,
882
- 1,
883
- 78,
884
- 88,
885
- 59,
886
- 102,
887
- 9,
888
- 190,
889
- 226,
890
- 92,
891
- 189,
892
- 187,
893
- 232,
894
- 83,
895
- 220
969
+ 216,
970
+ 219,
971
+ 233,
972
+ 248,
973
+ 89
896
974
  ]
897
975
  }
898
976
  }
899
977
  },
900
978
  {
901
- "name": "glam_protocol_program",
902
- "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
979
+ "name": "claim_user_policy",
980
+ "writable": true,
981
+ "optional": true
903
982
  },
904
983
  {
905
984
  "name": "system_program",
906
985
  "address": "11111111111111111111111111111111"
907
986
  },
908
987
  {
909
- "name": "associated_token_program",
910
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
988
+ "name": "claim_token_program"
911
989
  },
912
990
  {
913
- "name": "deposit_token_program"
991
+ "name": "glam_policies_program",
992
+ "address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
914
993
  },
915
994
  {
916
- "name": "token_2022_program",
917
- "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
995
+ "name": "associated_token_program",
996
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
918
997
  }
919
998
  ],
920
999
  "args": []
921
1000
  },
922
1001
  {
923
- "name": "close_mint",
1002
+ "name": "claim_fees",
924
1003
  "discriminator": [
925
- 149,
1004
+ 82,
926
1005
  251,
927
- 157,
928
- 212,
929
- 65,
930
- 181,
931
- 235,
932
- 129
1006
+ 233,
1007
+ 156,
1008
+ 12,
1009
+ 52,
1010
+ 184,
1011
+ 202
933
1012
  ],
934
1013
  "accounts": [
935
1014
  {
936
- "name": "glam_state",
937
- "writable": true
938
- },
939
- {
940
- "name": "glam_signer",
941
- "writable": true,
942
- "signer": true
943
- },
944
- {
945
- "name": "glam_mint",
946
- "writable": true
1015
+ "name": "glam_state"
947
1016
  },
948
1017
  {
949
- "name": "request_queue",
1018
+ "name": "glam_vault",
950
1019
  "writable": true,
951
- "optional": true,
952
1020
  "pda": {
953
1021
  "seeds": [
954
1022
  {
955
1023
  "kind": "const",
956
1024
  "value": [
957
- 114,
958
- 101,
959
- 113,
960
- 117,
961
- 101,
962
- 115,
963
- 116,
964
- 45,
965
- 113,
966
- 117,
967
- 101,
1025
+ 118,
1026
+ 97,
968
1027
  117,
969
- 101
1028
+ 108,
1029
+ 116
970
1030
  ]
971
1031
  },
972
1032
  {
973
1033
  "kind": "account",
974
- "path": "glam_mint"
1034
+ "path": "glam_state"
975
1035
  }
976
- ]
977
- }
978
- },
979
- {
980
- "name": "extra_metas_account",
981
- "writable": true
982
- },
983
- {
984
- "name": "system_program",
985
- "address": "11111111111111111111111111111111"
986
- },
987
- {
988
- "name": "policies_program",
989
- "address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
990
- },
991
- {
992
- "name": "token_2022_program",
993
- "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
1036
+ ],
1037
+ "program": {
1038
+ "kind": "const",
1039
+ "value": [
1040
+ 10,
1041
+ 55,
1042
+ 49,
1043
+ 193,
1044
+ 142,
1045
+ 247,
1046
+ 75,
1047
+ 193,
1048
+ 33,
1049
+ 61,
1050
+ 5,
1051
+ 218,
1052
+ 254,
1053
+ 219,
1054
+ 143,
1055
+ 206,
1056
+ 156,
1057
+ 138,
1058
+ 14,
1059
+ 32,
1060
+ 89,
1061
+ 232,
1062
+ 248,
1063
+ 173,
1064
+ 46,
1065
+ 77,
1066
+ 46,
1067
+ 206,
1068
+ 189,
1069
+ 171,
1070
+ 68,
1071
+ 237
1072
+ ]
1073
+ }
1074
+ }
994
1075
  },
995
1076
  {
996
- "name": "glam_protocol",
997
- "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
998
- }
999
- ],
1000
- "args": []
1001
- },
1002
- {
1003
- "name": "crystallize_fees",
1004
- "discriminator": [
1005
- 78,
1006
- 0,
1007
- 111,
1008
- 26,
1009
- 7,
1010
- 12,
1011
- 41,
1012
- 249
1013
- ],
1014
- "accounts": [
1015
- {
1016
- "name": "glam_state",
1077
+ "name": "glam_mint",
1017
1078
  "writable": true
1018
1079
  },
1019
1080
  {
@@ -1038,10 +1099,6 @@
1038
1099
  ]
1039
1100
  }
1040
1101
  },
1041
- {
1042
- "name": "glam_mint",
1043
- "writable": true
1044
- },
1045
1102
  {
1046
1103
  "name": "escrow_mint_ata",
1047
1104
  "writable": true,
@@ -1105,128 +1162,90 @@
1105
1162
  "signer": true
1106
1163
  },
1107
1164
  {
1108
- "name": "glam_protocol_program",
1109
- "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
1110
- },
1111
- {
1112
- "name": "token_2022_program",
1113
- "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
1114
- }
1115
- ],
1116
- "args": []
1117
- },
1118
- {
1119
- "name": "emergency_update_mint",
1120
- "discriminator": [
1121
- 141,
1122
- 210,
1123
- 26,
1124
- 160,
1125
- 120,
1126
- 140,
1127
- 28,
1128
- 239
1129
- ],
1130
- "accounts": [
1131
- {
1132
- "name": "glam_state"
1133
- },
1134
- {
1135
- "name": "glam_signer",
1136
- "writable": true,
1137
- "signer": true
1138
- },
1139
- {
1140
- "name": "glam_mint"
1165
+ "name": "deposit_asset"
1141
1166
  },
1142
1167
  {
1143
- "name": "request_queue",
1168
+ "name": "vault_deposit_ata",
1169
+ "docs": [
1170
+ "To pay out fees"
1171
+ ],
1144
1172
  "writable": true,
1145
1173
  "pda": {
1146
1174
  "seeds": [
1147
1175
  {
1148
- "kind": "const",
1149
- "value": [
1150
- 114,
1151
- 101,
1152
- 113,
1153
- 117,
1154
- 101,
1155
- 115,
1156
- 116,
1157
- 45,
1158
- 113,
1159
- 117,
1160
- 101,
1161
- 117,
1162
- 101
1163
- ]
1176
+ "kind": "account",
1177
+ "path": "glam_vault"
1164
1178
  },
1165
1179
  {
1166
1180
  "kind": "account",
1167
- "path": "glam_mint"
1181
+ "path": "deposit_token_program"
1182
+ },
1183
+ {
1184
+ "kind": "account",
1185
+ "path": "deposit_asset"
1168
1186
  }
1169
- ]
1170
- }
1171
- }
1172
- ],
1173
- "args": [
1174
- {
1175
- "name": "args",
1176
- "type": {
1177
- "defined": {
1178
- "name": "EmergencyUpdateMintArgs"
1187
+ ],
1188
+ "program": {
1189
+ "kind": "const",
1190
+ "value": [
1191
+ 140,
1192
+ 151,
1193
+ 37,
1194
+ 143,
1195
+ 78,
1196
+ 36,
1197
+ 137,
1198
+ 241,
1199
+ 187,
1200
+ 61,
1201
+ 16,
1202
+ 41,
1203
+ 20,
1204
+ 142,
1205
+ 13,
1206
+ 131,
1207
+ 11,
1208
+ 90,
1209
+ 19,
1210
+ 153,
1211
+ 218,
1212
+ 255,
1213
+ 16,
1214
+ 132,
1215
+ 4,
1216
+ 142,
1217
+ 123,
1218
+ 216,
1219
+ 219,
1220
+ 233,
1221
+ 248,
1222
+ 89
1223
+ ]
1179
1224
  }
1180
1225
  }
1181
- }
1182
- ]
1183
- },
1184
- {
1185
- "name": "force_transfer_tokens",
1186
- "discriminator": [
1187
- 185,
1188
- 34,
1189
- 78,
1190
- 211,
1191
- 192,
1192
- 13,
1193
- 160,
1194
- 37
1195
- ],
1196
- "accounts": [
1197
- {
1198
- "name": "glam_state",
1199
- "writable": true
1200
- },
1201
- {
1202
- "name": "glam_signer",
1203
- "writable": true,
1204
- "signer": true
1205
- },
1206
- {
1207
- "name": "glam_mint",
1208
- "writable": true
1209
1226
  },
1210
1227
  {
1211
- "name": "from_token_account",
1212
- "writable": true
1228
+ "name": "protocol_fee_authority",
1229
+ "docs": [
1230
+ "To receive protocol fee"
1231
+ ]
1213
1232
  },
1214
1233
  {
1215
- "name": "to_ata",
1234
+ "name": "protocol_fee_authority_ata",
1216
1235
  "writable": true,
1217
1236
  "pda": {
1218
1237
  "seeds": [
1219
1238
  {
1220
1239
  "kind": "account",
1221
- "path": "to"
1240
+ "path": "protocol_fee_authority"
1222
1241
  },
1223
1242
  {
1224
1243
  "kind": "account",
1225
- "path": "token_2022_program"
1244
+ "path": "deposit_token_program"
1226
1245
  },
1227
1246
  {
1228
1247
  "kind": "account",
1229
- "path": "glam_mint"
1248
+ "path": "deposit_asset"
1230
1249
  }
1231
1250
  ],
1232
1251
  "program": {
@@ -1269,189 +1288,27 @@
1269
1288
  }
1270
1289
  },
1271
1290
  {
1272
- "name": "from"
1273
- },
1274
- {
1275
- "name": "to"
1291
+ "name": "manager_fee_authority",
1292
+ "docs": [
1293
+ "To receive manager fee"
1294
+ ]
1276
1295
  },
1277
1296
  {
1278
- "name": "to_policy_account",
1279
- "writable": true,
1280
- "optional": true
1281
- },
1282
- {
1283
- "name": "system_program",
1284
- "address": "11111111111111111111111111111111"
1285
- },
1286
- {
1287
- "name": "token_2022_program",
1288
- "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
1289
- },
1290
- {
1291
- "name": "policies_program",
1292
- "address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
1293
- }
1294
- ],
1295
- "args": [
1296
- {
1297
- "name": "amount",
1298
- "type": "u64"
1299
- }
1300
- ]
1301
- },
1302
- {
1303
- "name": "fulfill",
1304
- "discriminator": [
1305
- 143,
1306
- 2,
1307
- 52,
1308
- 206,
1309
- 174,
1310
- 164,
1311
- 247,
1312
- 72
1313
- ],
1314
- "accounts": [
1315
- {
1316
- "name": "glam_state",
1317
- "writable": true
1318
- },
1319
- {
1320
- "name": "glam_vault",
1321
- "writable": true,
1322
- "pda": {
1323
- "seeds": [
1324
- {
1325
- "kind": "const",
1326
- "value": [
1327
- 118,
1328
- 97,
1329
- 117,
1330
- 108,
1331
- 116
1332
- ]
1333
- },
1334
- {
1335
- "kind": "account",
1336
- "path": "glam_state"
1337
- }
1338
- ],
1339
- "program": {
1340
- "kind": "const",
1341
- "value": [
1342
- 10,
1343
- 55,
1344
- 49,
1345
- 193,
1346
- 142,
1347
- 247,
1348
- 75,
1349
- 193,
1350
- 33,
1351
- 61,
1352
- 5,
1353
- 218,
1354
- 254,
1355
- 219,
1356
- 143,
1357
- 206,
1358
- 156,
1359
- 138,
1360
- 14,
1361
- 32,
1362
- 89,
1363
- 232,
1364
- 248,
1365
- 173,
1366
- 46,
1367
- 77,
1368
- 46,
1369
- 206,
1370
- 189,
1371
- 171,
1372
- 68,
1373
- 237
1374
- ]
1375
- }
1376
- }
1377
- },
1378
- {
1379
- "name": "glam_mint",
1380
- "writable": true
1381
- },
1382
- {
1383
- "name": "glam_escrow",
1384
- "pda": {
1385
- "seeds": [
1386
- {
1387
- "kind": "const",
1388
- "value": [
1389
- 101,
1390
- 115,
1391
- 99,
1392
- 114,
1393
- 111,
1394
- 119
1395
- ]
1396
- },
1397
- {
1398
- "kind": "account",
1399
- "path": "glam_mint"
1400
- }
1401
- ]
1402
- }
1403
- },
1404
- {
1405
- "name": "request_queue",
1406
- "writable": true,
1407
- "pda": {
1408
- "seeds": [
1409
- {
1410
- "kind": "const",
1411
- "value": [
1412
- 114,
1413
- 101,
1414
- 113,
1415
- 117,
1416
- 101,
1417
- 115,
1418
- 116,
1419
- 45,
1420
- 113,
1421
- 117,
1422
- 101,
1423
- 117,
1424
- 101
1425
- ]
1426
- },
1427
- {
1428
- "kind": "account",
1429
- "path": "glam_mint"
1430
- }
1431
- ]
1432
- }
1433
- },
1434
- {
1435
- "name": "signer",
1436
- "writable": true,
1437
- "signer": true
1438
- },
1439
- {
1440
- "name": "escrow_mint_ata",
1297
+ "name": "manager_fee_authority_ata",
1441
1298
  "writable": true,
1442
1299
  "pda": {
1443
1300
  "seeds": [
1444
1301
  {
1445
1302
  "kind": "account",
1446
- "path": "glam_escrow"
1303
+ "path": "manager_fee_authority"
1447
1304
  },
1448
1305
  {
1449
1306
  "kind": "account",
1450
- "path": "token_2022_program"
1307
+ "path": "deposit_token_program"
1451
1308
  },
1452
1309
  {
1453
1310
  "kind": "account",
1454
- "path": "glam_mint"
1311
+ "path": "deposit_asset"
1455
1312
  }
1456
1313
  ],
1457
1314
  "program": {
@@ -1494,81 +1351,228 @@
1494
1351
  }
1495
1352
  },
1496
1353
  {
1497
- "name": "asset"
1498
- },
1499
- {
1500
- "name": "vault_asset_ata",
1501
- "writable": true,
1354
+ "name": "glam_config",
1502
1355
  "pda": {
1503
1356
  "seeds": [
1504
1357
  {
1505
- "kind": "account",
1506
- "path": "glam_vault"
1507
- },
1508
- {
1509
- "kind": "account",
1510
- "path": "deposit_token_program"
1511
- },
1512
- {
1513
- "kind": "account",
1514
- "path": "asset"
1358
+ "kind": "const",
1359
+ "value": [
1360
+ 103,
1361
+ 108,
1362
+ 111,
1363
+ 98,
1364
+ 97,
1365
+ 108,
1366
+ 45,
1367
+ 99,
1368
+ 111,
1369
+ 110,
1370
+ 102,
1371
+ 105,
1372
+ 103
1373
+ ]
1515
1374
  }
1516
1375
  ],
1517
1376
  "program": {
1518
1377
  "kind": "const",
1519
1378
  "value": [
1520
- 140,
1521
- 151,
1522
- 37,
1523
- 143,
1524
- 78,
1525
- 36,
1526
- 137,
1527
- 241,
1528
- 187,
1529
- 61,
1530
- 16,
1531
- 41,
1532
- 20,
1533
- 142,
1534
- 13,
1535
- 131,
1379
+ 10,
1536
1380
  11,
1537
- 90,
1538
- 19,
1539
- 153,
1540
- 218,
1541
- 255,
1381
+ 0,
1382
+ 83,
1383
+ 72,
1542
1384
  16,
1543
- 132,
1544
- 4,
1545
- 142,
1385
+ 46,
1386
+ 144,
1387
+ 46,
1388
+ 42,
1389
+ 79,
1390
+ 22,
1391
+ 157,
1546
1392
  123,
1547
- 216,
1548
- 219,
1549
- 233,
1550
- 248,
1551
- 89
1393
+ 21,
1394
+ 242,
1395
+ 192,
1396
+ 146,
1397
+ 1,
1398
+ 78,
1399
+ 88,
1400
+ 59,
1401
+ 102,
1402
+ 9,
1403
+ 190,
1404
+ 226,
1405
+ 92,
1406
+ 189,
1407
+ 187,
1408
+ 232,
1409
+ 83,
1410
+ 220
1552
1411
  ]
1553
1412
  }
1554
1413
  }
1555
1414
  },
1556
1415
  {
1557
- "name": "escrow_asset_ata",
1558
- "writable": true,
1559
- "pda": {
1560
- "seeds": [
1561
- {
1562
- "kind": "account",
1563
- "path": "glam_escrow"
1564
- },
1565
- {
1566
- "kind": "account",
1567
- "path": "deposit_token_program"
1416
+ "name": "glam_protocol_program",
1417
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
1418
+ },
1419
+ {
1420
+ "name": "system_program",
1421
+ "address": "11111111111111111111111111111111"
1422
+ },
1423
+ {
1424
+ "name": "associated_token_program",
1425
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
1426
+ },
1427
+ {
1428
+ "name": "deposit_token_program"
1429
+ },
1430
+ {
1431
+ "name": "token_2022_program",
1432
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
1433
+ }
1434
+ ],
1435
+ "args": []
1436
+ },
1437
+ {
1438
+ "name": "close_mint",
1439
+ "discriminator": [
1440
+ 149,
1441
+ 251,
1442
+ 157,
1443
+ 212,
1444
+ 65,
1445
+ 181,
1446
+ 235,
1447
+ 129
1448
+ ],
1449
+ "accounts": [
1450
+ {
1451
+ "name": "glam_state",
1452
+ "writable": true
1453
+ },
1454
+ {
1455
+ "name": "glam_signer",
1456
+ "writable": true,
1457
+ "signer": true
1458
+ },
1459
+ {
1460
+ "name": "glam_mint",
1461
+ "writable": true
1462
+ },
1463
+ {
1464
+ "name": "request_queue",
1465
+ "writable": true,
1466
+ "optional": true,
1467
+ "pda": {
1468
+ "seeds": [
1469
+ {
1470
+ "kind": "const",
1471
+ "value": [
1472
+ 114,
1473
+ 101,
1474
+ 113,
1475
+ 117,
1476
+ 101,
1477
+ 115,
1478
+ 116,
1479
+ 45,
1480
+ 113,
1481
+ 117,
1482
+ 101,
1483
+ 117,
1484
+ 101
1485
+ ]
1568
1486
  },
1569
1487
  {
1570
1488
  "kind": "account",
1571
- "path": "asset"
1489
+ "path": "glam_mint"
1490
+ }
1491
+ ]
1492
+ }
1493
+ },
1494
+ {
1495
+ "name": "extra_metas_account",
1496
+ "writable": true
1497
+ },
1498
+ {
1499
+ "name": "system_program",
1500
+ "address": "11111111111111111111111111111111"
1501
+ },
1502
+ {
1503
+ "name": "policies_program",
1504
+ "address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
1505
+ },
1506
+ {
1507
+ "name": "token_2022_program",
1508
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
1509
+ },
1510
+ {
1511
+ "name": "glam_protocol",
1512
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
1513
+ }
1514
+ ],
1515
+ "args": []
1516
+ },
1517
+ {
1518
+ "name": "crystallize_fees",
1519
+ "discriminator": [
1520
+ 78,
1521
+ 0,
1522
+ 111,
1523
+ 26,
1524
+ 7,
1525
+ 12,
1526
+ 41,
1527
+ 249
1528
+ ],
1529
+ "accounts": [
1530
+ {
1531
+ "name": "glam_state",
1532
+ "writable": true
1533
+ },
1534
+ {
1535
+ "name": "glam_escrow",
1536
+ "pda": {
1537
+ "seeds": [
1538
+ {
1539
+ "kind": "const",
1540
+ "value": [
1541
+ 101,
1542
+ 115,
1543
+ 99,
1544
+ 114,
1545
+ 111,
1546
+ 119
1547
+ ]
1548
+ },
1549
+ {
1550
+ "kind": "account",
1551
+ "path": "glam_mint"
1552
+ }
1553
+ ]
1554
+ }
1555
+ },
1556
+ {
1557
+ "name": "glam_mint",
1558
+ "writable": true
1559
+ },
1560
+ {
1561
+ "name": "escrow_mint_ata",
1562
+ "writable": true,
1563
+ "pda": {
1564
+ "seeds": [
1565
+ {
1566
+ "kind": "account",
1567
+ "path": "glam_escrow"
1568
+ },
1569
+ {
1570
+ "kind": "account",
1571
+ "path": "token_2022_program"
1572
+ },
1573
+ {
1574
+ "kind": "account",
1575
+ "path": "glam_mint"
1572
1576
  }
1573
1577
  ],
1574
1578
  "program": {
@@ -1611,72 +1615,48 @@
1611
1615
  }
1612
1616
  },
1613
1617
  {
1614
- "name": "system_program",
1615
- "address": "11111111111111111111111111111111"
1618
+ "name": "signer",
1619
+ "writable": true,
1620
+ "signer": true
1616
1621
  },
1617
1622
  {
1618
- "name": "deposit_token_program"
1623
+ "name": "glam_protocol_program",
1624
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
1619
1625
  },
1620
1626
  {
1621
1627
  "name": "token_2022_program",
1622
1628
  "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
1623
- },
1624
- {
1625
- "name": "associated_token_program",
1626
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
1627
- },
1628
- {
1629
- "name": "glam_protocol_program",
1630
- "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
1631
1629
  }
1632
1630
  ],
1633
- "args": [
1634
- {
1635
- "name": "limit",
1636
- "type": {
1637
- "option": "u32"
1638
- }
1639
- }
1640
- ]
1631
+ "args": []
1641
1632
  },
1642
1633
  {
1643
- "name": "initialize_mint",
1644
- "docs": [
1645
- "Initialize a new GLAM mint with extensions and metadata.",
1646
- "",
1647
- "- `mint_model` - Configuration model containing mint parameters and metadata",
1648
- "- `created_key` - 8-byte key used in the GLAM state PDA derivation",
1649
- "- `account_type` - Fund (for tokenized vault mint) or Mint",
1650
- "- `decimals` - Decimals of new mint"
1651
- ],
1634
+ "name": "emergency_update_mint",
1652
1635
  "discriminator": [
1653
- 209,
1654
- 42,
1655
- 195,
1656
- 4,
1657
- 129,
1658
- 85,
1659
- 209,
1660
- 44
1636
+ 141,
1637
+ 210,
1638
+ 26,
1639
+ 160,
1640
+ 120,
1641
+ 140,
1642
+ 28,
1643
+ 239
1661
1644
  ],
1662
1645
  "accounts": [
1663
1646
  {
1664
- "name": "glam_state",
1665
- "writable": true
1647
+ "name": "glam_state"
1666
1648
  },
1667
1649
  {
1668
- "name": "signer",
1650
+ "name": "glam_signer",
1669
1651
  "writable": true,
1670
1652
  "signer": true
1671
1653
  },
1672
1654
  {
1673
- "name": "new_mint",
1674
- "writable": true
1655
+ "name": "glam_mint"
1675
1656
  },
1676
1657
  {
1677
1658
  "name": "request_queue",
1678
1659
  "writable": true,
1679
- "optional": true,
1680
1660
  "pda": {
1681
1661
  "seeds": [
1682
1662
  {
@@ -1699,198 +1679,1566 @@
1699
1679
  },
1700
1680
  {
1701
1681
  "kind": "account",
1702
- "path": "new_mint"
1682
+ "path": "glam_mint"
1703
1683
  }
1704
1684
  ]
1705
1685
  }
1706
- },
1707
- {
1708
- "name": "extra_metas_account",
1709
- "writable": true
1710
- },
1711
- {
1712
- "name": "base_asset_mint"
1713
- },
1714
- {
1715
- "name": "system_program",
1716
- "address": "11111111111111111111111111111111"
1717
- },
1718
- {
1719
- "name": "token_2022_program",
1720
- "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
1721
- },
1722
- {
1723
- "name": "policies_program",
1724
- "address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
1725
- },
1726
- {
1727
- "name": "glam_protocol",
1728
- "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
1729
1686
  }
1730
1687
  ],
1731
1688
  "args": [
1732
1689
  {
1733
- "name": "mint_model",
1690
+ "name": "args",
1734
1691
  "type": {
1735
1692
  "defined": {
1736
- "name": "MintModel"
1693
+ "name": "EmergencyUpdateMintArgs"
1737
1694
  }
1738
1695
  }
1696
+ }
1697
+ ]
1698
+ },
1699
+ {
1700
+ "name": "enable_token_acl",
1701
+ "discriminator": [
1702
+ 223,
1703
+ 179,
1704
+ 117,
1705
+ 163,
1706
+ 201,
1707
+ 185,
1708
+ 222,
1709
+ 34
1710
+ ],
1711
+ "accounts": [
1712
+ {
1713
+ "name": "glam_state",
1714
+ "writable": true
1739
1715
  },
1740
1716
  {
1741
- "name": "created_key",
1742
- "type": {
1743
- "array": [
1744
- "u8",
1745
- 8
1746
- ]
1747
- }
1748
- },
1749
- {
1750
- "name": "account_type",
1717
+ "name": "glam_signer",
1718
+ "writable": true,
1719
+ "signer": true
1720
+ },
1721
+ {
1722
+ "name": "glam_mint",
1723
+ "writable": true
1724
+ },
1725
+ {
1726
+ "name": "mint_config",
1727
+ "writable": true,
1728
+ "pda": {
1729
+ "seeds": [
1730
+ {
1731
+ "kind": "const",
1732
+ "value": [
1733
+ 77,
1734
+ 73,
1735
+ 78,
1736
+ 84,
1737
+ 95,
1738
+ 67,
1739
+ 79,
1740
+ 78,
1741
+ 70,
1742
+ 73,
1743
+ 71
1744
+ ]
1745
+ },
1746
+ {
1747
+ "kind": "account",
1748
+ "path": "glam_mint"
1749
+ }
1750
+ ],
1751
+ "program": {
1752
+ "kind": "const",
1753
+ "value": [
1754
+ 6,
1755
+ 179,
1756
+ 127,
1757
+ 154,
1758
+ 112,
1759
+ 244,
1760
+ 6,
1761
+ 234,
1762
+ 54,
1763
+ 211,
1764
+ 41,
1765
+ 245,
1766
+ 148,
1767
+ 165,
1768
+ 22,
1769
+ 5,
1770
+ 150,
1771
+ 15,
1772
+ 242,
1773
+ 225,
1774
+ 55,
1775
+ 23,
1776
+ 91,
1777
+ 46,
1778
+ 218,
1779
+ 0,
1780
+ 102,
1781
+ 202,
1782
+ 50,
1783
+ 58,
1784
+ 107,
1785
+ 206
1786
+ ]
1787
+ }
1788
+ }
1789
+ },
1790
+ {
1791
+ "name": "token_acl_program",
1792
+ "address": "TACLkU6CiCdkQN2MjoyDkVg2yAH9zkxiHDsiztQ52TP"
1793
+ },
1794
+ {
1795
+ "name": "token_2022_program",
1796
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
1797
+ },
1798
+ {
1799
+ "name": "system_program",
1800
+ "address": "11111111111111111111111111111111"
1801
+ },
1802
+ {
1803
+ "name": "glam_protocol",
1804
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
1805
+ }
1806
+ ],
1807
+ "args": [
1808
+ {
1809
+ "name": "gating_program",
1751
1810
  "type": {
1752
- "defined": {
1753
- "name": "AccountType"
1811
+ "option": "pubkey"
1812
+ }
1813
+ }
1814
+ ]
1815
+ },
1816
+ {
1817
+ "name": "force_transfer_tokens",
1818
+ "discriminator": [
1819
+ 185,
1820
+ 34,
1821
+ 78,
1822
+ 211,
1823
+ 192,
1824
+ 13,
1825
+ 160,
1826
+ 37
1827
+ ],
1828
+ "accounts": [
1829
+ {
1830
+ "name": "glam_state",
1831
+ "writable": true
1832
+ },
1833
+ {
1834
+ "name": "glam_signer",
1835
+ "writable": true,
1836
+ "signer": true
1837
+ },
1838
+ {
1839
+ "name": "glam_mint",
1840
+ "writable": true
1841
+ },
1842
+ {
1843
+ "name": "from_token_account",
1844
+ "writable": true
1845
+ },
1846
+ {
1847
+ "name": "to_ata",
1848
+ "writable": true,
1849
+ "pda": {
1850
+ "seeds": [
1851
+ {
1852
+ "kind": "account",
1853
+ "path": "to"
1854
+ },
1855
+ {
1856
+ "kind": "account",
1857
+ "path": "token_2022_program"
1858
+ },
1859
+ {
1860
+ "kind": "account",
1861
+ "path": "glam_mint"
1862
+ }
1863
+ ],
1864
+ "program": {
1865
+ "kind": "const",
1866
+ "value": [
1867
+ 140,
1868
+ 151,
1869
+ 37,
1870
+ 143,
1871
+ 78,
1872
+ 36,
1873
+ 137,
1874
+ 241,
1875
+ 187,
1876
+ 61,
1877
+ 16,
1878
+ 41,
1879
+ 20,
1880
+ 142,
1881
+ 13,
1882
+ 131,
1883
+ 11,
1884
+ 90,
1885
+ 19,
1886
+ 153,
1887
+ 218,
1888
+ 255,
1889
+ 16,
1890
+ 132,
1891
+ 4,
1892
+ 142,
1893
+ 123,
1894
+ 216,
1895
+ 219,
1896
+ 233,
1897
+ 248,
1898
+ 89
1899
+ ]
1900
+ }
1901
+ }
1902
+ },
1903
+ {
1904
+ "name": "from"
1905
+ },
1906
+ {
1907
+ "name": "to"
1908
+ },
1909
+ {
1910
+ "name": "to_policy_account",
1911
+ "writable": true,
1912
+ "optional": true
1913
+ },
1914
+ {
1915
+ "name": "system_program",
1916
+ "address": "11111111111111111111111111111111"
1917
+ },
1918
+ {
1919
+ "name": "token_2022_program",
1920
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
1921
+ },
1922
+ {
1923
+ "name": "policies_program",
1924
+ "address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
1925
+ }
1926
+ ],
1927
+ "args": [
1928
+ {
1929
+ "name": "amount",
1930
+ "type": "u64"
1931
+ }
1932
+ ]
1933
+ },
1934
+ {
1935
+ "name": "fulfill",
1936
+ "discriminator": [
1937
+ 143,
1938
+ 2,
1939
+ 52,
1940
+ 206,
1941
+ 174,
1942
+ 164,
1943
+ 247,
1944
+ 72
1945
+ ],
1946
+ "accounts": [
1947
+ {
1948
+ "name": "glam_state",
1949
+ "writable": true
1950
+ },
1951
+ {
1952
+ "name": "glam_vault",
1953
+ "writable": true,
1954
+ "pda": {
1955
+ "seeds": [
1956
+ {
1957
+ "kind": "const",
1958
+ "value": [
1959
+ 118,
1960
+ 97,
1961
+ 117,
1962
+ 108,
1963
+ 116
1964
+ ]
1965
+ },
1966
+ {
1967
+ "kind": "account",
1968
+ "path": "glam_state"
1969
+ }
1970
+ ],
1971
+ "program": {
1972
+ "kind": "const",
1973
+ "value": [
1974
+ 10,
1975
+ 55,
1976
+ 49,
1977
+ 193,
1978
+ 142,
1979
+ 247,
1980
+ 75,
1981
+ 193,
1982
+ 33,
1983
+ 61,
1984
+ 5,
1985
+ 218,
1986
+ 254,
1987
+ 219,
1988
+ 143,
1989
+ 206,
1990
+ 156,
1991
+ 138,
1992
+ 14,
1993
+ 32,
1994
+ 89,
1995
+ 232,
1996
+ 248,
1997
+ 173,
1998
+ 46,
1999
+ 77,
2000
+ 46,
2001
+ 206,
2002
+ 189,
2003
+ 171,
2004
+ 68,
2005
+ 237
2006
+ ]
2007
+ }
2008
+ }
2009
+ },
2010
+ {
2011
+ "name": "glam_mint",
2012
+ "writable": true
2013
+ },
2014
+ {
2015
+ "name": "glam_escrow",
2016
+ "pda": {
2017
+ "seeds": [
2018
+ {
2019
+ "kind": "const",
2020
+ "value": [
2021
+ 101,
2022
+ 115,
2023
+ 99,
2024
+ 114,
2025
+ 111,
2026
+ 119
2027
+ ]
2028
+ },
2029
+ {
2030
+ "kind": "account",
2031
+ "path": "glam_mint"
2032
+ }
2033
+ ]
2034
+ }
2035
+ },
2036
+ {
2037
+ "name": "request_queue",
2038
+ "writable": true,
2039
+ "pda": {
2040
+ "seeds": [
2041
+ {
2042
+ "kind": "const",
2043
+ "value": [
2044
+ 114,
2045
+ 101,
2046
+ 113,
2047
+ 117,
2048
+ 101,
2049
+ 115,
2050
+ 116,
2051
+ 45,
2052
+ 113,
2053
+ 117,
2054
+ 101,
2055
+ 117,
2056
+ 101
2057
+ ]
2058
+ },
2059
+ {
2060
+ "kind": "account",
2061
+ "path": "glam_mint"
2062
+ }
2063
+ ]
2064
+ }
2065
+ },
2066
+ {
2067
+ "name": "signer",
2068
+ "writable": true,
2069
+ "signer": true
2070
+ },
2071
+ {
2072
+ "name": "escrow_mint_ata",
2073
+ "writable": true,
2074
+ "pda": {
2075
+ "seeds": [
2076
+ {
2077
+ "kind": "account",
2078
+ "path": "glam_escrow"
2079
+ },
2080
+ {
2081
+ "kind": "account",
2082
+ "path": "token_2022_program"
2083
+ },
2084
+ {
2085
+ "kind": "account",
2086
+ "path": "glam_mint"
2087
+ }
2088
+ ],
2089
+ "program": {
2090
+ "kind": "const",
2091
+ "value": [
2092
+ 140,
2093
+ 151,
2094
+ 37,
2095
+ 143,
2096
+ 78,
2097
+ 36,
2098
+ 137,
2099
+ 241,
2100
+ 187,
2101
+ 61,
2102
+ 16,
2103
+ 41,
2104
+ 20,
2105
+ 142,
2106
+ 13,
2107
+ 131,
2108
+ 11,
2109
+ 90,
2110
+ 19,
2111
+ 153,
2112
+ 218,
2113
+ 255,
2114
+ 16,
2115
+ 132,
2116
+ 4,
2117
+ 142,
2118
+ 123,
2119
+ 216,
2120
+ 219,
2121
+ 233,
2122
+ 248,
2123
+ 89
2124
+ ]
2125
+ }
2126
+ }
2127
+ },
2128
+ {
2129
+ "name": "asset"
2130
+ },
2131
+ {
2132
+ "name": "vault_asset_ata",
2133
+ "writable": true,
2134
+ "pda": {
2135
+ "seeds": [
2136
+ {
2137
+ "kind": "account",
2138
+ "path": "glam_vault"
2139
+ },
2140
+ {
2141
+ "kind": "account",
2142
+ "path": "deposit_token_program"
2143
+ },
2144
+ {
2145
+ "kind": "account",
2146
+ "path": "asset"
2147
+ }
2148
+ ],
2149
+ "program": {
2150
+ "kind": "const",
2151
+ "value": [
2152
+ 140,
2153
+ 151,
2154
+ 37,
2155
+ 143,
2156
+ 78,
2157
+ 36,
2158
+ 137,
2159
+ 241,
2160
+ 187,
2161
+ 61,
2162
+ 16,
2163
+ 41,
2164
+ 20,
2165
+ 142,
2166
+ 13,
2167
+ 131,
2168
+ 11,
2169
+ 90,
2170
+ 19,
2171
+ 153,
2172
+ 218,
2173
+ 255,
2174
+ 16,
2175
+ 132,
2176
+ 4,
2177
+ 142,
2178
+ 123,
2179
+ 216,
2180
+ 219,
2181
+ 233,
2182
+ 248,
2183
+ 89
2184
+ ]
2185
+ }
2186
+ }
2187
+ },
2188
+ {
2189
+ "name": "escrow_asset_ata",
2190
+ "writable": true,
2191
+ "pda": {
2192
+ "seeds": [
2193
+ {
2194
+ "kind": "account",
2195
+ "path": "glam_escrow"
2196
+ },
2197
+ {
2198
+ "kind": "account",
2199
+ "path": "deposit_token_program"
2200
+ },
2201
+ {
2202
+ "kind": "account",
2203
+ "path": "asset"
2204
+ }
2205
+ ],
2206
+ "program": {
2207
+ "kind": "const",
2208
+ "value": [
2209
+ 140,
2210
+ 151,
2211
+ 37,
2212
+ 143,
2213
+ 78,
2214
+ 36,
2215
+ 137,
2216
+ 241,
2217
+ 187,
2218
+ 61,
2219
+ 16,
2220
+ 41,
2221
+ 20,
2222
+ 142,
2223
+ 13,
2224
+ 131,
2225
+ 11,
2226
+ 90,
2227
+ 19,
2228
+ 153,
2229
+ 218,
2230
+ 255,
2231
+ 16,
2232
+ 132,
2233
+ 4,
2234
+ 142,
2235
+ 123,
2236
+ 216,
2237
+ 219,
2238
+ 233,
2239
+ 248,
2240
+ 89
2241
+ ]
2242
+ }
2243
+ }
2244
+ },
2245
+ {
2246
+ "name": "system_program",
2247
+ "address": "11111111111111111111111111111111"
2248
+ },
2249
+ {
2250
+ "name": "deposit_token_program"
2251
+ },
2252
+ {
2253
+ "name": "token_2022_program",
2254
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
2255
+ },
2256
+ {
2257
+ "name": "associated_token_program",
2258
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
2259
+ },
2260
+ {
2261
+ "name": "glam_protocol_program",
2262
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
2263
+ }
2264
+ ],
2265
+ "args": [
2266
+ {
2267
+ "name": "limit",
2268
+ "type": {
2269
+ "option": "u32"
2270
+ }
2271
+ }
2272
+ ]
2273
+ },
2274
+ {
2275
+ "name": "initialize_mint",
2276
+ "docs": [
2277
+ "Initialize a new GLAM mint with extensions and metadata.",
2278
+ "",
2279
+ "- `mint_model` - Configuration model containing mint parameters and metadata",
2280
+ "- `created_key` - 8-byte key used in the GLAM state PDA derivation",
2281
+ "- `account_type` - Fund (for tokenized vault mint) or Mint",
2282
+ "- `decimals` - Decimals of new mint"
2283
+ ],
2284
+ "discriminator": [
2285
+ 209,
2286
+ 42,
2287
+ 195,
2288
+ 4,
2289
+ 129,
2290
+ 85,
2291
+ 209,
2292
+ 44
2293
+ ],
2294
+ "accounts": [
2295
+ {
2296
+ "name": "glam_state",
2297
+ "writable": true
2298
+ },
2299
+ {
2300
+ "name": "signer",
2301
+ "writable": true,
2302
+ "signer": true
2303
+ },
2304
+ {
2305
+ "name": "new_mint",
2306
+ "writable": true
2307
+ },
2308
+ {
2309
+ "name": "request_queue",
2310
+ "writable": true,
2311
+ "optional": true,
2312
+ "pda": {
2313
+ "seeds": [
2314
+ {
2315
+ "kind": "const",
2316
+ "value": [
2317
+ 114,
2318
+ 101,
2319
+ 113,
2320
+ 117,
2321
+ 101,
2322
+ 115,
2323
+ 116,
2324
+ 45,
2325
+ 113,
2326
+ 117,
2327
+ 101,
2328
+ 117,
2329
+ 101
2330
+ ]
2331
+ },
2332
+ {
2333
+ "kind": "account",
2334
+ "path": "new_mint"
2335
+ }
2336
+ ]
2337
+ }
2338
+ },
2339
+ {
2340
+ "name": "extra_metas_account",
2341
+ "writable": true
2342
+ },
2343
+ {
2344
+ "name": "base_asset_mint"
2345
+ },
2346
+ {
2347
+ "name": "system_program",
2348
+ "address": "11111111111111111111111111111111"
2349
+ },
2350
+ {
2351
+ "name": "token_2022_program",
2352
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
2353
+ },
2354
+ {
2355
+ "name": "policies_program",
2356
+ "address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
2357
+ },
2358
+ {
2359
+ "name": "glam_protocol",
2360
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
2361
+ }
2362
+ ],
2363
+ "args": [
2364
+ {
2365
+ "name": "mint_model",
2366
+ "type": {
2367
+ "defined": {
2368
+ "name": "MintModel"
2369
+ }
2370
+ }
2371
+ },
2372
+ {
2373
+ "name": "created_key",
2374
+ "type": {
2375
+ "array": [
2376
+ "u8",
2377
+ 8
2378
+ ]
2379
+ }
2380
+ },
2381
+ {
2382
+ "name": "account_type",
2383
+ "type": {
2384
+ "defined": {
2385
+ "name": "AccountType"
2386
+ }
2387
+ }
2388
+ },
2389
+ {
2390
+ "name": "decimals",
2391
+ "type": {
2392
+ "option": "u8"
2393
+ }
2394
+ }
2395
+ ]
2396
+ },
2397
+ {
2398
+ "name": "mint_tokens",
2399
+ "discriminator": [
2400
+ 59,
2401
+ 132,
2402
+ 24,
2403
+ 246,
2404
+ 122,
2405
+ 39,
2406
+ 8,
2407
+ 243
2408
+ ],
2409
+ "accounts": [
2410
+ {
2411
+ "name": "glam_state",
2412
+ "writable": true
2413
+ },
2414
+ {
2415
+ "name": "glam_signer",
2416
+ "writable": true,
2417
+ "signer": true
2418
+ },
2419
+ {
2420
+ "name": "glam_mint",
2421
+ "writable": true
2422
+ },
2423
+ {
2424
+ "name": "mint_to",
2425
+ "writable": true,
2426
+ "pda": {
2427
+ "seeds": [
2428
+ {
2429
+ "kind": "account",
2430
+ "path": "recipient"
2431
+ },
2432
+ {
2433
+ "kind": "account",
2434
+ "path": "token_2022_program"
2435
+ },
2436
+ {
2437
+ "kind": "account",
2438
+ "path": "glam_mint"
2439
+ }
2440
+ ],
2441
+ "program": {
2442
+ "kind": "const",
2443
+ "value": [
2444
+ 140,
2445
+ 151,
2446
+ 37,
2447
+ 143,
2448
+ 78,
2449
+ 36,
2450
+ 137,
2451
+ 241,
2452
+ 187,
2453
+ 61,
2454
+ 16,
2455
+ 41,
2456
+ 20,
2457
+ 142,
2458
+ 13,
2459
+ 131,
2460
+ 11,
2461
+ 90,
2462
+ 19,
2463
+ 153,
2464
+ 218,
2465
+ 255,
2466
+ 16,
2467
+ 132,
2468
+ 4,
2469
+ 142,
2470
+ 123,
2471
+ 216,
2472
+ 219,
2473
+ 233,
2474
+ 248,
2475
+ 89
2476
+ ]
2477
+ }
2478
+ }
2479
+ },
2480
+ {
2481
+ "name": "recipient",
2482
+ "writable": true
2483
+ },
2484
+ {
2485
+ "name": "policy_account",
2486
+ "writable": true,
2487
+ "optional": true
2488
+ },
2489
+ {
2490
+ "name": "system_program",
2491
+ "address": "11111111111111111111111111111111"
2492
+ },
2493
+ {
2494
+ "name": "token_2022_program",
2495
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
2496
+ },
2497
+ {
2498
+ "name": "policies_program",
2499
+ "address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
2500
+ }
2501
+ ],
2502
+ "args": [
2503
+ {
2504
+ "name": "amount",
2505
+ "type": "u64"
2506
+ }
2507
+ ]
2508
+ },
2509
+ {
2510
+ "name": "price_bridge_managed_transfers",
2511
+ "docs": [
2512
+ "Price bridge managed transfers.",
2513
+ "",
2514
+ "Extra accounts:",
2515
+ "- bridge registry account"
2516
+ ],
2517
+ "discriminator": [
2518
+ 15,
2519
+ 249,
2520
+ 66,
2521
+ 19,
2522
+ 107,
2523
+ 71,
2524
+ 41,
2525
+ 51
2526
+ ],
2527
+ "accounts": [
2528
+ {
2529
+ "name": "glam_state",
2530
+ "writable": true
2531
+ },
2532
+ {
2533
+ "name": "glam_vault",
2534
+ "pda": {
2535
+ "seeds": [
2536
+ {
2537
+ "kind": "const",
2538
+ "value": [
2539
+ 118,
2540
+ 97,
2541
+ 117,
2542
+ 108,
2543
+ 116
2544
+ ]
2545
+ },
2546
+ {
2547
+ "kind": "account",
2548
+ "path": "glam_state"
2549
+ }
2550
+ ],
2551
+ "program": {
2552
+ "kind": "const",
2553
+ "value": [
2554
+ 10,
2555
+ 55,
2556
+ 49,
2557
+ 193,
2558
+ 142,
2559
+ 247,
2560
+ 75,
2561
+ 193,
2562
+ 33,
2563
+ 61,
2564
+ 5,
2565
+ 218,
2566
+ 254,
2567
+ 219,
2568
+ 143,
2569
+ 206,
2570
+ 156,
2571
+ 138,
2572
+ 14,
2573
+ 32,
2574
+ 89,
2575
+ 232,
2576
+ 248,
2577
+ 173,
2578
+ 46,
2579
+ 77,
2580
+ 46,
2581
+ 206,
2582
+ 189,
2583
+ 171,
2584
+ 68,
2585
+ 237
2586
+ ]
2587
+ }
2588
+ }
2589
+ },
2590
+ {
2591
+ "name": "signer",
2592
+ "writable": true,
2593
+ "signer": true
2594
+ },
2595
+ {
2596
+ "name": "sol_usd_oracle"
2597
+ },
2598
+ {
2599
+ "name": "base_asset_oracle"
2600
+ },
2601
+ {
2602
+ "name": "integration_authority",
2603
+ "pda": {
2604
+ "seeds": [
2605
+ {
2606
+ "kind": "const",
2607
+ "value": [
2608
+ 105,
2609
+ 110,
2610
+ 116,
2611
+ 101,
2612
+ 103,
2613
+ 114,
2614
+ 97,
2615
+ 116,
2616
+ 105,
2617
+ 111,
2618
+ 110,
2619
+ 45,
2620
+ 97,
2621
+ 117,
2622
+ 116,
2623
+ 104,
2624
+ 111,
2625
+ 114,
2626
+ 105,
2627
+ 116,
2628
+ 121
2629
+ ]
2630
+ }
2631
+ ]
2632
+ }
2633
+ },
2634
+ {
2635
+ "name": "glam_config",
2636
+ "pda": {
2637
+ "seeds": [
2638
+ {
2639
+ "kind": "const",
2640
+ "value": [
2641
+ 103,
2642
+ 108,
2643
+ 111,
2644
+ 98,
2645
+ 97,
2646
+ 108,
2647
+ 45,
2648
+ 99,
2649
+ 111,
2650
+ 110,
2651
+ 102,
2652
+ 105,
2653
+ 103
2654
+ ]
2655
+ }
2656
+ ],
2657
+ "program": {
2658
+ "kind": "const",
2659
+ "value": [
2660
+ 10,
2661
+ 11,
2662
+ 0,
2663
+ 83,
2664
+ 72,
2665
+ 16,
2666
+ 46,
2667
+ 144,
2668
+ 46,
2669
+ 42,
2670
+ 79,
2671
+ 22,
2672
+ 157,
2673
+ 123,
2674
+ 21,
2675
+ 242,
2676
+ 192,
2677
+ 146,
2678
+ 1,
2679
+ 78,
2680
+ 88,
2681
+ 59,
2682
+ 102,
2683
+ 9,
2684
+ 190,
2685
+ 226,
2686
+ 92,
2687
+ 189,
2688
+ 187,
2689
+ 232,
2690
+ 83,
2691
+ 220
2692
+ ]
2693
+ }
2694
+ }
2695
+ },
2696
+ {
2697
+ "name": "glam_protocol",
2698
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
2699
+ },
2700
+ {
2701
+ "name": "event_authority",
2702
+ "optional": true,
2703
+ "pda": {
2704
+ "seeds": [
2705
+ {
2706
+ "kind": "const",
2707
+ "value": [
2708
+ 95,
2709
+ 95,
2710
+ 101,
2711
+ 118,
2712
+ 101,
2713
+ 110,
2714
+ 116,
2715
+ 95,
2716
+ 97,
2717
+ 117,
2718
+ 116,
2719
+ 104,
2720
+ 111,
2721
+ 114,
2722
+ 105,
2723
+ 116,
2724
+ 121
2725
+ ]
2726
+ }
2727
+ ]
2728
+ }
2729
+ },
2730
+ {
2731
+ "name": "event_program",
2732
+ "optional": true,
2733
+ "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
2734
+ }
2735
+ ],
2736
+ "args": []
2737
+ },
2738
+ {
2739
+ "name": "price_drift_users",
2740
+ "docs": [
2741
+ "Extra accounts for pricing N drift users under the same user stats:",
2742
+ "- user_stats x 1",
2743
+ "- drift_user x N",
2744
+ "- markets and oracles used by all drift users (no specific order)",
2745
+ "",
2746
+ "Clients must pre-refresh any stale Drift spot market cumulative interest by",
2747
+ "prepending Drift `update_spot_market_cumulative_interest` instructions for the",
2748
+ "referenced spot markets. Calls will fail with `StaleDriftInterest` if a required",
2749
+ "spot market's cumulative interest is too old."
2750
+ ],
2751
+ "discriminator": [
2752
+ 12,
2753
+ 5,
2754
+ 143,
2755
+ 51,
2756
+ 101,
2757
+ 81,
2758
+ 200,
2759
+ 150
2760
+ ],
2761
+ "accounts": [
2762
+ {
2763
+ "name": "glam_state",
2764
+ "writable": true
2765
+ },
2766
+ {
2767
+ "name": "glam_vault",
2768
+ "pda": {
2769
+ "seeds": [
2770
+ {
2771
+ "kind": "const",
2772
+ "value": [
2773
+ 118,
2774
+ 97,
2775
+ 117,
2776
+ 108,
2777
+ 116
2778
+ ]
2779
+ },
2780
+ {
2781
+ "kind": "account",
2782
+ "path": "glam_state"
2783
+ }
2784
+ ],
2785
+ "program": {
2786
+ "kind": "const",
2787
+ "value": [
2788
+ 10,
2789
+ 55,
2790
+ 49,
2791
+ 193,
2792
+ 142,
2793
+ 247,
2794
+ 75,
2795
+ 193,
2796
+ 33,
2797
+ 61,
2798
+ 5,
2799
+ 218,
2800
+ 254,
2801
+ 219,
2802
+ 143,
2803
+ 206,
2804
+ 156,
2805
+ 138,
2806
+ 14,
2807
+ 32,
2808
+ 89,
2809
+ 232,
2810
+ 248,
2811
+ 173,
2812
+ 46,
2813
+ 77,
2814
+ 46,
2815
+ 206,
2816
+ 189,
2817
+ 171,
2818
+ 68,
2819
+ 237
2820
+ ]
2821
+ }
2822
+ }
2823
+ },
2824
+ {
2825
+ "name": "signer",
2826
+ "writable": true,
2827
+ "signer": true
2828
+ },
2829
+ {
2830
+ "name": "sol_usd_oracle"
2831
+ },
2832
+ {
2833
+ "name": "base_asset_oracle"
2834
+ },
2835
+ {
2836
+ "name": "integration_authority",
2837
+ "pda": {
2838
+ "seeds": [
2839
+ {
2840
+ "kind": "const",
2841
+ "value": [
2842
+ 105,
2843
+ 110,
2844
+ 116,
2845
+ 101,
2846
+ 103,
2847
+ 114,
2848
+ 97,
2849
+ 116,
2850
+ 105,
2851
+ 111,
2852
+ 110,
2853
+ 45,
2854
+ 97,
2855
+ 117,
2856
+ 116,
2857
+ 104,
2858
+ 111,
2859
+ 114,
2860
+ 105,
2861
+ 116,
2862
+ 121
2863
+ ]
2864
+ }
2865
+ ]
2866
+ }
2867
+ },
2868
+ {
2869
+ "name": "glam_config",
2870
+ "pda": {
2871
+ "seeds": [
2872
+ {
2873
+ "kind": "const",
2874
+ "value": [
2875
+ 103,
2876
+ 108,
2877
+ 111,
2878
+ 98,
2879
+ 97,
2880
+ 108,
2881
+ 45,
2882
+ 99,
2883
+ 111,
2884
+ 110,
2885
+ 102,
2886
+ 105,
2887
+ 103
2888
+ ]
2889
+ }
2890
+ ],
2891
+ "program": {
2892
+ "kind": "const",
2893
+ "value": [
2894
+ 10,
2895
+ 11,
2896
+ 0,
2897
+ 83,
2898
+ 72,
2899
+ 16,
2900
+ 46,
2901
+ 144,
2902
+ 46,
2903
+ 42,
2904
+ 79,
2905
+ 22,
2906
+ 157,
2907
+ 123,
2908
+ 21,
2909
+ 242,
2910
+ 192,
2911
+ 146,
2912
+ 1,
2913
+ 78,
2914
+ 88,
2915
+ 59,
2916
+ 102,
2917
+ 9,
2918
+ 190,
2919
+ 226,
2920
+ 92,
2921
+ 189,
2922
+ 187,
2923
+ 232,
2924
+ 83,
2925
+ 220
2926
+ ]
2927
+ }
2928
+ }
2929
+ },
2930
+ {
2931
+ "name": "glam_protocol",
2932
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
2933
+ },
2934
+ {
2935
+ "name": "event_authority",
2936
+ "optional": true,
2937
+ "pda": {
2938
+ "seeds": [
2939
+ {
2940
+ "kind": "const",
2941
+ "value": [
2942
+ 95,
2943
+ 95,
2944
+ 101,
2945
+ 118,
2946
+ 101,
2947
+ 110,
2948
+ 116,
2949
+ 95,
2950
+ 97,
2951
+ 117,
2952
+ 116,
2953
+ 104,
2954
+ 111,
2955
+ 114,
2956
+ 105,
2957
+ 116,
2958
+ 121
2959
+ ]
2960
+ }
2961
+ ]
2962
+ }
2963
+ },
2964
+ {
2965
+ "name": "event_program",
2966
+ "optional": true,
2967
+ "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
2968
+ }
2969
+ ],
2970
+ "args": [
2971
+ {
2972
+ "name": "num_users",
2973
+ "type": "u8"
2974
+ }
2975
+ ]
2976
+ },
2977
+ {
2978
+ "name": "price_drift_vault_depositors",
2979
+ "docs": [
2980
+ "Extra accounts for pricing N vault depositors:",
2981
+ "- (vault_depositor, drift_vault, drift_user) x N",
2982
+ "- spot_market used by drift users of vaults (no specific order)",
2983
+ "- perp markets used by drift users of vaults (no specific order)",
2984
+ "- oracles of spot markets and perp markets (no specific order)",
2985
+ "",
2986
+ "Clients must pre-refresh any stale Drift spot market cumulative interest by",
2987
+ "prepending Drift `update_spot_market_cumulative_interest` instructions for the",
2988
+ "referenced spot markets. Calls will fail with `StaleDriftInterest` if a required",
2989
+ "spot market's cumulative interest is too old."
2990
+ ],
2991
+ "discriminator": [
2992
+ 234,
2993
+ 16,
2994
+ 238,
2995
+ 70,
2996
+ 189,
2997
+ 23,
2998
+ 98,
2999
+ 160
3000
+ ],
3001
+ "accounts": [
3002
+ {
3003
+ "name": "glam_state",
3004
+ "writable": true
3005
+ },
3006
+ {
3007
+ "name": "glam_vault",
3008
+ "pda": {
3009
+ "seeds": [
3010
+ {
3011
+ "kind": "const",
3012
+ "value": [
3013
+ 118,
3014
+ 97,
3015
+ 117,
3016
+ 108,
3017
+ 116
3018
+ ]
3019
+ },
3020
+ {
3021
+ "kind": "account",
3022
+ "path": "glam_state"
3023
+ }
3024
+ ],
3025
+ "program": {
3026
+ "kind": "const",
3027
+ "value": [
3028
+ 10,
3029
+ 55,
3030
+ 49,
3031
+ 193,
3032
+ 142,
3033
+ 247,
3034
+ 75,
3035
+ 193,
3036
+ 33,
3037
+ 61,
3038
+ 5,
3039
+ 218,
3040
+ 254,
3041
+ 219,
3042
+ 143,
3043
+ 206,
3044
+ 156,
3045
+ 138,
3046
+ 14,
3047
+ 32,
3048
+ 89,
3049
+ 232,
3050
+ 248,
3051
+ 173,
3052
+ 46,
3053
+ 77,
3054
+ 46,
3055
+ 206,
3056
+ 189,
3057
+ 171,
3058
+ 68,
3059
+ 237
3060
+ ]
1754
3061
  }
1755
3062
  }
1756
3063
  },
1757
3064
  {
1758
- "name": "decimals",
1759
- "type": {
1760
- "option": "u8"
1761
- }
1762
- }
1763
- ]
1764
- },
1765
- {
1766
- "name": "mint_tokens",
1767
- "discriminator": [
1768
- 59,
1769
- 132,
1770
- 24,
1771
- 246,
1772
- 122,
1773
- 39,
1774
- 8,
1775
- 243
1776
- ],
1777
- "accounts": [
1778
- {
1779
- "name": "glam_state",
1780
- "writable": true
1781
- },
1782
- {
1783
- "name": "glam_signer",
3065
+ "name": "signer",
1784
3066
  "writable": true,
1785
3067
  "signer": true
1786
3068
  },
1787
3069
  {
1788
- "name": "glam_mint",
1789
- "writable": true
3070
+ "name": "sol_usd_oracle"
1790
3071
  },
1791
3072
  {
1792
- "name": "mint_to",
1793
- "writable": true,
3073
+ "name": "base_asset_oracle"
3074
+ },
3075
+ {
3076
+ "name": "integration_authority",
1794
3077
  "pda": {
1795
3078
  "seeds": [
1796
3079
  {
1797
- "kind": "account",
1798
- "path": "recipient"
1799
- },
1800
- {
1801
- "kind": "account",
1802
- "path": "token_2022_program"
1803
- },
3080
+ "kind": "const",
3081
+ "value": [
3082
+ 105,
3083
+ 110,
3084
+ 116,
3085
+ 101,
3086
+ 103,
3087
+ 114,
3088
+ 97,
3089
+ 116,
3090
+ 105,
3091
+ 111,
3092
+ 110,
3093
+ 45,
3094
+ 97,
3095
+ 117,
3096
+ 116,
3097
+ 104,
3098
+ 111,
3099
+ 114,
3100
+ 105,
3101
+ 116,
3102
+ 121
3103
+ ]
3104
+ }
3105
+ ]
3106
+ }
3107
+ },
3108
+ {
3109
+ "name": "glam_config",
3110
+ "pda": {
3111
+ "seeds": [
1804
3112
  {
1805
- "kind": "account",
1806
- "path": "glam_mint"
3113
+ "kind": "const",
3114
+ "value": [
3115
+ 103,
3116
+ 108,
3117
+ 111,
3118
+ 98,
3119
+ 97,
3120
+ 108,
3121
+ 45,
3122
+ 99,
3123
+ 111,
3124
+ 110,
3125
+ 102,
3126
+ 105,
3127
+ 103
3128
+ ]
1807
3129
  }
1808
3130
  ],
1809
3131
  "program": {
1810
3132
  "kind": "const",
1811
3133
  "value": [
1812
- 140,
1813
- 151,
1814
- 37,
1815
- 143,
1816
- 78,
1817
- 36,
1818
- 137,
1819
- 241,
1820
- 187,
1821
- 61,
1822
- 16,
1823
- 41,
1824
- 20,
1825
- 142,
1826
- 13,
1827
- 131,
3134
+ 10,
1828
3135
  11,
1829
- 90,
1830
- 19,
1831
- 153,
1832
- 218,
1833
- 255,
3136
+ 0,
3137
+ 83,
3138
+ 72,
1834
3139
  16,
1835
- 132,
1836
- 4,
1837
- 142,
3140
+ 46,
3141
+ 144,
3142
+ 46,
3143
+ 42,
3144
+ 79,
3145
+ 22,
3146
+ 157,
1838
3147
  123,
1839
- 216,
1840
- 219,
1841
- 233,
1842
- 248,
1843
- 89
3148
+ 21,
3149
+ 242,
3150
+ 192,
3151
+ 146,
3152
+ 1,
3153
+ 78,
3154
+ 88,
3155
+ 59,
3156
+ 102,
3157
+ 9,
3158
+ 190,
3159
+ 226,
3160
+ 92,
3161
+ 189,
3162
+ 187,
3163
+ 232,
3164
+ 83,
3165
+ 220
1844
3166
  ]
1845
3167
  }
1846
3168
  }
1847
3169
  },
1848
3170
  {
1849
- "name": "recipient",
1850
- "writable": true
1851
- },
1852
- {
1853
- "name": "policy_account",
1854
- "writable": true,
1855
- "optional": true
1856
- },
1857
- {
1858
- "name": "system_program",
1859
- "address": "11111111111111111111111111111111"
3171
+ "name": "glam_protocol",
3172
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
1860
3173
  },
1861
3174
  {
1862
- "name": "token_2022_program",
1863
- "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
3175
+ "name": "event_authority",
3176
+ "optional": true,
3177
+ "pda": {
3178
+ "seeds": [
3179
+ {
3180
+ "kind": "const",
3181
+ "value": [
3182
+ 95,
3183
+ 95,
3184
+ 101,
3185
+ 118,
3186
+ 101,
3187
+ 110,
3188
+ 116,
3189
+ 95,
3190
+ 97,
3191
+ 117,
3192
+ 116,
3193
+ 104,
3194
+ 111,
3195
+ 114,
3196
+ 105,
3197
+ 116,
3198
+ 121
3199
+ ]
3200
+ }
3201
+ ]
3202
+ }
1864
3203
  },
1865
3204
  {
1866
- "name": "policies_program",
1867
- "address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
3205
+ "name": "event_program",
3206
+ "optional": true,
3207
+ "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
1868
3208
  }
1869
3209
  ],
1870
3210
  "args": [
1871
3211
  {
1872
- "name": "amount",
1873
- "type": "u64"
3212
+ "name": "num_vault_depositors",
3213
+ "type": "u8"
3214
+ },
3215
+ {
3216
+ "name": "num_spot_markets",
3217
+ "type": "u8"
3218
+ },
3219
+ {
3220
+ "name": "num_perp_markets",
3221
+ "type": "u8"
1874
3222
  }
1875
3223
  ]
1876
3224
  },
1877
3225
  {
1878
- "name": "price_drift_users",
3226
+ "name": "price_external_positions",
1879
3227
  "docs": [
1880
- "Extra accounts for pricing N drift users under the same user stats:",
1881
- "- user_stats x 1",
1882
- "- drift_user x N",
1883
- "- markets and oracles used by all drift users (no specific order)"
3228
+ "Price external positions for a vault",
3229
+ "",
3230
+ "Extra accounts required:",
3231
+ "- Observation state account"
1884
3232
  ],
1885
3233
  "discriminator": [
1886
- 12,
1887
- 5,
1888
- 143,
1889
- 51,
1890
- 101,
1891
- 81,
1892
- 200,
1893
- 150
3234
+ 94,
3235
+ 199,
3236
+ 82,
3237
+ 243,
3238
+ 235,
3239
+ 193,
3240
+ 4,
3241
+ 144
1894
3242
  ],
1895
3243
  "accounts": [
1896
3244
  {
@@ -2101,31 +3449,25 @@
2101
3449
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
2102
3450
  }
2103
3451
  ],
2104
- "args": [
2105
- {
2106
- "name": "num_users",
2107
- "type": "u8"
2108
- }
2109
- ]
3452
+ "args": []
2110
3453
  },
2111
- {
2112
- "name": "price_drift_vault_depositors",
2113
- "docs": [
2114
- "Extra accounts for pricing N vault depositors:",
2115
- "- (vault_depositor, drift_vault, drift_user) x N",
2116
- "- spot_market used by drift users of vaults (no specific order)",
2117
- "- perp markets used by drift users of vaults (no specific order)",
2118
- "- oracles of spot markets and perp markets (no specific order)"
3454
+ {
3455
+ "name": "price_kamino_obligations",
3456
+ "docs": [
3457
+ "Prices Kamino obligations. Reserves and obligations must be refreshed in the same slot before calling this ix.",
3458
+ "",
3459
+ "Extra accounts for pricing N kamino obligations:",
3460
+ "- obligations x N"
2119
3461
  ],
2120
3462
  "discriminator": [
3463
+ 166,
3464
+ 110,
2121
3465
  234,
2122
- 16,
2123
- 238,
2124
- 70,
2125
- 189,
2126
- 23,
2127
- 98,
2128
- 160
3466
+ 179,
3467
+ 240,
3468
+ 179,
3469
+ 69,
3470
+ 246
2129
3471
  ],
2130
3472
  "accounts": [
2131
3473
  {
@@ -2336,38 +3678,29 @@
2336
3678
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
2337
3679
  }
2338
3680
  ],
2339
- "args": [
2340
- {
2341
- "name": "num_vault_depositors",
2342
- "type": "u8"
2343
- },
2344
- {
2345
- "name": "num_spot_markets",
2346
- "type": "u8"
2347
- },
2348
- {
2349
- "name": "num_perp_markets",
2350
- "type": "u8"
2351
- }
2352
- ]
3681
+ "args": []
2353
3682
  },
2354
3683
  {
2355
- "name": "price_kamino_obligations",
3684
+ "name": "price_kamino_vault_shares",
2356
3685
  "docs": [
2357
- "Prices Kamino obligations. Reserves and obligations must be refreshed in the same slot before calling this ix.",
3686
+ "Prices Kamino vault shares.",
3687
+ "- `num_vaults` Number of kamino vaults to price.",
2358
3688
  "",
2359
- "Extra accounts for pricing N kamino obligations:",
2360
- "- obligations x N"
3689
+ "Extra accounts for pricing N kamino vault shares:",
3690
+ "- (kvault_share_ata, kvault_share_mint, kvault_state, kvault_deposit_token_oracle) x N",
3691
+ "- reserve x M",
3692
+ "- M = number of reserves used by all kvaults' allocations",
3693
+ "- reserve pubkeys must follow the same order of reserves used by each allocation"
2361
3694
  ],
2362
3695
  "discriminator": [
2363
- 166,
2364
- 110,
2365
- 234,
2366
- 179,
2367
- 240,
2368
- 179,
2369
- 69,
2370
- 246
3696
+ 112,
3697
+ 92,
3698
+ 238,
3699
+ 224,
3700
+ 145,
3701
+ 105,
3702
+ 38,
3703
+ 249
2371
3704
  ],
2372
3705
  "accounts": [
2373
3706
  {
@@ -2578,29 +3911,30 @@
2578
3911
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
2579
3912
  }
2580
3913
  ],
2581
- "args": []
3914
+ "args": [
3915
+ {
3916
+ "name": "num_vaults",
3917
+ "type": "u8"
3918
+ }
3919
+ ]
2582
3920
  },
2583
3921
  {
2584
- "name": "price_kamino_vault_shares",
3922
+ "name": "price_loopscale_loans",
2585
3923
  "docs": [
2586
- "Prices Kamino vault shares.",
2587
- "- `num_vaults` Number of kamino vaults to price.",
3924
+ "Price LoopScale loans for a vault",
2588
3925
  "",
2589
- "Extra accounts for pricing N kamino vault shares:",
2590
- "- (kvault_share_ata, kvault_share_mint, kvault_state, kvault_deposit_token_oracle) x N",
2591
- "- reserve x M",
2592
- "- M = number of reserves used by all kvaults' allocations",
2593
- "- reserve pubkeys must follow the same order of reserves used by each allocation"
3926
+ "Extra accounts for pricing N loans:",
3927
+ "- N loan accounts"
2594
3928
  ],
2595
3929
  "discriminator": [
2596
- 112,
2597
- 92,
2598
- 238,
2599
- 224,
2600
- 145,
2601
- 105,
2602
- 38,
2603
- 249
3930
+ 106,
3931
+ 180,
3932
+ 138,
3933
+ 193,
3934
+ 90,
3935
+ 3,
3936
+ 24,
3937
+ 42
2604
3938
  ],
2605
3939
  "accounts": [
2606
3940
  {
@@ -2811,12 +4145,7 @@
2811
4145
  "address": "gstgm1M39mhgnvgyScGUDRwNn5kNVSd97hTtyow1Et5"
2812
4146
  }
2813
4147
  ],
2814
- "args": [
2815
- {
2816
- "name": "num_vaults",
2817
- "type": "u8"
2818
- }
2819
- ]
4148
+ "args": []
2820
4149
  },
2821
4150
  {
2822
4151
  "name": "price_single_asset_vault",
@@ -4360,97 +5689,305 @@
4360
5689
  }
4361
5690
  },
4362
5691
  {
4363
- "name": "signer_deposit_ata",
5692
+ "name": "signer_deposit_ata",
5693
+ "writable": true,
5694
+ "pda": {
5695
+ "seeds": [
5696
+ {
5697
+ "kind": "account",
5698
+ "path": "signer"
5699
+ },
5700
+ {
5701
+ "kind": "account",
5702
+ "path": "deposit_token_program"
5703
+ },
5704
+ {
5705
+ "kind": "account",
5706
+ "path": "deposit_asset"
5707
+ }
5708
+ ],
5709
+ "program": {
5710
+ "kind": "const",
5711
+ "value": [
5712
+ 140,
5713
+ 151,
5714
+ 37,
5715
+ 143,
5716
+ 78,
5717
+ 36,
5718
+ 137,
5719
+ 241,
5720
+ 187,
5721
+ 61,
5722
+ 16,
5723
+ 41,
5724
+ 20,
5725
+ 142,
5726
+ 13,
5727
+ 131,
5728
+ 11,
5729
+ 90,
5730
+ 19,
5731
+ 153,
5732
+ 218,
5733
+ 255,
5734
+ 16,
5735
+ 132,
5736
+ 4,
5737
+ 142,
5738
+ 123,
5739
+ 216,
5740
+ 219,
5741
+ 233,
5742
+ 248,
5743
+ 89
5744
+ ]
5745
+ }
5746
+ }
5747
+ },
5748
+ {
5749
+ "name": "signer_policy",
5750
+ "writable": true,
5751
+ "optional": true
5752
+ },
5753
+ {
5754
+ "name": "system_program",
5755
+ "address": "11111111111111111111111111111111"
5756
+ },
5757
+ {
5758
+ "name": "deposit_token_program"
5759
+ },
5760
+ {
5761
+ "name": "token_2022_program",
5762
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
5763
+ },
5764
+ {
5765
+ "name": "associated_token_program",
5766
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
5767
+ },
5768
+ {
5769
+ "name": "policies_program",
5770
+ "address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
5771
+ },
5772
+ {
5773
+ "name": "glam_protocol_program",
5774
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
5775
+ }
5776
+ ],
5777
+ "args": [
5778
+ {
5779
+ "name": "amount_in",
5780
+ "type": "u64"
5781
+ }
5782
+ ]
5783
+ },
5784
+ {
5785
+ "name": "token_acl_freeze",
5786
+ "discriminator": [
5787
+ 208,
5788
+ 39,
5789
+ 70,
5790
+ 196,
5791
+ 226,
5792
+ 118,
5793
+ 235,
5794
+ 31
5795
+ ],
5796
+ "accounts": [
5797
+ {
5798
+ "name": "glam_state"
5799
+ },
5800
+ {
5801
+ "name": "glam_signer",
5802
+ "writable": true,
5803
+ "signer": true
5804
+ },
5805
+ {
5806
+ "name": "glam_mint",
5807
+ "writable": true
5808
+ },
5809
+ {
5810
+ "name": "mint_config",
5811
+ "pda": {
5812
+ "seeds": [
5813
+ {
5814
+ "kind": "const",
5815
+ "value": [
5816
+ 77,
5817
+ 73,
5818
+ 78,
5819
+ 84,
5820
+ 95,
5821
+ 67,
5822
+ 79,
5823
+ 78,
5824
+ 70,
5825
+ 73,
5826
+ 71
5827
+ ]
5828
+ },
5829
+ {
5830
+ "kind": "account",
5831
+ "path": "glam_mint"
5832
+ }
5833
+ ],
5834
+ "program": {
5835
+ "kind": "const",
5836
+ "value": [
5837
+ 6,
5838
+ 179,
5839
+ 127,
5840
+ 154,
5841
+ 112,
5842
+ 244,
5843
+ 6,
5844
+ 234,
5845
+ 54,
5846
+ 211,
5847
+ 41,
5848
+ 245,
5849
+ 148,
5850
+ 165,
5851
+ 22,
5852
+ 5,
5853
+ 150,
5854
+ 15,
5855
+ 242,
5856
+ 225,
5857
+ 55,
5858
+ 23,
5859
+ 91,
5860
+ 46,
5861
+ 218,
5862
+ 0,
5863
+ 102,
5864
+ 202,
5865
+ 50,
5866
+ 58,
5867
+ 107,
5868
+ 206
5869
+ ]
5870
+ }
5871
+ }
5872
+ },
5873
+ {
5874
+ "name": "token_acl_program",
5875
+ "address": "TACLkU6CiCdkQN2MjoyDkVg2yAH9zkxiHDsiztQ52TP"
5876
+ },
5877
+ {
5878
+ "name": "token_2022_program",
5879
+ "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
5880
+ },
5881
+ {
5882
+ "name": "glam_protocol",
5883
+ "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
5884
+ }
5885
+ ],
5886
+ "args": []
5887
+ },
5888
+ {
5889
+ "name": "token_acl_thaw",
5890
+ "discriminator": [
5891
+ 8,
5892
+ 45,
5893
+ 41,
5894
+ 107,
5895
+ 188,
5896
+ 132,
5897
+ 187,
5898
+ 55
5899
+ ],
5900
+ "accounts": [
5901
+ {
5902
+ "name": "glam_state"
5903
+ },
5904
+ {
5905
+ "name": "glam_signer",
4364
5906
  "writable": true,
5907
+ "signer": true
5908
+ },
5909
+ {
5910
+ "name": "glam_mint",
5911
+ "writable": true
5912
+ },
5913
+ {
5914
+ "name": "mint_config",
4365
5915
  "pda": {
4366
5916
  "seeds": [
4367
5917
  {
4368
- "kind": "account",
4369
- "path": "signer"
4370
- },
4371
- {
4372
- "kind": "account",
4373
- "path": "deposit_token_program"
5918
+ "kind": "const",
5919
+ "value": [
5920
+ 77,
5921
+ 73,
5922
+ 78,
5923
+ 84,
5924
+ 95,
5925
+ 67,
5926
+ 79,
5927
+ 78,
5928
+ 70,
5929
+ 73,
5930
+ 71
5931
+ ]
4374
5932
  },
4375
5933
  {
4376
5934
  "kind": "account",
4377
- "path": "deposit_asset"
5935
+ "path": "glam_mint"
4378
5936
  }
4379
5937
  ],
4380
5938
  "program": {
4381
5939
  "kind": "const",
4382
5940
  "value": [
4383
- 140,
4384
- 151,
4385
- 37,
4386
- 143,
4387
- 78,
4388
- 36,
4389
- 137,
4390
- 241,
4391
- 187,
4392
- 61,
4393
- 16,
5941
+ 6,
5942
+ 179,
5943
+ 127,
5944
+ 154,
5945
+ 112,
5946
+ 244,
5947
+ 6,
5948
+ 234,
5949
+ 54,
5950
+ 211,
4394
5951
  41,
4395
- 20,
4396
- 142,
4397
- 13,
4398
- 131,
4399
- 11,
4400
- 90,
4401
- 19,
4402
- 153,
5952
+ 245,
5953
+ 148,
5954
+ 165,
5955
+ 22,
5956
+ 5,
5957
+ 150,
5958
+ 15,
5959
+ 242,
5960
+ 225,
5961
+ 55,
5962
+ 23,
5963
+ 91,
5964
+ 46,
4403
5965
  218,
4404
- 255,
4405
- 16,
4406
- 132,
4407
- 4,
4408
- 142,
4409
- 123,
4410
- 216,
4411
- 219,
4412
- 233,
4413
- 248,
4414
- 89
5966
+ 0,
5967
+ 102,
5968
+ 202,
5969
+ 50,
5970
+ 58,
5971
+ 107,
5972
+ 206
4415
5973
  ]
4416
5974
  }
4417
5975
  }
4418
5976
  },
4419
5977
  {
4420
- "name": "signer_policy",
4421
- "writable": true,
4422
- "optional": true
4423
- },
4424
- {
4425
- "name": "system_program",
4426
- "address": "11111111111111111111111111111111"
4427
- },
4428
- {
4429
- "name": "deposit_token_program"
5978
+ "name": "token_acl_program",
5979
+ "address": "TACLkU6CiCdkQN2MjoyDkVg2yAH9zkxiHDsiztQ52TP"
4430
5980
  },
4431
5981
  {
4432
5982
  "name": "token_2022_program",
4433
5983
  "address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
4434
5984
  },
4435
5985
  {
4436
- "name": "associated_token_program",
4437
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
4438
- },
4439
- {
4440
- "name": "policies_program",
4441
- "address": "po1iCYakK3gHCLbuju4wGzFowTMpAJxkqK1iwUqMonY"
4442
- },
4443
- {
4444
- "name": "glam_protocol_program",
5986
+ "name": "glam_protocol",
4445
5987
  "address": "gstgptmbgJVi5f8ZmSRVZjZkDQwqKa3xWuUtD5WmJHz"
4446
5988
  }
4447
5989
  ],
4448
- "args": [
4449
- {
4450
- "name": "amount_in",
4451
- "type": "u64"
4452
- }
4453
- ]
5990
+ "args": []
4454
5991
  },
4455
5992
  {
4456
5993
  "name": "update_mint",
@@ -4637,6 +6174,19 @@
4637
6174
  }
4638
6175
  ],
4639
6176
  "accounts": [
6177
+ {
6178
+ "name": "GlobalConfig",
6179
+ "discriminator": [
6180
+ 149,
6181
+ 8,
6182
+ 156,
6183
+ 202,
6184
+ 160,
6185
+ 252,
6186
+ 176,
6187
+ 217
6188
+ ]
6189
+ },
4640
6190
  {
4641
6191
  "name": "RequestQueue",
4642
6192
  "discriminator": [
@@ -4711,7 +6261,7 @@
4711
6261
  {
4712
6262
  "code": 6003,
4713
6263
  "name": "InvalidAsset",
4714
- "msg": "Invalid asset"
6264
+ "msg": "Asset not allowed to subscribe"
4715
6265
  },
4716
6266
  {
4717
6267
  "code": 6004,
@@ -4765,18 +6315,33 @@
4765
6315
  },
4766
6316
  {
4767
6317
  "code": 6014,
6318
+ "name": "AmountBelowMinimum",
6319
+ "msg": "Amount is below the minimum required"
6320
+ },
6321
+ {
6322
+ "code": 6015,
4768
6323
  "name": "ManagerFeesNotCrystallized",
4769
6324
  "msg": "Manager fees should be crystallized before updating"
4770
6325
  },
4771
6326
  {
4772
- "code": 6015,
6327
+ "code": 6016,
6328
+ "name": "AmountAboveMaximum",
6329
+ "msg": "Amount exceeds maximum threshold"
6330
+ },
6331
+ {
6332
+ "code": 6017,
4773
6333
  "name": "InsufficientEscrowBalance",
4774
6334
  "msg": "Insufficient escrow balance for fee burn"
4775
6335
  },
4776
6336
  {
4777
- "code": 6016,
4778
- "name": "AmountBelowMinimum",
4779
- "msg": "Amount below minimum threshold"
6337
+ "code": 6018,
6338
+ "name": "TokenAclManagesFreezeThaw",
6339
+ "msg": "Token ACL is enabled; freeze/thaw is managed by the Token ACL program"
6340
+ },
6341
+ {
6342
+ "code": 6019,
6343
+ "name": "InvalidMintState",
6344
+ "msg": "Invalid mint state"
4780
6345
  }
4781
6346
  ],
4782
6347
  "types": [
@@ -4840,6 +6405,51 @@
4840
6405
  ]
4841
6406
  }
4842
6407
  },
6408
+ {
6409
+ "name": "AssetMeta",
6410
+ "type": {
6411
+ "kind": "struct",
6412
+ "fields": [
6413
+ {
6414
+ "name": "asset",
6415
+ "type": "pubkey"
6416
+ },
6417
+ {
6418
+ "name": "decimals",
6419
+ "type": "u8"
6420
+ },
6421
+ {
6422
+ "name": "oracle",
6423
+ "type": "pubkey"
6424
+ },
6425
+ {
6426
+ "name": "oracle_source",
6427
+ "type": {
6428
+ "defined": {
6429
+ "name": "OracleSource"
6430
+ }
6431
+ }
6432
+ },
6433
+ {
6434
+ "name": "max_age_seconds",
6435
+ "type": "u16"
6436
+ },
6437
+ {
6438
+ "name": "priority",
6439
+ "type": "i8"
6440
+ },
6441
+ {
6442
+ "name": "padding",
6443
+ "type": {
6444
+ "array": [
6445
+ "u8",
6446
+ 3
6447
+ ]
6448
+ }
6449
+ }
6450
+ ]
6451
+ }
6452
+ },
4843
6453
  {
4844
6454
  "name": "AumRecord",
4845
6455
  "type": {
@@ -5294,6 +6904,62 @@
5294
6904
  ]
5295
6905
  }
5296
6906
  },
6907
+ {
6908
+ "name": "GlobalConfig",
6909
+ "type": {
6910
+ "kind": "struct",
6911
+ "fields": [
6912
+ {
6913
+ "name": "admin",
6914
+ "docs": [
6915
+ "The authority that can modify the config"
6916
+ ],
6917
+ "type": "pubkey"
6918
+ },
6919
+ {
6920
+ "name": "fee_authority",
6921
+ "docs": [
6922
+ "The authority that can modify fee structure of individual glam state and claim protocol fees"
6923
+ ],
6924
+ "type": "pubkey"
6925
+ },
6926
+ {
6927
+ "name": "referrer",
6928
+ "docs": [
6929
+ "Default GLAM referrer"
6930
+ ],
6931
+ "type": "pubkey"
6932
+ },
6933
+ {
6934
+ "name": "base_fee_bps",
6935
+ "docs": [
6936
+ "Default protocol base fee applied to all vaults"
6937
+ ],
6938
+ "type": "u16"
6939
+ },
6940
+ {
6941
+ "name": "flow_fee_bps",
6942
+ "docs": [
6943
+ "Default protocol flow fee applied to all vaults"
6944
+ ],
6945
+ "type": "u16"
6946
+ },
6947
+ {
6948
+ "name": "asset_metas",
6949
+ "docs": [
6950
+ "List of assets and their oracle configs supported by the protocol"
6951
+ ],
6952
+ "type": {
6953
+ "vec": {
6954
+ "defined": {
6955
+ "name": "AssetMeta"
6956
+ }
6957
+ }
6958
+ }
6959
+ }
6960
+ ]
6961
+ }
6962
+ },
5297
6963
  {
5298
6964
  "name": "HurdleType",
5299
6965
  "type": {
@@ -5650,6 +7316,83 @@
5650
7316
  ]
5651
7317
  }
5652
7318
  },
7319
+ {
7320
+ "name": "OracleSource",
7321
+ "type": {
7322
+ "kind": "enum",
7323
+ "variants": [
7324
+ {
7325
+ "name": "Pyth"
7326
+ },
7327
+ {
7328
+ "name": "Switchboard"
7329
+ },
7330
+ {
7331
+ "name": "QuoteAsset"
7332
+ },
7333
+ {
7334
+ "name": "Pyth1K"
7335
+ },
7336
+ {
7337
+ "name": "Pyth1M"
7338
+ },
7339
+ {
7340
+ "name": "PythStableCoin"
7341
+ },
7342
+ {
7343
+ "name": "Prelaunch"
7344
+ },
7345
+ {
7346
+ "name": "PythPull"
7347
+ },
7348
+ {
7349
+ "name": "Pyth1KPull"
7350
+ },
7351
+ {
7352
+ "name": "Pyth1MPull"
7353
+ },
7354
+ {
7355
+ "name": "PythStableCoinPull"
7356
+ },
7357
+ {
7358
+ "name": "SwitchboardOnDemand"
7359
+ },
7360
+ {
7361
+ "name": "PythLazer"
7362
+ },
7363
+ {
7364
+ "name": "PythLazer1K"
7365
+ },
7366
+ {
7367
+ "name": "PythLazer1M"
7368
+ },
7369
+ {
7370
+ "name": "PythLazerStableCoin"
7371
+ },
7372
+ {
7373
+ "name": "NotSet"
7374
+ },
7375
+ {
7376
+ "name": "LstPoolState"
7377
+ },
7378
+ {
7379
+ "name": "MarinadeState"
7380
+ },
7381
+ {
7382
+ "name": "BaseAsset"
7383
+ },
7384
+ {
7385
+ "name": "ChainlinkRWA"
7386
+ },
7387
+ {
7388
+ "name": "ChainlinkX"
7389
+ },
7390
+ {
7391
+ "name": "KaminoReserve"
7392
+ }
7393
+ ]
7394
+ }
7395
+ },
5653
7396
  {
5654
7397
  "name": "PendingRequest",
5655
7398
  "type": {
@@ -6087,6 +7830,21 @@
6087
7830
  "name": "PROTO_MINT_PERM_SET_TOKEN_ACCOUNT_STATE",
6088
7831
  "type": "u64",
6089
7832
  "value": "8"
7833
+ },
7834
+ {
7835
+ "name": "PROTO_MINT_PERM_TOKEN_ACL_APPLY_LIST",
7836
+ "type": "u64",
7837
+ "value": "2048"
7838
+ },
7839
+ {
7840
+ "name": "PROTO_MINT_PERM_TOKEN_ACL_FREEZE_THAW",
7841
+ "type": "u64",
7842
+ "value": "512"
7843
+ },
7844
+ {
7845
+ "name": "PROTO_MINT_PERM_TOKEN_ACL_MANAGE_LIST",
7846
+ "type": "u64",
7847
+ "value": "1024"
6090
7848
  }
6091
7849
  ]
6092
7850
  }