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