@glamsystems/glam-sdk 1.1.0-alpha.6 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/LICENSE +201 -0
  2. package/buffer-layout.d.ts +88 -0
  3. package/index.cjs.d.ts +1 -0
  4. package/index.cjs.js +1 -92594
  5. package/index.esm.d.ts +1 -0
  6. package/index.esm.js +1 -92146
  7. package/package.json +29 -17
  8. package/src/assets.d.ts +39 -0
  9. package/src/client/access.d.ts +57 -0
  10. package/src/client/base.d.ts +234 -0
  11. package/src/client/bridge.d.ts +205 -0
  12. package/src/client/bridgeRegistry.d.ts +32 -0
  13. package/src/client/cctp.d.ts +164 -0
  14. package/src/client/epi.d.ts +228 -0
  15. package/src/client/fees.d.ts +33 -0
  16. package/src/client/invest.d.ts +37 -0
  17. package/src/client/jupiter-lend/borrow.d.ts +92 -0
  18. package/src/client/jupiter-lend/earn.d.ts +64 -0
  19. package/src/client/jupiter-lend/index.d.ts +3 -0
  20. package/src/client/jupiter-lend/shared.d.ts +129 -0
  21. package/src/client/jupiter.d.ts +53 -0
  22. package/src/client/kamino/farm.d.ts +39 -0
  23. package/src/client/kamino/index.d.ts +4 -0
  24. package/src/client/kamino/lending.d.ts +94 -0
  25. package/src/client/kamino/types.d.ts +56 -0
  26. package/src/client/kamino/vaults.d.ts +39 -0
  27. package/src/client/loopscale/borrow.d.ts +118 -0
  28. package/src/client/loopscale/core.d.ts +604 -0
  29. package/src/client/loopscale/index.d.ts +5 -0
  30. package/src/client/loopscale/lend.d.ts +123 -0
  31. package/src/client/loopscale/vault.d.ts +43 -0
  32. package/src/client/marinade.d.ts +42 -0
  33. package/src/client/mint.d.ts +143 -0
  34. package/src/client/orca.d.ts +255 -0
  35. package/src/client/phoenix.d.ts +214 -0
  36. package/src/client/price.d.ts +182 -0
  37. package/src/client/stake-pool.d.ts +39 -0
  38. package/src/client/stake.d.ts +34 -0
  39. package/src/client/state.d.ts +56 -0
  40. package/src/client/timelock.d.ts +31 -0
  41. package/src/client/vault.d.ts +98 -0
  42. package/src/client.d.ts +82 -0
  43. package/src/clientConfig.d.ts +32 -0
  44. package/src/constants.d.ts +111 -0
  45. package/src/deser/base.d.ts +18 -0
  46. package/src/deser/index.d.ts +4 -0
  47. package/src/deser/integrationPolicies.d.ts +195 -0
  48. package/src/deser/kaminoLayouts.d.ts +264 -0
  49. package/src/deser/loopscaleLayouts.d.ts +157 -0
  50. package/src/deser/tokenAclLayouts.d.ts +67 -0
  51. package/src/error.d.ts +29 -0
  52. package/src/glamExports.d.ts +6260 -0
  53. package/src/globalConfig.d.ts +27 -0
  54. package/src/index.d.ts +24 -0
  55. package/src/models/acl.d.ts +43 -0
  56. package/src/models/index.d.ts +8 -0
  57. package/src/models/mint.d.ts +57 -0
  58. package/src/models/state.d.ts +94 -0
  59. package/src/models/types.d.ts +28 -0
  60. package/src/protocols.d.ts +29 -0
  61. package/src/utils/accounts.d.ts +71 -0
  62. package/src/utils/bitmask.d.ts +53 -0
  63. package/src/utils/blockhash.d.ts +11 -0
  64. package/src/utils/common.d.ts +73 -0
  65. package/src/utils/computeBudget.d.ts +15 -0
  66. package/src/utils/evm.d.ts +10 -0
  67. package/src/utils/fraction.d.ts +29 -0
  68. package/src/utils/glamPDAs.d.ts +15 -0
  69. package/src/utils/helius.d.ts +66 -0
  70. package/src/utils/index.d.ts +17 -0
  71. package/src/utils/jupiterApi.d.ts +95 -0
  72. package/src/utils/lookupTables.d.ts +83 -0
  73. package/src/utils/phoenixApi.d.ts +146 -0
  74. package/src/utils/pkmap.d.ts +87 -0
  75. package/src/utils/pkset.d.ts +73 -0
  76. package/src/utils/positionCategorizer.d.ts +38 -0
  77. package/src/utils/rpc.d.ts +18 -0
  78. package/src/utils/timelock.d.ts +52 -0
  79. package/src/utils/transaction.d.ts +13 -0
  80. package/target/idl/ext_bridge-staging.json +2379 -0
  81. package/target/idl/ext_bridge.json +2379 -0
  82. package/target/idl/ext_drift.json +5464 -0
  83. package/target/idl/ext_epi-staging.json +2862 -0
  84. package/target/idl/ext_epi.json +2862 -0
  85. package/target/idl/ext_loopscale-staging.json +4708 -0
  86. package/target/idl/ext_loopscale.json +4708 -0
  87. package/target/idl/ext_marinade-staging.json +1587 -0
  88. package/target/idl/ext_phoenix-staging.json +3525 -0
  89. package/target/idl/ext_phoenix.json +3525 -0
  90. package/target/idl/mock_layerzero_endpoint.json +144 -0
  91. package/target/idl/mock_layerzero_oft.json +155 -0
  92. package/target/idl/mock_wormhole_verify_vaa_shim.json +58 -0
  93. package/target/types/ext_bridge-staging.d.ts +2385 -0
  94. package/target/types/ext_bridge-staging.ts +2385 -0
  95. package/target/types/ext_bridge.d.ts +2385 -0
  96. package/target/types/ext_bridge.ts +2385 -0
  97. package/target/types/ext_cctp-staging.d.ts +1268 -0
  98. package/target/types/ext_cctp.d.ts +1268 -0
  99. package/target/types/ext_drift.d.ts +5470 -0
  100. package/target/types/ext_drift.ts +5470 -0
  101. package/target/types/ext_epi-staging.d.ts +2868 -0
  102. package/target/types/ext_epi-staging.ts +2868 -0
  103. package/target/types/ext_epi.d.ts +2868 -0
  104. package/target/types/ext_epi.ts +2868 -0
  105. package/target/types/ext_jupiter-staging.d.ts +1966 -0
  106. package/target/types/ext_jupiter.d.ts +1966 -0
  107. package/target/types/ext_kamino-staging.d.ts +3433 -0
  108. package/target/types/ext_kamino.d.ts +3433 -0
  109. package/target/types/ext_loopscale-staging.d.ts +4714 -0
  110. package/target/types/ext_loopscale-staging.ts +4714 -0
  111. package/target/types/ext_loopscale.d.ts +4714 -0
  112. package/target/types/ext_loopscale.ts +4714 -0
  113. package/target/types/ext_marinade-staging.d.ts +1593 -0
  114. package/target/types/ext_marinade-staging.ts +1593 -0
  115. package/target/types/ext_marinade.d.ts +1593 -0
  116. package/target/types/ext_orca-staging.d.ts +2829 -0
  117. package/target/types/ext_orca.d.ts +2829 -0
  118. package/target/types/ext_phoenix-staging.d.ts +3531 -0
  119. package/target/types/ext_phoenix-staging.ts +3531 -0
  120. package/target/types/ext_phoenix.d.ts +3531 -0
  121. package/target/types/ext_phoenix.ts +3531 -0
  122. package/target/types/ext_spl-staging.d.ts +1274 -0
  123. package/target/types/ext_spl.d.ts +1274 -0
  124. package/target/types/ext_stake_pool-staging.d.ts +1622 -0
  125. package/target/types/ext_stake_pool.d.ts +1622 -0
  126. package/target/types/glam_config.d.ts +755 -0
  127. package/target/types/glam_mint-staging.d.ts +8802 -0
  128. package/target/types/glam_mint.d.ts +6349 -0
  129. package/target/types/glam_policies.d.ts +477 -0
  130. package/target/types/glam_protocol-staging.d.ts +3362 -0
  131. package/target/types/glam_protocol.d.ts +2783 -0
  132. package/target/types/mock_layerzero_endpoint.d.ts +150 -0
  133. package/target/types/mock_layerzero_endpoint.ts +150 -0
  134. package/target/types/mock_layerzero_oft.d.ts +161 -0
  135. package/target/types/mock_layerzero_oft.ts +161 -0
  136. package/target/types/mock_wormhole_verify_vaa_shim.d.ts +64 -0
  137. package/target/types/mock_wormhole_verify_vaa_shim.ts +64 -0
@@ -0,0 +1,1966 @@
1
+ /**
2
+ * Program IDL in camelCase format in order to be used in JS/TS.
3
+ *
4
+ * Note that this is only a type helper and is not the actual IDL. The original
5
+ * IDL can be found at `target/idl/ext_jupiter.json`.
6
+ */
7
+ export type ExtJupiter = {
8
+ "address": "G1NTJX2noRfJeKS7NDgjsqUXcJ7R9yARED1LQvg7iwSK";
9
+ "metadata": {
10
+ "name": "extJupiter";
11
+ "version": "0.1.0";
12
+ "spec": "0.1.0";
13
+ "description": "Jupiter Lend integration for GLAM Protocol";
14
+ };
15
+ "instructions": [
16
+ {
17
+ "name": "borrowInitPosition";
18
+ "docs": [
19
+ "Initialize a Jupiter Borrow position NFT owned by the GLAM vault.",
20
+ "",
21
+ "- Permission: `BorrowPermissions::InitPosition`.",
22
+ "- Policy: `vault_state` must be in `BorrowPolicy::vaults_allowlist`."
23
+ ];
24
+ "discriminator": [
25
+ 92,
26
+ 209,
27
+ 176,
28
+ 14,
29
+ 75,
30
+ 243,
31
+ 107,
32
+ 230
33
+ ];
34
+ "accounts": [
35
+ {
36
+ "name": "glamState";
37
+ "writable": true;
38
+ },
39
+ {
40
+ "name": "glamVault";
41
+ "writable": true;
42
+ "pda": {
43
+ "seeds": [
44
+ {
45
+ "kind": "const";
46
+ "value": [
47
+ 118,
48
+ 97,
49
+ 117,
50
+ 108,
51
+ 116
52
+ ];
53
+ },
54
+ {
55
+ "kind": "account";
56
+ "path": "glamState";
57
+ }
58
+ ];
59
+ "program": {
60
+ "kind": "account";
61
+ "path": "glamProtocolProgram";
62
+ };
63
+ };
64
+ },
65
+ {
66
+ "name": "glamSigner";
67
+ "writable": true;
68
+ "signer": true;
69
+ },
70
+ {
71
+ "name": "integrationAuthority";
72
+ "pda": {
73
+ "seeds": [
74
+ {
75
+ "kind": "const";
76
+ "value": [
77
+ 105,
78
+ 110,
79
+ 116,
80
+ 101,
81
+ 103,
82
+ 114,
83
+ 97,
84
+ 116,
85
+ 105,
86
+ 111,
87
+ 110,
88
+ 45,
89
+ 97,
90
+ 117,
91
+ 116,
92
+ 104,
93
+ 111,
94
+ 114,
95
+ 105,
96
+ 116,
97
+ 121
98
+ ];
99
+ }
100
+ ];
101
+ };
102
+ },
103
+ {
104
+ "name": "cpiProgram";
105
+ "address": "jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi";
106
+ },
107
+ {
108
+ "name": "glamProtocolProgram";
109
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
110
+ },
111
+ {
112
+ "name": "systemProgram";
113
+ "address": "11111111111111111111111111111111";
114
+ },
115
+ {
116
+ "name": "vaultAdmin";
117
+ },
118
+ {
119
+ "name": "vaultState";
120
+ "writable": true;
121
+ },
122
+ {
123
+ "name": "position";
124
+ "writable": true;
125
+ },
126
+ {
127
+ "name": "positionMint";
128
+ "writable": true;
129
+ },
130
+ {
131
+ "name": "positionTokenAccount";
132
+ "writable": true;
133
+ },
134
+ {
135
+ "name": "metadataAccount";
136
+ "writable": true;
137
+ },
138
+ {
139
+ "name": "tokenProgram";
140
+ },
141
+ {
142
+ "name": "associatedTokenProgram";
143
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
144
+ },
145
+ {
146
+ "name": "sysvarInstruction";
147
+ "address": "Sysvar1nstructions1111111111111111111111111";
148
+ },
149
+ {
150
+ "name": "metadataProgram";
151
+ "address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s";
152
+ },
153
+ {
154
+ "name": "rent";
155
+ "address": "SysvarRent111111111111111111111111111111111";
156
+ }
157
+ ];
158
+ "args": [
159
+ {
160
+ "name": "vaultId";
161
+ "type": "u16";
162
+ },
163
+ {
164
+ "name": "nextPositionId";
165
+ "type": "u32";
166
+ }
167
+ ];
168
+ },
169
+ {
170
+ "name": "borrowOperate";
171
+ "docs": [
172
+ "Operate a Jupiter Borrow position.",
173
+ "",
174
+ "Required permissions are derived from signed deltas:",
175
+ "positive collateral = deposit, negative collateral = withdraw,",
176
+ "positive debt = borrow, negative debt = repay."
177
+ ];
178
+ "discriminator": [
179
+ 46,
180
+ 121,
181
+ 58,
182
+ 48,
183
+ 13,
184
+ 5,
185
+ 117,
186
+ 188
187
+ ];
188
+ "accounts": [
189
+ {
190
+ "name": "glamState";
191
+ "writable": true;
192
+ },
193
+ {
194
+ "name": "glamVault";
195
+ "writable": true;
196
+ "pda": {
197
+ "seeds": [
198
+ {
199
+ "kind": "const";
200
+ "value": [
201
+ 118,
202
+ 97,
203
+ 117,
204
+ 108,
205
+ 116
206
+ ];
207
+ },
208
+ {
209
+ "kind": "account";
210
+ "path": "glamState";
211
+ }
212
+ ];
213
+ "program": {
214
+ "kind": "account";
215
+ "path": "glamProtocolProgram";
216
+ };
217
+ };
218
+ },
219
+ {
220
+ "name": "glamSigner";
221
+ "writable": true;
222
+ "signer": true;
223
+ },
224
+ {
225
+ "name": "integrationAuthority";
226
+ "pda": {
227
+ "seeds": [
228
+ {
229
+ "kind": "const";
230
+ "value": [
231
+ 105,
232
+ 110,
233
+ 116,
234
+ 101,
235
+ 103,
236
+ 114,
237
+ 97,
238
+ 116,
239
+ 105,
240
+ 111,
241
+ 110,
242
+ 45,
243
+ 97,
244
+ 117,
245
+ 116,
246
+ 104,
247
+ 111,
248
+ 114,
249
+ 105,
250
+ 116,
251
+ 121
252
+ ];
253
+ }
254
+ ];
255
+ };
256
+ },
257
+ {
258
+ "name": "cpiProgram";
259
+ "address": "jupr81YtYssSyPt8jbnGuiWon5f6x9TcDEFxYe3Bdzi";
260
+ },
261
+ {
262
+ "name": "glamProtocolProgram";
263
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
264
+ },
265
+ {
266
+ "name": "systemProgram";
267
+ "address": "11111111111111111111111111111111";
268
+ },
269
+ {
270
+ "name": "signerSupplyTokenAccount";
271
+ "writable": true;
272
+ },
273
+ {
274
+ "name": "signerBorrowTokenAccount";
275
+ "writable": true;
276
+ },
277
+ {
278
+ "name": "recipient";
279
+ "optional": true;
280
+ },
281
+ {
282
+ "name": "recipientBorrowTokenAccount";
283
+ "writable": true;
284
+ "optional": true;
285
+ },
286
+ {
287
+ "name": "recipientSupplyTokenAccount";
288
+ "writable": true;
289
+ "optional": true;
290
+ },
291
+ {
292
+ "name": "vaultConfig";
293
+ },
294
+ {
295
+ "name": "vaultState";
296
+ "writable": true;
297
+ },
298
+ {
299
+ "name": "supplyToken";
300
+ },
301
+ {
302
+ "name": "borrowToken";
303
+ },
304
+ {
305
+ "name": "oracle";
306
+ },
307
+ {
308
+ "name": "position";
309
+ "writable": true;
310
+ },
311
+ {
312
+ "name": "positionTokenAccount";
313
+ },
314
+ {
315
+ "name": "currentPositionTick";
316
+ "writable": true;
317
+ },
318
+ {
319
+ "name": "finalPositionTick";
320
+ "writable": true;
321
+ },
322
+ {
323
+ "name": "currentPositionTickId";
324
+ },
325
+ {
326
+ "name": "finalPositionTickId";
327
+ "writable": true;
328
+ },
329
+ {
330
+ "name": "newBranch";
331
+ "writable": true;
332
+ },
333
+ {
334
+ "name": "supplyTokenReservesLiquidity";
335
+ "writable": true;
336
+ },
337
+ {
338
+ "name": "borrowTokenReservesLiquidity";
339
+ "writable": true;
340
+ },
341
+ {
342
+ "name": "vaultSupplyPositionOnLiquidity";
343
+ "writable": true;
344
+ },
345
+ {
346
+ "name": "vaultBorrowPositionOnLiquidity";
347
+ "writable": true;
348
+ },
349
+ {
350
+ "name": "supplyRateModel";
351
+ },
352
+ {
353
+ "name": "borrowRateModel";
354
+ },
355
+ {
356
+ "name": "vaultSupplyTokenAccount";
357
+ "writable": true;
358
+ },
359
+ {
360
+ "name": "vaultBorrowTokenAccount";
361
+ "writable": true;
362
+ },
363
+ {
364
+ "name": "supplyTokenClaimAccount";
365
+ "writable": true;
366
+ "optional": true;
367
+ },
368
+ {
369
+ "name": "borrowTokenClaimAccount";
370
+ "writable": true;
371
+ "optional": true;
372
+ },
373
+ {
374
+ "name": "liquidity";
375
+ },
376
+ {
377
+ "name": "liquidityProgram";
378
+ "address": "jupeiUmn818Jg1ekPURTpr4mFo29p46vygyykFJ3wZC";
379
+ },
380
+ {
381
+ "name": "oracleProgram";
382
+ "address": "jupnw4B6Eqs7ft6rxpzYLJZYSnrpRgPcr589n5Kv4oc";
383
+ },
384
+ {
385
+ "name": "supplyTokenProgram";
386
+ },
387
+ {
388
+ "name": "borrowTokenProgram";
389
+ },
390
+ {
391
+ "name": "associatedTokenProgram";
392
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
393
+ }
394
+ ];
395
+ "args": [
396
+ {
397
+ "name": "newCol";
398
+ "type": "i128";
399
+ },
400
+ {
401
+ "name": "newDebt";
402
+ "type": "i128";
403
+ },
404
+ {
405
+ "name": "transferType";
406
+ "type": {
407
+ "option": {
408
+ "defined": {
409
+ "name": "transferType";
410
+ };
411
+ };
412
+ };
413
+ },
414
+ {
415
+ "name": "remainingAccountsIndices";
416
+ "type": "bytes";
417
+ }
418
+ ];
419
+ },
420
+ {
421
+ "name": "earnDeposit";
422
+ "docs": [
423
+ "Deposit underlying tokens into Jupiter Earn and mint jlTokens to the GLAM vault.",
424
+ "",
425
+ "- Permission: `EarnPermissions::Deposit`.",
426
+ "- Policy: underlying `mint` must be in `EarnPolicy::mints_allowlist`."
427
+ ];
428
+ "discriminator": [
429
+ 81,
430
+ 98,
431
+ 113,
432
+ 207,
433
+ 82,
434
+ 192,
435
+ 187,
436
+ 234
437
+ ];
438
+ "accounts": [
439
+ {
440
+ "name": "glamState";
441
+ "writable": true;
442
+ },
443
+ {
444
+ "name": "glamVault";
445
+ "writable": true;
446
+ "pda": {
447
+ "seeds": [
448
+ {
449
+ "kind": "const";
450
+ "value": [
451
+ 118,
452
+ 97,
453
+ 117,
454
+ 108,
455
+ 116
456
+ ];
457
+ },
458
+ {
459
+ "kind": "account";
460
+ "path": "glamState";
461
+ }
462
+ ];
463
+ "program": {
464
+ "kind": "account";
465
+ "path": "glamProtocolProgram";
466
+ };
467
+ };
468
+ },
469
+ {
470
+ "name": "glamSigner";
471
+ "writable": true;
472
+ "signer": true;
473
+ },
474
+ {
475
+ "name": "integrationAuthority";
476
+ "pda": {
477
+ "seeds": [
478
+ {
479
+ "kind": "const";
480
+ "value": [
481
+ 105,
482
+ 110,
483
+ 116,
484
+ 101,
485
+ 103,
486
+ 114,
487
+ 97,
488
+ 116,
489
+ 105,
490
+ 111,
491
+ 110,
492
+ 45,
493
+ 97,
494
+ 117,
495
+ 116,
496
+ 104,
497
+ 111,
498
+ 114,
499
+ 105,
500
+ 116,
501
+ 121
502
+ ];
503
+ }
504
+ ];
505
+ };
506
+ },
507
+ {
508
+ "name": "cpiProgram";
509
+ "address": "jup3YeL8QhtSx1e253b2FDvsMNC87fDrgQZivbrndc9";
510
+ },
511
+ {
512
+ "name": "glamProtocolProgram";
513
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
514
+ },
515
+ {
516
+ "name": "systemProgram";
517
+ "address": "11111111111111111111111111111111";
518
+ },
519
+ {
520
+ "name": "depositorTokenAccount";
521
+ "writable": true;
522
+ },
523
+ {
524
+ "name": "recipientTokenAccount";
525
+ "writable": true;
526
+ },
527
+ {
528
+ "name": "mint";
529
+ },
530
+ {
531
+ "name": "lendingAdmin";
532
+ },
533
+ {
534
+ "name": "lending";
535
+ "writable": true;
536
+ },
537
+ {
538
+ "name": "fTokenMint";
539
+ "writable": true;
540
+ },
541
+ {
542
+ "name": "supplyTokenReservesLiquidity";
543
+ "writable": true;
544
+ },
545
+ {
546
+ "name": "lendingSupplyPositionOnLiquidity";
547
+ "writable": true;
548
+ },
549
+ {
550
+ "name": "rateModel";
551
+ },
552
+ {
553
+ "name": "vault";
554
+ "writable": true;
555
+ },
556
+ {
557
+ "name": "liquidity";
558
+ "writable": true;
559
+ },
560
+ {
561
+ "name": "liquidityProgram";
562
+ "writable": true;
563
+ "address": "jupeiUmn818Jg1ekPURTpr4mFo29p46vygyykFJ3wZC";
564
+ },
565
+ {
566
+ "name": "rewardsRateModel";
567
+ },
568
+ {
569
+ "name": "tokenProgram";
570
+ },
571
+ {
572
+ "name": "associatedTokenProgram";
573
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
574
+ }
575
+ ];
576
+ "args": [
577
+ {
578
+ "name": "assets";
579
+ "type": "u64";
580
+ },
581
+ {
582
+ "name": "minAmountOut";
583
+ "type": "u64";
584
+ }
585
+ ];
586
+ },
587
+ {
588
+ "name": "earnWithdraw";
589
+ "docs": [
590
+ "Burn Jupiter Earn jlTokens and withdraw underlying tokens to the GLAM vault.",
591
+ "",
592
+ "- Permission: `EarnPermissions::Withdraw`.",
593
+ "- Policy: underlying `mint` must be in `EarnPolicy::mints_allowlist`."
594
+ ];
595
+ "discriminator": [
596
+ 68,
597
+ 169,
598
+ 40,
599
+ 28,
600
+ 165,
601
+ 60,
602
+ 157,
603
+ 98
604
+ ];
605
+ "accounts": [
606
+ {
607
+ "name": "glamState";
608
+ "writable": true;
609
+ },
610
+ {
611
+ "name": "glamVault";
612
+ "writable": true;
613
+ "pda": {
614
+ "seeds": [
615
+ {
616
+ "kind": "const";
617
+ "value": [
618
+ 118,
619
+ 97,
620
+ 117,
621
+ 108,
622
+ 116
623
+ ];
624
+ },
625
+ {
626
+ "kind": "account";
627
+ "path": "glamState";
628
+ }
629
+ ];
630
+ "program": {
631
+ "kind": "account";
632
+ "path": "glamProtocolProgram";
633
+ };
634
+ };
635
+ },
636
+ {
637
+ "name": "glamSigner";
638
+ "writable": true;
639
+ "signer": true;
640
+ },
641
+ {
642
+ "name": "integrationAuthority";
643
+ "pda": {
644
+ "seeds": [
645
+ {
646
+ "kind": "const";
647
+ "value": [
648
+ 105,
649
+ 110,
650
+ 116,
651
+ 101,
652
+ 103,
653
+ 114,
654
+ 97,
655
+ 116,
656
+ 105,
657
+ 111,
658
+ 110,
659
+ 45,
660
+ 97,
661
+ 117,
662
+ 116,
663
+ 104,
664
+ 111,
665
+ 114,
666
+ 105,
667
+ 116,
668
+ 121
669
+ ];
670
+ }
671
+ ];
672
+ };
673
+ },
674
+ {
675
+ "name": "cpiProgram";
676
+ "address": "jup3YeL8QhtSx1e253b2FDvsMNC87fDrgQZivbrndc9";
677
+ },
678
+ {
679
+ "name": "glamProtocolProgram";
680
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
681
+ },
682
+ {
683
+ "name": "systemProgram";
684
+ "address": "11111111111111111111111111111111";
685
+ },
686
+ {
687
+ "name": "ownerTokenAccount";
688
+ "writable": true;
689
+ },
690
+ {
691
+ "name": "recipientTokenAccount";
692
+ "writable": true;
693
+ },
694
+ {
695
+ "name": "lendingAdmin";
696
+ },
697
+ {
698
+ "name": "lending";
699
+ "writable": true;
700
+ },
701
+ {
702
+ "name": "mint";
703
+ },
704
+ {
705
+ "name": "fTokenMint";
706
+ "writable": true;
707
+ },
708
+ {
709
+ "name": "supplyTokenReservesLiquidity";
710
+ "writable": true;
711
+ },
712
+ {
713
+ "name": "lendingSupplyPositionOnLiquidity";
714
+ "writable": true;
715
+ },
716
+ {
717
+ "name": "rateModel";
718
+ },
719
+ {
720
+ "name": "vault";
721
+ "writable": true;
722
+ },
723
+ {
724
+ "name": "claimAccount";
725
+ "writable": true;
726
+ },
727
+ {
728
+ "name": "liquidity";
729
+ "writable": true;
730
+ },
731
+ {
732
+ "name": "liquidityProgram";
733
+ "writable": true;
734
+ "address": "jupeiUmn818Jg1ekPURTpr4mFo29p46vygyykFJ3wZC";
735
+ },
736
+ {
737
+ "name": "rewardsRateModel";
738
+ },
739
+ {
740
+ "name": "tokenProgram";
741
+ },
742
+ {
743
+ "name": "associatedTokenProgram";
744
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
745
+ }
746
+ ];
747
+ "args": [
748
+ {
749
+ "name": "amount";
750
+ "type": "u64";
751
+ },
752
+ {
753
+ "name": "maxSharesBurn";
754
+ "type": "u64";
755
+ }
756
+ ];
757
+ },
758
+ {
759
+ "name": "setBorrowPolicy";
760
+ "docs": [
761
+ "Set the Jupiter Borrow policy on the GLAM state."
762
+ ];
763
+ "discriminator": [
764
+ 199,
765
+ 94,
766
+ 106,
767
+ 205,
768
+ 150,
769
+ 227,
770
+ 206,
771
+ 68
772
+ ];
773
+ "accounts": [
774
+ {
775
+ "name": "glamState";
776
+ "writable": true;
777
+ },
778
+ {
779
+ "name": "glamSigner";
780
+ "writable": true;
781
+ "signer": true;
782
+ },
783
+ {
784
+ "name": "glamProtocolProgram";
785
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
786
+ }
787
+ ];
788
+ "args": [
789
+ {
790
+ "name": "policy";
791
+ "type": {
792
+ "defined": {
793
+ "name": "borrowPolicy";
794
+ };
795
+ };
796
+ }
797
+ ];
798
+ },
799
+ {
800
+ "name": "setEarnPolicy";
801
+ "docs": [
802
+ "Set the Jupiter Earn policy on the GLAM state."
803
+ ];
804
+ "discriminator": [
805
+ 48,
806
+ 17,
807
+ 31,
808
+ 62,
809
+ 132,
810
+ 232,
811
+ 114,
812
+ 96
813
+ ];
814
+ "accounts": [
815
+ {
816
+ "name": "glamState";
817
+ "writable": true;
818
+ },
819
+ {
820
+ "name": "glamSigner";
821
+ "writable": true;
822
+ "signer": true;
823
+ },
824
+ {
825
+ "name": "glamProtocolProgram";
826
+ "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
827
+ }
828
+ ];
829
+ "args": [
830
+ {
831
+ "name": "policy";
832
+ "type": {
833
+ "defined": {
834
+ "name": "earnPolicy";
835
+ };
836
+ };
837
+ }
838
+ ];
839
+ }
840
+ ];
841
+ "accounts": [
842
+ {
843
+ "name": "stateAccount";
844
+ "discriminator": [
845
+ 142,
846
+ 247,
847
+ 54,
848
+ 95,
849
+ 85,
850
+ 133,
851
+ 249,
852
+ 103
853
+ ];
854
+ }
855
+ ];
856
+ "errors": [
857
+ {
858
+ "code": 6000;
859
+ "name": "unexpectedSigner";
860
+ "msg": "Unexpected signer privilege passed to Jupiter CPI";
861
+ },
862
+ {
863
+ "code": 6001;
864
+ "name": "invalidVaultTokenAccount";
865
+ "msg": "Vault token account must be the GLAM vault ATA for the expected mint";
866
+ },
867
+ {
868
+ "code": 6002;
869
+ "name": "invalidPositionTokenAccount";
870
+ "msg": "Position token account must be controlled by the GLAM vault";
871
+ },
872
+ {
873
+ "code": 6003;
874
+ "name": "invalidMetadataAccount";
875
+ "msg": "Metadata account must be the Metaplex metadata PDA for the position mint";
876
+ },
877
+ {
878
+ "code": 6004;
879
+ "name": "duplicateMutableAccount";
880
+ "msg": "Mutable source and destination accounts must differ";
881
+ },
882
+ {
883
+ "code": 6005;
884
+ "name": "invalidRemainingAccountIndices";
885
+ "msg": "Jupiter operate remaining account indices must contain exactly three counts";
886
+ },
887
+ {
888
+ "code": 6006;
889
+ "name": "remainingAccountsCountMismatch";
890
+ "msg": "Jupiter operate remaining account counts do not match remaining accounts";
891
+ },
892
+ {
893
+ "code": 6007;
894
+ "name": "noopOperate";
895
+ "msg": "Jupiter operate instruction must request at least one position change";
896
+ }
897
+ ];
898
+ "types": [
899
+ {
900
+ "name": "accountType";
901
+ "type": {
902
+ "kind": "enum";
903
+ "variants": [
904
+ {
905
+ "name": "vault";
906
+ },
907
+ {
908
+ "name": "tokenizedVault";
909
+ },
910
+ {
911
+ "name": "mint";
912
+ },
913
+ {
914
+ "name": "singleAssetVault";
915
+ }
916
+ ];
917
+ };
918
+ },
919
+ {
920
+ "name": "accruedFees";
921
+ "type": {
922
+ "kind": "struct";
923
+ "fields": [
924
+ {
925
+ "name": "vaultSubscriptionFee";
926
+ "type": "u128";
927
+ },
928
+ {
929
+ "name": "vaultRedemptionFee";
930
+ "type": "u128";
931
+ },
932
+ {
933
+ "name": "managerSubscriptionFee";
934
+ "type": "u128";
935
+ },
936
+ {
937
+ "name": "managerRedemptionFee";
938
+ "type": "u128";
939
+ },
940
+ {
941
+ "name": "managementFee";
942
+ "type": "u128";
943
+ },
944
+ {
945
+ "name": "performanceFee";
946
+ "type": "u128";
947
+ },
948
+ {
949
+ "name": "protocolBaseFee";
950
+ "type": "u128";
951
+ },
952
+ {
953
+ "name": "protocolFlowFee";
954
+ "type": "u128";
955
+ }
956
+ ];
957
+ };
958
+ },
959
+ {
960
+ "name": "borrowPolicy";
961
+ "type": {
962
+ "kind": "struct";
963
+ "fields": [
964
+ {
965
+ "name": "vaultsAllowlist";
966
+ "type": {
967
+ "vec": "pubkey";
968
+ };
969
+ },
970
+ {
971
+ "name": "collateralMintsAllowlist";
972
+ "type": {
973
+ "vec": "pubkey";
974
+ };
975
+ },
976
+ {
977
+ "name": "borrowMintsAllowlist";
978
+ "type": {
979
+ "vec": "pubkey";
980
+ };
981
+ }
982
+ ];
983
+ };
984
+ },
985
+ {
986
+ "name": "createdModel";
987
+ "type": {
988
+ "kind": "struct";
989
+ "fields": [
990
+ {
991
+ "name": "key";
992
+ "type": {
993
+ "array": [
994
+ "u8",
995
+ 8
996
+ ];
997
+ };
998
+ },
999
+ {
1000
+ "name": "createdBy";
1001
+ "type": "pubkey";
1002
+ },
1003
+ {
1004
+ "name": "createdAt";
1005
+ "type": "i64";
1006
+ }
1007
+ ];
1008
+ };
1009
+ },
1010
+ {
1011
+ "name": "delegateAcl";
1012
+ "type": {
1013
+ "kind": "struct";
1014
+ "fields": [
1015
+ {
1016
+ "name": "pubkey";
1017
+ "type": "pubkey";
1018
+ },
1019
+ {
1020
+ "name": "integrationPermissions";
1021
+ "type": {
1022
+ "vec": {
1023
+ "defined": {
1024
+ "name": "integrationPermissions";
1025
+ };
1026
+ };
1027
+ };
1028
+ },
1029
+ {
1030
+ "name": "expiresAt";
1031
+ "type": "i64";
1032
+ }
1033
+ ];
1034
+ };
1035
+ },
1036
+ {
1037
+ "name": "earnPolicy";
1038
+ "type": {
1039
+ "kind": "struct";
1040
+ "fields": [
1041
+ {
1042
+ "name": "mintsAllowlist";
1043
+ "type": {
1044
+ "vec": "pubkey";
1045
+ };
1046
+ }
1047
+ ];
1048
+ };
1049
+ },
1050
+ {
1051
+ "name": "engineField";
1052
+ "type": {
1053
+ "kind": "struct";
1054
+ "fields": [
1055
+ {
1056
+ "name": "name";
1057
+ "type": {
1058
+ "defined": {
1059
+ "name": "engineFieldName";
1060
+ };
1061
+ };
1062
+ },
1063
+ {
1064
+ "name": "value";
1065
+ "type": {
1066
+ "defined": {
1067
+ "name": "engineFieldValue";
1068
+ };
1069
+ };
1070
+ }
1071
+ ];
1072
+ };
1073
+ },
1074
+ {
1075
+ "name": "engineFieldName";
1076
+ "type": {
1077
+ "kind": "enum";
1078
+ "variants": [
1079
+ {
1080
+ "name": "owner";
1081
+ },
1082
+ {
1083
+ "name": "portfolioManagerName";
1084
+ },
1085
+ {
1086
+ "name": "name";
1087
+ },
1088
+ {
1089
+ "name": "uri";
1090
+ },
1091
+ {
1092
+ "name": "assets";
1093
+ },
1094
+ {
1095
+ "name": "delegateAcls";
1096
+ },
1097
+ {
1098
+ "name": "integrationAcls";
1099
+ },
1100
+ {
1101
+ "name": "timelockDuration";
1102
+ },
1103
+ {
1104
+ "name": "borrowable";
1105
+ },
1106
+ {
1107
+ "name": "defaultAccountStateFrozen";
1108
+ },
1109
+ {
1110
+ "name": "permanentDelegate";
1111
+ },
1112
+ {
1113
+ "name": "notifyAndSettle";
1114
+ },
1115
+ {
1116
+ "name": "feeStructure";
1117
+ },
1118
+ {
1119
+ "name": "feeParams";
1120
+ },
1121
+ {
1122
+ "name": "claimableFees";
1123
+ },
1124
+ {
1125
+ "name": "claimedFees";
1126
+ },
1127
+ {
1128
+ "name": "oracleConfigs";
1129
+ }
1130
+ ];
1131
+ };
1132
+ },
1133
+ {
1134
+ "name": "engineFieldValue";
1135
+ "type": {
1136
+ "kind": "enum";
1137
+ "variants": [
1138
+ {
1139
+ "name": "boolean";
1140
+ "fields": [
1141
+ {
1142
+ "name": "val";
1143
+ "type": "bool";
1144
+ }
1145
+ ];
1146
+ },
1147
+ {
1148
+ "name": "u8";
1149
+ "fields": [
1150
+ {
1151
+ "name": "val";
1152
+ "type": "u8";
1153
+ }
1154
+ ];
1155
+ },
1156
+ {
1157
+ "name": "u32";
1158
+ "fields": [
1159
+ {
1160
+ "name": "val";
1161
+ "type": "u32";
1162
+ }
1163
+ ];
1164
+ },
1165
+ {
1166
+ "name": "u64";
1167
+ "fields": [
1168
+ {
1169
+ "name": "val";
1170
+ "type": "u64";
1171
+ }
1172
+ ];
1173
+ },
1174
+ {
1175
+ "name": "string";
1176
+ "fields": [
1177
+ {
1178
+ "name": "val";
1179
+ "type": "string";
1180
+ }
1181
+ ];
1182
+ },
1183
+ {
1184
+ "name": "pubkey";
1185
+ "fields": [
1186
+ {
1187
+ "name": "val";
1188
+ "type": "pubkey";
1189
+ }
1190
+ ];
1191
+ },
1192
+ {
1193
+ "name": "vecPubkey";
1194
+ "fields": [
1195
+ {
1196
+ "name": "val";
1197
+ "type": {
1198
+ "vec": "pubkey";
1199
+ };
1200
+ }
1201
+ ];
1202
+ },
1203
+ {
1204
+ "name": "vecU8";
1205
+ "fields": [
1206
+ {
1207
+ "name": "val";
1208
+ "type": "bytes";
1209
+ }
1210
+ ];
1211
+ },
1212
+ {
1213
+ "name": "vecU32";
1214
+ "fields": [
1215
+ {
1216
+ "name": "val";
1217
+ "type": {
1218
+ "vec": "u32";
1219
+ };
1220
+ }
1221
+ ];
1222
+ },
1223
+ {
1224
+ "name": "vecDelegateAcl";
1225
+ "fields": [
1226
+ {
1227
+ "name": "val";
1228
+ "type": {
1229
+ "vec": {
1230
+ "defined": {
1231
+ "name": "delegateAcl";
1232
+ };
1233
+ };
1234
+ };
1235
+ }
1236
+ ];
1237
+ },
1238
+ {
1239
+ "name": "vecIntegrationAcl";
1240
+ "fields": [
1241
+ {
1242
+ "name": "val";
1243
+ "type": {
1244
+ "vec": {
1245
+ "defined": {
1246
+ "name": "integrationAcl";
1247
+ };
1248
+ };
1249
+ };
1250
+ }
1251
+ ];
1252
+ },
1253
+ {
1254
+ "name": "feeStructure";
1255
+ "fields": [
1256
+ {
1257
+ "name": "val";
1258
+ "type": {
1259
+ "defined": {
1260
+ "name": "feeStructure";
1261
+ };
1262
+ };
1263
+ }
1264
+ ];
1265
+ },
1266
+ {
1267
+ "name": "feeParams";
1268
+ "fields": [
1269
+ {
1270
+ "name": "val";
1271
+ "type": {
1272
+ "defined": {
1273
+ "name": "feeParams";
1274
+ };
1275
+ };
1276
+ }
1277
+ ];
1278
+ },
1279
+ {
1280
+ "name": "accruedFees";
1281
+ "fields": [
1282
+ {
1283
+ "name": "val";
1284
+ "type": {
1285
+ "defined": {
1286
+ "name": "accruedFees";
1287
+ };
1288
+ };
1289
+ }
1290
+ ];
1291
+ },
1292
+ {
1293
+ "name": "notifyAndSettle";
1294
+ "fields": [
1295
+ {
1296
+ "name": "val";
1297
+ "type": {
1298
+ "defined": {
1299
+ "name": "notifyAndSettle";
1300
+ };
1301
+ };
1302
+ }
1303
+ ];
1304
+ },
1305
+ {
1306
+ "name": "oracleConfigs";
1307
+ "fields": [
1308
+ {
1309
+ "name": "val";
1310
+ "type": {
1311
+ "defined": {
1312
+ "name": "oracleConfigs";
1313
+ };
1314
+ };
1315
+ }
1316
+ ];
1317
+ }
1318
+ ];
1319
+ };
1320
+ },
1321
+ {
1322
+ "name": "entryExitFees";
1323
+ "type": {
1324
+ "kind": "struct";
1325
+ "fields": [
1326
+ {
1327
+ "name": "subscriptionFeeBps";
1328
+ "type": "u16";
1329
+ },
1330
+ {
1331
+ "name": "redemptionFeeBps";
1332
+ "type": "u16";
1333
+ }
1334
+ ];
1335
+ };
1336
+ },
1337
+ {
1338
+ "name": "feeParams";
1339
+ "type": {
1340
+ "kind": "struct";
1341
+ "fields": [
1342
+ {
1343
+ "name": "yearInSeconds";
1344
+ "type": "u32";
1345
+ },
1346
+ {
1347
+ "name": "paHighWaterMark";
1348
+ "type": "i128";
1349
+ },
1350
+ {
1351
+ "name": "paLastNav";
1352
+ "type": "i128";
1353
+ },
1354
+ {
1355
+ "name": "lastAum";
1356
+ "type": "i128";
1357
+ },
1358
+ {
1359
+ "name": "lastPerformanceFeeCrystallized";
1360
+ "type": "i64";
1361
+ },
1362
+ {
1363
+ "name": "lastManagementFeeCrystallized";
1364
+ "type": "i64";
1365
+ },
1366
+ {
1367
+ "name": "lastProtocolFeeCrystallized";
1368
+ "type": "i64";
1369
+ }
1370
+ ];
1371
+ };
1372
+ },
1373
+ {
1374
+ "name": "feeStructure";
1375
+ "type": {
1376
+ "kind": "struct";
1377
+ "fields": [
1378
+ {
1379
+ "name": "vault";
1380
+ "type": {
1381
+ "defined": {
1382
+ "name": "entryExitFees";
1383
+ };
1384
+ };
1385
+ },
1386
+ {
1387
+ "name": "manager";
1388
+ "type": {
1389
+ "defined": {
1390
+ "name": "entryExitFees";
1391
+ };
1392
+ };
1393
+ },
1394
+ {
1395
+ "name": "management";
1396
+ "type": {
1397
+ "defined": {
1398
+ "name": "managementFee";
1399
+ };
1400
+ };
1401
+ },
1402
+ {
1403
+ "name": "performance";
1404
+ "type": {
1405
+ "defined": {
1406
+ "name": "performanceFee";
1407
+ };
1408
+ };
1409
+ },
1410
+ {
1411
+ "name": "protocol";
1412
+ "type": {
1413
+ "defined": {
1414
+ "name": "protocolFees";
1415
+ };
1416
+ };
1417
+ }
1418
+ ];
1419
+ };
1420
+ },
1421
+ {
1422
+ "name": "hurdleType";
1423
+ "type": {
1424
+ "kind": "enum";
1425
+ "variants": [
1426
+ {
1427
+ "name": "hard";
1428
+ },
1429
+ {
1430
+ "name": "soft";
1431
+ }
1432
+ ];
1433
+ };
1434
+ },
1435
+ {
1436
+ "name": "integrationAcl";
1437
+ "docs": [
1438
+ "An integration program can have multiple protocols supported.",
1439
+ "Enabled protocols are stored in a bitmask, and each protocol can have its own policy."
1440
+ ];
1441
+ "type": {
1442
+ "kind": "struct";
1443
+ "fields": [
1444
+ {
1445
+ "name": "integrationProgram";
1446
+ "type": "pubkey";
1447
+ },
1448
+ {
1449
+ "name": "protocolsBitmask";
1450
+ "type": "u16";
1451
+ },
1452
+ {
1453
+ "name": "protocolPolicies";
1454
+ "type": {
1455
+ "vec": {
1456
+ "defined": {
1457
+ "name": "protocolPolicy";
1458
+ };
1459
+ };
1460
+ };
1461
+ }
1462
+ ];
1463
+ };
1464
+ },
1465
+ {
1466
+ "name": "integrationPermissions";
1467
+ "docs": [
1468
+ "Stores delegate permissions for an integration program."
1469
+ ];
1470
+ "type": {
1471
+ "kind": "struct";
1472
+ "fields": [
1473
+ {
1474
+ "name": "integrationProgram";
1475
+ "type": "pubkey";
1476
+ },
1477
+ {
1478
+ "name": "protocolPermissions";
1479
+ "type": {
1480
+ "vec": {
1481
+ "defined": {
1482
+ "name": "protocolPermissions";
1483
+ };
1484
+ };
1485
+ };
1486
+ }
1487
+ ];
1488
+ };
1489
+ },
1490
+ {
1491
+ "name": "managementFee";
1492
+ "type": {
1493
+ "kind": "struct";
1494
+ "fields": [
1495
+ {
1496
+ "name": "feeBps";
1497
+ "type": "u16";
1498
+ }
1499
+ ];
1500
+ };
1501
+ },
1502
+ {
1503
+ "name": "noticePeriodType";
1504
+ "type": {
1505
+ "kind": "enum";
1506
+ "variants": [
1507
+ {
1508
+ "name": "hard";
1509
+ },
1510
+ {
1511
+ "name": "soft";
1512
+ }
1513
+ ];
1514
+ };
1515
+ },
1516
+ {
1517
+ "name": "notifyAndSettle";
1518
+ "type": {
1519
+ "kind": "struct";
1520
+ "fields": [
1521
+ {
1522
+ "name": "model";
1523
+ "type": {
1524
+ "defined": {
1525
+ "name": "valuationModel";
1526
+ };
1527
+ };
1528
+ },
1529
+ {
1530
+ "name": "permissionlessFulfillment";
1531
+ "type": "bool";
1532
+ },
1533
+ {
1534
+ "name": "subscribeNoticePeriodType";
1535
+ "type": {
1536
+ "defined": {
1537
+ "name": "noticePeriodType";
1538
+ };
1539
+ };
1540
+ },
1541
+ {
1542
+ "name": "subscribeNoticePeriod";
1543
+ "type": "u64";
1544
+ },
1545
+ {
1546
+ "name": "subscribeSettlementPeriod";
1547
+ "type": "u64";
1548
+ },
1549
+ {
1550
+ "name": "subscribeCancellationWindow";
1551
+ "type": "u64";
1552
+ },
1553
+ {
1554
+ "name": "redeemNoticePeriodType";
1555
+ "type": {
1556
+ "defined": {
1557
+ "name": "noticePeriodType";
1558
+ };
1559
+ };
1560
+ },
1561
+ {
1562
+ "name": "redeemNoticePeriod";
1563
+ "type": "u64";
1564
+ },
1565
+ {
1566
+ "name": "redeemSettlementPeriod";
1567
+ "type": "u64";
1568
+ },
1569
+ {
1570
+ "name": "redeemCancellationWindow";
1571
+ "type": "u64";
1572
+ },
1573
+ {
1574
+ "name": "timeUnit";
1575
+ "type": {
1576
+ "defined": {
1577
+ "name": "timeUnit";
1578
+ };
1579
+ };
1580
+ },
1581
+ {
1582
+ "name": "padding";
1583
+ "type": {
1584
+ "array": [
1585
+ "u8",
1586
+ 3
1587
+ ];
1588
+ };
1589
+ }
1590
+ ];
1591
+ };
1592
+ },
1593
+ {
1594
+ "name": "oracleConfigs";
1595
+ "docs": [
1596
+ "Vault-specific oracle configs. If available, these configs are preferred over the global config."
1597
+ ];
1598
+ "type": {
1599
+ "kind": "struct";
1600
+ "fields": [
1601
+ {
1602
+ "name": "maxAgesSeconds";
1603
+ "type": {
1604
+ "vec": {
1605
+ "array": [
1606
+ "u16",
1607
+ 2
1608
+ ];
1609
+ };
1610
+ };
1611
+ },
1612
+ {
1613
+ "name": "padding";
1614
+ "type": {
1615
+ "array": [
1616
+ "u8",
1617
+ 12
1618
+ ];
1619
+ };
1620
+ }
1621
+ ];
1622
+ };
1623
+ },
1624
+ {
1625
+ "name": "performanceFee";
1626
+ "type": {
1627
+ "kind": "struct";
1628
+ "fields": [
1629
+ {
1630
+ "name": "feeBps";
1631
+ "type": "u16";
1632
+ },
1633
+ {
1634
+ "name": "hurdleRateBps";
1635
+ "type": "u16";
1636
+ },
1637
+ {
1638
+ "name": "hurdleType";
1639
+ "type": {
1640
+ "defined": {
1641
+ "name": "hurdleType";
1642
+ };
1643
+ };
1644
+ }
1645
+ ];
1646
+ };
1647
+ },
1648
+ {
1649
+ "name": "pricedProtocol";
1650
+ "type": {
1651
+ "kind": "struct";
1652
+ "fields": [
1653
+ {
1654
+ "name": "rent";
1655
+ "type": "u64";
1656
+ },
1657
+ {
1658
+ "name": "amount";
1659
+ "type": "i128";
1660
+ },
1661
+ {
1662
+ "name": "decimals";
1663
+ "type": "u8";
1664
+ },
1665
+ {
1666
+ "name": "lastUpdatedSlot";
1667
+ "type": "u64";
1668
+ },
1669
+ {
1670
+ "name": "integrationProgram";
1671
+ "type": "pubkey";
1672
+ },
1673
+ {
1674
+ "name": "protocolBitflag";
1675
+ "type": "u16";
1676
+ },
1677
+ {
1678
+ "name": "positions";
1679
+ "type": {
1680
+ "vec": "pubkey";
1681
+ };
1682
+ }
1683
+ ];
1684
+ };
1685
+ },
1686
+ {
1687
+ "name": "protocolFees";
1688
+ "type": {
1689
+ "kind": "struct";
1690
+ "fields": [
1691
+ {
1692
+ "name": "baseFeeBps";
1693
+ "type": "u16";
1694
+ },
1695
+ {
1696
+ "name": "flowFeeBps";
1697
+ "type": "u16";
1698
+ }
1699
+ ];
1700
+ };
1701
+ },
1702
+ {
1703
+ "name": "protocolPermissions";
1704
+ "docs": [
1705
+ "Represents a delegate's permissions for a specific protocol"
1706
+ ];
1707
+ "type": {
1708
+ "kind": "struct";
1709
+ "fields": [
1710
+ {
1711
+ "name": "protocolBitflag";
1712
+ "type": "u16";
1713
+ },
1714
+ {
1715
+ "name": "permissionsBitmask";
1716
+ "type": "u64";
1717
+ }
1718
+ ];
1719
+ };
1720
+ },
1721
+ {
1722
+ "name": "protocolPolicy";
1723
+ "docs": [
1724
+ "Stores policy data for an integrated protocol.",
1725
+ "Integration programs serialize/deserialize this data."
1726
+ ];
1727
+ "type": {
1728
+ "kind": "struct";
1729
+ "fields": [
1730
+ {
1731
+ "name": "protocolBitflag";
1732
+ "type": "u16";
1733
+ },
1734
+ {
1735
+ "name": "data";
1736
+ "type": "bytes";
1737
+ }
1738
+ ];
1739
+ };
1740
+ },
1741
+ {
1742
+ "name": "stateAccount";
1743
+ "type": {
1744
+ "kind": "struct";
1745
+ "fields": [
1746
+ {
1747
+ "name": "accountType";
1748
+ "type": {
1749
+ "defined": {
1750
+ "name": "accountType";
1751
+ };
1752
+ };
1753
+ },
1754
+ {
1755
+ "name": "enabled";
1756
+ "type": "bool";
1757
+ },
1758
+ {
1759
+ "name": "vault";
1760
+ "type": "pubkey";
1761
+ },
1762
+ {
1763
+ "name": "owner";
1764
+ "type": "pubkey";
1765
+ },
1766
+ {
1767
+ "name": "portfolioManagerName";
1768
+ "type": {
1769
+ "array": [
1770
+ "u8",
1771
+ 32
1772
+ ];
1773
+ };
1774
+ },
1775
+ {
1776
+ "name": "created";
1777
+ "type": {
1778
+ "defined": {
1779
+ "name": "createdModel";
1780
+ };
1781
+ };
1782
+ },
1783
+ {
1784
+ "name": "baseAssetMint";
1785
+ "type": "pubkey";
1786
+ },
1787
+ {
1788
+ "name": "baseAssetDecimals";
1789
+ "type": "u8";
1790
+ },
1791
+ {
1792
+ "name": "baseAssetTokenProgram";
1793
+ "type": "u8";
1794
+ },
1795
+ {
1796
+ "name": "name";
1797
+ "type": {
1798
+ "array": [
1799
+ "u8",
1800
+ 32
1801
+ ];
1802
+ };
1803
+ },
1804
+ {
1805
+ "name": "timelockDuration";
1806
+ "type": "u32";
1807
+ },
1808
+ {
1809
+ "name": "timelockExpiresAt";
1810
+ "type": "u64";
1811
+ },
1812
+ {
1813
+ "name": "mint";
1814
+ "type": "pubkey";
1815
+ },
1816
+ {
1817
+ "name": "assets";
1818
+ "type": {
1819
+ "vec": "pubkey";
1820
+ };
1821
+ },
1822
+ {
1823
+ "name": "integrationAcls";
1824
+ "type": {
1825
+ "vec": {
1826
+ "defined": {
1827
+ "name": "integrationAcl";
1828
+ };
1829
+ };
1830
+ };
1831
+ },
1832
+ {
1833
+ "name": "delegateAcls";
1834
+ "type": {
1835
+ "vec": {
1836
+ "defined": {
1837
+ "name": "delegateAcl";
1838
+ };
1839
+ };
1840
+ };
1841
+ },
1842
+ {
1843
+ "name": "externalPositions";
1844
+ "type": {
1845
+ "vec": "pubkey";
1846
+ };
1847
+ },
1848
+ {
1849
+ "name": "pricedProtocols";
1850
+ "type": {
1851
+ "vec": {
1852
+ "defined": {
1853
+ "name": "pricedProtocol";
1854
+ };
1855
+ };
1856
+ };
1857
+ },
1858
+ {
1859
+ "name": "params";
1860
+ "type": {
1861
+ "vec": {
1862
+ "vec": {
1863
+ "defined": {
1864
+ "name": "engineField";
1865
+ };
1866
+ };
1867
+ };
1868
+ };
1869
+ }
1870
+ ];
1871
+ };
1872
+ },
1873
+ {
1874
+ "name": "timeUnit";
1875
+ "type": {
1876
+ "kind": "enum";
1877
+ "variants": [
1878
+ {
1879
+ "name": "second";
1880
+ },
1881
+ {
1882
+ "name": "slot";
1883
+ }
1884
+ ];
1885
+ };
1886
+ },
1887
+ {
1888
+ "name": "transferType";
1889
+ "type": {
1890
+ "kind": "enum";
1891
+ "variants": [
1892
+ {
1893
+ "name": "skip";
1894
+ },
1895
+ {
1896
+ "name": "direct";
1897
+ },
1898
+ {
1899
+ "name": "claim";
1900
+ }
1901
+ ];
1902
+ };
1903
+ },
1904
+ {
1905
+ "name": "valuationModel";
1906
+ "type": {
1907
+ "kind": "enum";
1908
+ "variants": [
1909
+ {
1910
+ "name": "continuous";
1911
+ },
1912
+ {
1913
+ "name": "periodic";
1914
+ }
1915
+ ];
1916
+ };
1917
+ }
1918
+ ];
1919
+ "constants": [
1920
+ {
1921
+ "name": "protoJupiterBorrow";
1922
+ "type": "u16";
1923
+ "value": "2";
1924
+ },
1925
+ {
1926
+ "name": "protoJupiterBorrowPermBorrow";
1927
+ "type": "u64";
1928
+ "value": "8";
1929
+ },
1930
+ {
1931
+ "name": "protoJupiterBorrowPermDepositCollateral";
1932
+ "type": "u64";
1933
+ "value": "2";
1934
+ },
1935
+ {
1936
+ "name": "protoJupiterBorrowPermInitPosition";
1937
+ "type": "u64";
1938
+ "value": "1";
1939
+ },
1940
+ {
1941
+ "name": "protoJupiterBorrowPermRepay";
1942
+ "type": "u64";
1943
+ "value": "16";
1944
+ },
1945
+ {
1946
+ "name": "protoJupiterBorrowPermWithdrawCollateral";
1947
+ "type": "u64";
1948
+ "value": "4";
1949
+ },
1950
+ {
1951
+ "name": "protoJupiterEarn";
1952
+ "type": "u16";
1953
+ "value": "1";
1954
+ },
1955
+ {
1956
+ "name": "protoJupiterEarnPermDeposit";
1957
+ "type": "u64";
1958
+ "value": "1";
1959
+ },
1960
+ {
1961
+ "name": "protoJupiterEarnPermWithdraw";
1962
+ "type": "u64";
1963
+ "value": "2";
1964
+ }
1965
+ ];
1966
+ };