@glamsystems/glam-sdk 1.1.0-alpha.1 → 1.1.0-alpha.2

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 (85) hide show
  1. package/index.cjs.js +6583 -2920
  2. package/index.esm.js +6575 -2909
  3. package/package.json +2 -2
  4. package/target/idl/glam_mint-staging.json +18 -15
  5. package/target/idl/glam_protocol-staging.json +5 -0
  6. package/target/idl/glam_protocol.json +5 -0
  7. package/target/types/glam_mint-staging.ts +18 -15
  8. package/target/types/glam_protocol-staging.ts +5 -0
  9. package/target/types/glam_protocol.ts +5 -0
  10. package/src/assets.d.ts +0 -39
  11. package/src/client/access.d.ts +0 -57
  12. package/src/client/base.d.ts +0 -184
  13. package/src/client/bridge.d.ts +0 -183
  14. package/src/client/bridgeRegistry.d.ts +0 -32
  15. package/src/client/cctp.d.ts +0 -156
  16. package/src/client/epi.d.ts +0 -78
  17. package/src/client/fees.d.ts +0 -33
  18. package/src/client/invest.d.ts +0 -37
  19. package/src/client/jupiter.d.ts +0 -45
  20. package/src/client/kamino/farm.d.ts +0 -39
  21. package/src/client/kamino/index.d.ts +0 -4
  22. package/src/client/kamino/lending.d.ts +0 -86
  23. package/src/client/kamino/types.d.ts +0 -56
  24. package/src/client/kamino/vaults.d.ts +0 -31
  25. package/src/client/loopscale.d.ts +0 -84
  26. package/src/client/marinade.d.ts +0 -42
  27. package/src/client/mint.d.ts +0 -127
  28. package/src/client/neutral.d.ts +0 -109
  29. package/src/client/price.d.ts +0 -138
  30. package/src/client/stake-pool.d.ts +0 -39
  31. package/src/client/stake.d.ts +0 -34
  32. package/src/client/state.d.ts +0 -56
  33. package/src/client/timelock.d.ts +0 -31
  34. package/src/client/vault.d.ts +0 -90
  35. package/src/client.d.ts +0 -68
  36. package/src/clientConfig.d.ts +0 -29
  37. package/src/constants.d.ts +0 -84
  38. package/src/deser/base.d.ts +0 -18
  39. package/src/deser/index.d.ts +0 -3
  40. package/src/deser/integrationPolicies.d.ts +0 -120
  41. package/src/deser/kaminoLayouts.d.ts +0 -264
  42. package/src/deser/tokenAclLayouts.d.ts +0 -67
  43. package/src/error.d.ts +0 -29
  44. package/src/glamExports.d.ts +0 -5116
  45. package/src/globalConfig.d.ts +0 -27
  46. package/src/index.d.ts +0 -20
  47. package/src/models/acl.d.ts +0 -43
  48. package/src/models/index.d.ts +0 -8
  49. package/src/models/mint.d.ts +0 -64
  50. package/src/models/state.d.ts +0 -104
  51. package/src/models/types.d.ts +0 -28
  52. package/src/react/cluster-provider.d.ts +0 -22
  53. package/src/react/glam.d.ts +0 -47
  54. package/src/react/index.d.ts +0 -5
  55. package/src/react/query-keys.d.ts +0 -38
  56. package/src/react/useVaultBalanceSubscription.d.ts +0 -17
  57. package/src/utils/accounts.d.ts +0 -72
  58. package/src/utils/bitmask.d.ts +0 -53
  59. package/src/utils/blockhash.d.ts +0 -11
  60. package/src/utils/common.d.ts +0 -37
  61. package/src/utils/computeBudget.d.ts +0 -15
  62. package/src/utils/evm.d.ts +0 -10
  63. package/src/utils/fraction.d.ts +0 -29
  64. package/src/utils/glamPDAs.d.ts +0 -15
  65. package/src/utils/index.d.ts +0 -16
  66. package/src/utils/jupiterApi.d.ts +0 -89
  67. package/src/utils/lookupTables.d.ts +0 -53
  68. package/src/utils/pkmap.d.ts +0 -87
  69. package/src/utils/pkset.d.ts +0 -73
  70. package/src/utils/positionCategorizer.d.ts +0 -36
  71. package/src/utils/rpc.d.ts +0 -33
  72. package/src/utils/timelock.d.ts +0 -52
  73. package/src/utils/transaction.d.ts +0 -13
  74. package/target/types/ext_bridge.d.ts +0 -2385
  75. package/target/types/ext_cctp.d.ts +0 -1268
  76. package/target/types/ext_epi.d.ts +0 -2175
  77. package/target/types/ext_kamino.d.ts +0 -3433
  78. package/target/types/ext_loopscale.d.ts +0 -3547
  79. package/target/types/ext_marinade.d.ts +0 -1593
  80. package/target/types/ext_neutral.d.ts +0 -1670
  81. package/target/types/ext_spl.d.ts +0 -1274
  82. package/target/types/ext_stake_pool.d.ts +0 -1622
  83. package/target/types/glam_config.d.ts +0 -755
  84. package/target/types/glam_mint.d.ts +0 -6106
  85. package/target/types/glam_protocol.d.ts +0 -2708
@@ -1,3433 +0,0 @@
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_kamino.json`.
6
- */
7
- export type ExtKamino = {
8
- "address": "G1NTkDEUR3pkEqGCKZtmtmVzCUEdYa86pezHkwYbLyde";
9
- "metadata": {
10
- "name": "extKamino";
11
- "version": "1.0.1";
12
- "spec": "0.1.0";
13
- "description": "Kamino integration for GLAM Protocol";
14
- };
15
- "instructions": [
16
- {
17
- "name": "farmsHarvestReward";
18
- "discriminator": [
19
- 244,
20
- 248,
21
- 124,
22
- 210,
23
- 194,
24
- 52,
25
- 75,
26
- 152
27
- ];
28
- "accounts": [
29
- {
30
- "name": "glamState";
31
- "writable": true;
32
- },
33
- {
34
- "name": "glamVault";
35
- "writable": true;
36
- "pda": {
37
- "seeds": [
38
- {
39
- "kind": "const";
40
- "value": [
41
- 118,
42
- 97,
43
- 117,
44
- 108,
45
- 116
46
- ];
47
- },
48
- {
49
- "kind": "account";
50
- "path": "glamState";
51
- }
52
- ];
53
- "program": {
54
- "kind": "account";
55
- "path": "glamProtocolProgram";
56
- };
57
- };
58
- },
59
- {
60
- "name": "glamSigner";
61
- "writable": true;
62
- "signer": true;
63
- },
64
- {
65
- "name": "integrationAuthority";
66
- "pda": {
67
- "seeds": [
68
- {
69
- "kind": "const";
70
- "value": [
71
- 105,
72
- 110,
73
- 116,
74
- 101,
75
- 103,
76
- 114,
77
- 97,
78
- 116,
79
- 105,
80
- 111,
81
- 110,
82
- 45,
83
- 97,
84
- 117,
85
- 116,
86
- 104,
87
- 111,
88
- 114,
89
- 105,
90
- 116,
91
- 121
92
- ];
93
- }
94
- ];
95
- };
96
- },
97
- {
98
- "name": "cpiProgram";
99
- "address": "FarmsPZpWu9i7Kky8tPN37rs2TpmMrAZrC7S7vJa91Hr";
100
- },
101
- {
102
- "name": "glamProtocolProgram";
103
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
104
- },
105
- {
106
- "name": "systemProgram";
107
- "address": "11111111111111111111111111111111";
108
- },
109
- {
110
- "name": "userState";
111
- "writable": true;
112
- },
113
- {
114
- "name": "farmState";
115
- "writable": true;
116
- },
117
- {
118
- "name": "globalConfig";
119
- },
120
- {
121
- "name": "rewardMint";
122
- },
123
- {
124
- "name": "userRewardAta";
125
- "writable": true;
126
- },
127
- {
128
- "name": "rewardsVault";
129
- "writable": true;
130
- },
131
- {
132
- "name": "rewardsTreasuryVault";
133
- "writable": true;
134
- },
135
- {
136
- "name": "farmVaultsAuthority";
137
- },
138
- {
139
- "name": "scopePrices";
140
- "optional": true;
141
- },
142
- {
143
- "name": "tokenProgram";
144
- }
145
- ];
146
- "args": [
147
- {
148
- "name": "rewardIndex";
149
- "type": "u64";
150
- }
151
- ];
152
- },
153
- {
154
- "name": "farmsInitializeUser";
155
- "discriminator": [
156
- 188,
157
- 148,
158
- 82,
159
- 37,
160
- 44,
161
- 46,
162
- 162,
163
- 34
164
- ];
165
- "accounts": [
166
- {
167
- "name": "glamState";
168
- "writable": true;
169
- },
170
- {
171
- "name": "glamVault";
172
- "writable": true;
173
- "pda": {
174
- "seeds": [
175
- {
176
- "kind": "const";
177
- "value": [
178
- 118,
179
- 97,
180
- 117,
181
- 108,
182
- 116
183
- ];
184
- },
185
- {
186
- "kind": "account";
187
- "path": "glamState";
188
- }
189
- ];
190
- "program": {
191
- "kind": "account";
192
- "path": "glamProtocolProgram";
193
- };
194
- };
195
- },
196
- {
197
- "name": "glamSigner";
198
- "writable": true;
199
- "signer": true;
200
- },
201
- {
202
- "name": "integrationAuthority";
203
- "pda": {
204
- "seeds": [
205
- {
206
- "kind": "const";
207
- "value": [
208
- 105,
209
- 110,
210
- 116,
211
- 101,
212
- 103,
213
- 114,
214
- 97,
215
- 116,
216
- 105,
217
- 111,
218
- 110,
219
- 45,
220
- 97,
221
- 117,
222
- 116,
223
- 104,
224
- 111,
225
- 114,
226
- 105,
227
- 116,
228
- 121
229
- ];
230
- }
231
- ];
232
- };
233
- },
234
- {
235
- "name": "cpiProgram";
236
- "address": "FarmsPZpWu9i7Kky8tPN37rs2TpmMrAZrC7S7vJa91Hr";
237
- },
238
- {
239
- "name": "glamProtocolProgram";
240
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
241
- },
242
- {
243
- "name": "systemProgram";
244
- "address": "11111111111111111111111111111111";
245
- },
246
- {
247
- "name": "userState";
248
- "writable": true;
249
- },
250
- {
251
- "name": "farmState";
252
- "writable": true;
253
- },
254
- {
255
- "name": "rent";
256
- "address": "SysvarRent111111111111111111111111111111111";
257
- }
258
- ];
259
- "args": [];
260
- },
261
- {
262
- "name": "farmsStake";
263
- "discriminator": [
264
- 224,
265
- 105,
266
- 208,
267
- 179,
268
- 98,
269
- 200,
270
- 213,
271
- 238
272
- ];
273
- "accounts": [
274
- {
275
- "name": "glamState";
276
- "writable": true;
277
- },
278
- {
279
- "name": "glamVault";
280
- "writable": true;
281
- "pda": {
282
- "seeds": [
283
- {
284
- "kind": "const";
285
- "value": [
286
- 118,
287
- 97,
288
- 117,
289
- 108,
290
- 116
291
- ];
292
- },
293
- {
294
- "kind": "account";
295
- "path": "glamState";
296
- }
297
- ];
298
- "program": {
299
- "kind": "account";
300
- "path": "glamProtocolProgram";
301
- };
302
- };
303
- },
304
- {
305
- "name": "glamSigner";
306
- "writable": true;
307
- "signer": true;
308
- },
309
- {
310
- "name": "integrationAuthority";
311
- "pda": {
312
- "seeds": [
313
- {
314
- "kind": "const";
315
- "value": [
316
- 105,
317
- 110,
318
- 116,
319
- 101,
320
- 103,
321
- 114,
322
- 97,
323
- 116,
324
- 105,
325
- 111,
326
- 110,
327
- 45,
328
- 97,
329
- 117,
330
- 116,
331
- 104,
332
- 111,
333
- 114,
334
- 105,
335
- 116,
336
- 121
337
- ];
338
- }
339
- ];
340
- };
341
- },
342
- {
343
- "name": "cpiProgram";
344
- "address": "FarmsPZpWu9i7Kky8tPN37rs2TpmMrAZrC7S7vJa91Hr";
345
- },
346
- {
347
- "name": "glamProtocolProgram";
348
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
349
- },
350
- {
351
- "name": "systemProgram";
352
- "address": "11111111111111111111111111111111";
353
- },
354
- {
355
- "name": "userState";
356
- "writable": true;
357
- },
358
- {
359
- "name": "farmState";
360
- "writable": true;
361
- },
362
- {
363
- "name": "farmVault";
364
- "writable": true;
365
- },
366
- {
367
- "name": "userAta";
368
- "writable": true;
369
- },
370
- {
371
- "name": "tokenMint";
372
- },
373
- {
374
- "name": "scopePrices";
375
- "optional": true;
376
- },
377
- {
378
- "name": "tokenProgram";
379
- }
380
- ];
381
- "args": [
382
- {
383
- "name": "amount";
384
- "type": "u64";
385
- }
386
- ];
387
- },
388
- {
389
- "name": "farmsUnstake";
390
- "discriminator": [
391
- 180,
392
- 131,
393
- 50,
394
- 144,
395
- 26,
396
- 242,
397
- 175,
398
- 242
399
- ];
400
- "accounts": [
401
- {
402
- "name": "glamState";
403
- "writable": true;
404
- },
405
- {
406
- "name": "glamVault";
407
- "writable": true;
408
- "pda": {
409
- "seeds": [
410
- {
411
- "kind": "const";
412
- "value": [
413
- 118,
414
- 97,
415
- 117,
416
- 108,
417
- 116
418
- ];
419
- },
420
- {
421
- "kind": "account";
422
- "path": "glamState";
423
- }
424
- ];
425
- "program": {
426
- "kind": "account";
427
- "path": "glamProtocolProgram";
428
- };
429
- };
430
- },
431
- {
432
- "name": "glamSigner";
433
- "writable": true;
434
- "signer": true;
435
- },
436
- {
437
- "name": "integrationAuthority";
438
- "pda": {
439
- "seeds": [
440
- {
441
- "kind": "const";
442
- "value": [
443
- 105,
444
- 110,
445
- 116,
446
- 101,
447
- 103,
448
- 114,
449
- 97,
450
- 116,
451
- 105,
452
- 111,
453
- 110,
454
- 45,
455
- 97,
456
- 117,
457
- 116,
458
- 104,
459
- 111,
460
- 114,
461
- 105,
462
- 116,
463
- 121
464
- ];
465
- }
466
- ];
467
- };
468
- },
469
- {
470
- "name": "cpiProgram";
471
- "address": "FarmsPZpWu9i7Kky8tPN37rs2TpmMrAZrC7S7vJa91Hr";
472
- },
473
- {
474
- "name": "glamProtocolProgram";
475
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
476
- },
477
- {
478
- "name": "systemProgram";
479
- "address": "11111111111111111111111111111111";
480
- },
481
- {
482
- "name": "userState";
483
- "writable": true;
484
- },
485
- {
486
- "name": "farmState";
487
- "writable": true;
488
- },
489
- {
490
- "name": "scopePrices";
491
- "optional": true;
492
- }
493
- ];
494
- "args": [
495
- {
496
- "name": "amount";
497
- "type": "u128";
498
- }
499
- ];
500
- },
501
- {
502
- "name": "farmsWithdrawUnstakedDeposits";
503
- "discriminator": [
504
- 107,
505
- 97,
506
- 50,
507
- 15,
508
- 211,
509
- 245,
510
- 52,
511
- 96
512
- ];
513
- "accounts": [
514
- {
515
- "name": "glamState";
516
- "writable": true;
517
- },
518
- {
519
- "name": "glamVault";
520
- "writable": true;
521
- "pda": {
522
- "seeds": [
523
- {
524
- "kind": "const";
525
- "value": [
526
- 118,
527
- 97,
528
- 117,
529
- 108,
530
- 116
531
- ];
532
- },
533
- {
534
- "kind": "account";
535
- "path": "glamState";
536
- }
537
- ];
538
- "program": {
539
- "kind": "account";
540
- "path": "glamProtocolProgram";
541
- };
542
- };
543
- },
544
- {
545
- "name": "glamSigner";
546
- "writable": true;
547
- "signer": true;
548
- },
549
- {
550
- "name": "integrationAuthority";
551
- "pda": {
552
- "seeds": [
553
- {
554
- "kind": "const";
555
- "value": [
556
- 105,
557
- 110,
558
- 116,
559
- 101,
560
- 103,
561
- 114,
562
- 97,
563
- 116,
564
- 105,
565
- 111,
566
- 110,
567
- 45,
568
- 97,
569
- 117,
570
- 116,
571
- 104,
572
- 111,
573
- 114,
574
- 105,
575
- 116,
576
- 121
577
- ];
578
- }
579
- ];
580
- };
581
- },
582
- {
583
- "name": "cpiProgram";
584
- "address": "FarmsPZpWu9i7Kky8tPN37rs2TpmMrAZrC7S7vJa91Hr";
585
- },
586
- {
587
- "name": "glamProtocolProgram";
588
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
589
- },
590
- {
591
- "name": "systemProgram";
592
- "address": "11111111111111111111111111111111";
593
- },
594
- {
595
- "name": "userState";
596
- "writable": true;
597
- },
598
- {
599
- "name": "farmState";
600
- "writable": true;
601
- },
602
- {
603
- "name": "userAta";
604
- "writable": true;
605
- },
606
- {
607
- "name": "farmVault";
608
- "writable": true;
609
- },
610
- {
611
- "name": "farmVaultsAuthority";
612
- },
613
- {
614
- "name": "tokenProgram";
615
- }
616
- ];
617
- "args": [];
618
- },
619
- {
620
- "name": "lendingBorrowObligationLiquidityV2";
621
- "discriminator": [
622
- 149,
623
- 226,
624
- 84,
625
- 157,
626
- 124,
627
- 178,
628
- 35,
629
- 122
630
- ];
631
- "accounts": [
632
- {
633
- "name": "glamState";
634
- "writable": true;
635
- },
636
- {
637
- "name": "glamVault";
638
- "writable": true;
639
- "pda": {
640
- "seeds": [
641
- {
642
- "kind": "const";
643
- "value": [
644
- 118,
645
- 97,
646
- 117,
647
- 108,
648
- 116
649
- ];
650
- },
651
- {
652
- "kind": "account";
653
- "path": "glamState";
654
- }
655
- ];
656
- "program": {
657
- "kind": "account";
658
- "path": "glamProtocolProgram";
659
- };
660
- };
661
- },
662
- {
663
- "name": "glamSigner";
664
- "writable": true;
665
- "signer": true;
666
- },
667
- {
668
- "name": "integrationAuthority";
669
- "pda": {
670
- "seeds": [
671
- {
672
- "kind": "const";
673
- "value": [
674
- 105,
675
- 110,
676
- 116,
677
- 101,
678
- 103,
679
- 114,
680
- 97,
681
- 116,
682
- 105,
683
- 111,
684
- 110,
685
- 45,
686
- 97,
687
- 117,
688
- 116,
689
- 104,
690
- 111,
691
- 114,
692
- 105,
693
- 116,
694
- 121
695
- ];
696
- }
697
- ];
698
- };
699
- },
700
- {
701
- "name": "cpiProgram";
702
- "address": "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD";
703
- },
704
- {
705
- "name": "glamProtocolProgram";
706
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
707
- },
708
- {
709
- "name": "systemProgram";
710
- "address": "11111111111111111111111111111111";
711
- },
712
- {
713
- "name": "obligation";
714
- "writable": true;
715
- },
716
- {
717
- "name": "lendingMarket";
718
- },
719
- {
720
- "name": "lendingMarketAuthority";
721
- },
722
- {
723
- "name": "borrowReserve";
724
- "writable": true;
725
- },
726
- {
727
- "name": "borrowReserveLiquidityMint";
728
- },
729
- {
730
- "name": "reserveSourceLiquidity";
731
- "writable": true;
732
- },
733
- {
734
- "name": "borrowReserveLiquidityFeeReceiver";
735
- "writable": true;
736
- },
737
- {
738
- "name": "userDestinationLiquidity";
739
- "writable": true;
740
- },
741
- {
742
- "name": "referrerTokenState";
743
- "writable": true;
744
- "optional": true;
745
- },
746
- {
747
- "name": "tokenProgram";
748
- },
749
- {
750
- "name": "instructionSysvarAccount";
751
- },
752
- {
753
- "name": "obligationFarmUserState";
754
- "writable": true;
755
- "optional": true;
756
- },
757
- {
758
- "name": "reserveFarmState";
759
- "writable": true;
760
- "optional": true;
761
- },
762
- {
763
- "name": "farmsProgram";
764
- }
765
- ];
766
- "args": [
767
- {
768
- "name": "liquidityAmount";
769
- "type": "u64";
770
- }
771
- ];
772
- },
773
- {
774
- "name": "lendingDepositReserveLiquidityAndObligationCollateralV2";
775
- "discriminator": [
776
- 33,
777
- 146,
778
- 50,
779
- 121,
780
- 127,
781
- 94,
782
- 92,
783
- 192
784
- ];
785
- "accounts": [
786
- {
787
- "name": "glamState";
788
- "writable": true;
789
- },
790
- {
791
- "name": "glamVault";
792
- "writable": true;
793
- "pda": {
794
- "seeds": [
795
- {
796
- "kind": "const";
797
- "value": [
798
- 118,
799
- 97,
800
- 117,
801
- 108,
802
- 116
803
- ];
804
- },
805
- {
806
- "kind": "account";
807
- "path": "glamState";
808
- }
809
- ];
810
- "program": {
811
- "kind": "account";
812
- "path": "glamProtocolProgram";
813
- };
814
- };
815
- },
816
- {
817
- "name": "glamSigner";
818
- "writable": true;
819
- "signer": true;
820
- },
821
- {
822
- "name": "integrationAuthority";
823
- "pda": {
824
- "seeds": [
825
- {
826
- "kind": "const";
827
- "value": [
828
- 105,
829
- 110,
830
- 116,
831
- 101,
832
- 103,
833
- 114,
834
- 97,
835
- 116,
836
- 105,
837
- 111,
838
- 110,
839
- 45,
840
- 97,
841
- 117,
842
- 116,
843
- 104,
844
- 111,
845
- 114,
846
- 105,
847
- 116,
848
- 121
849
- ];
850
- }
851
- ];
852
- };
853
- },
854
- {
855
- "name": "cpiProgram";
856
- "address": "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD";
857
- },
858
- {
859
- "name": "glamProtocolProgram";
860
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
861
- },
862
- {
863
- "name": "systemProgram";
864
- "address": "11111111111111111111111111111111";
865
- },
866
- {
867
- "name": "obligation";
868
- "writable": true;
869
- },
870
- {
871
- "name": "lendingMarket";
872
- },
873
- {
874
- "name": "lendingMarketAuthority";
875
- },
876
- {
877
- "name": "reserve";
878
- "writable": true;
879
- },
880
- {
881
- "name": "reserveLiquidityMint";
882
- },
883
- {
884
- "name": "reserveLiquiditySupply";
885
- "writable": true;
886
- },
887
- {
888
- "name": "reserveCollateralMint";
889
- "writable": true;
890
- },
891
- {
892
- "name": "reserveDestinationDepositCollateral";
893
- "writable": true;
894
- },
895
- {
896
- "name": "userSourceLiquidity";
897
- "writable": true;
898
- },
899
- {
900
- "name": "placeholderUserDestinationCollateral";
901
- "optional": true;
902
- },
903
- {
904
- "name": "collateralTokenProgram";
905
- },
906
- {
907
- "name": "liquidityTokenProgram";
908
- },
909
- {
910
- "name": "instructionSysvarAccount";
911
- },
912
- {
913
- "name": "obligationFarmUserState";
914
- "writable": true;
915
- "optional": true;
916
- },
917
- {
918
- "name": "reserveFarmState";
919
- "writable": true;
920
- "optional": true;
921
- },
922
- {
923
- "name": "farmsProgram";
924
- }
925
- ];
926
- "args": [
927
- {
928
- "name": "liquidityAmount";
929
- "type": "u64";
930
- }
931
- ];
932
- },
933
- {
934
- "name": "lendingInitObligation";
935
- "discriminator": [
936
- 188,
937
- 161,
938
- 62,
939
- 142,
940
- 106,
941
- 232,
942
- 77,
943
- 135
944
- ];
945
- "accounts": [
946
- {
947
- "name": "glamState";
948
- "writable": true;
949
- },
950
- {
951
- "name": "glamVault";
952
- "writable": true;
953
- "pda": {
954
- "seeds": [
955
- {
956
- "kind": "const";
957
- "value": [
958
- 118,
959
- 97,
960
- 117,
961
- 108,
962
- 116
963
- ];
964
- },
965
- {
966
- "kind": "account";
967
- "path": "glamState";
968
- }
969
- ];
970
- "program": {
971
- "kind": "account";
972
- "path": "glamProtocolProgram";
973
- };
974
- };
975
- },
976
- {
977
- "name": "glamSigner";
978
- "writable": true;
979
- "signer": true;
980
- },
981
- {
982
- "name": "integrationAuthority";
983
- "pda": {
984
- "seeds": [
985
- {
986
- "kind": "const";
987
- "value": [
988
- 105,
989
- 110,
990
- 116,
991
- 101,
992
- 103,
993
- 114,
994
- 97,
995
- 116,
996
- 105,
997
- 111,
998
- 110,
999
- 45,
1000
- 97,
1001
- 117,
1002
- 116,
1003
- 104,
1004
- 111,
1005
- 114,
1006
- 105,
1007
- 116,
1008
- 121
1009
- ];
1010
- }
1011
- ];
1012
- };
1013
- },
1014
- {
1015
- "name": "cpiProgram";
1016
- "address": "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD";
1017
- },
1018
- {
1019
- "name": "glamProtocolProgram";
1020
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1021
- },
1022
- {
1023
- "name": "feePayer";
1024
- "writable": true;
1025
- "signer": true;
1026
- },
1027
- {
1028
- "name": "obligation";
1029
- "writable": true;
1030
- },
1031
- {
1032
- "name": "lendingMarket";
1033
- },
1034
- {
1035
- "name": "seed1Account";
1036
- },
1037
- {
1038
- "name": "seed2Account";
1039
- },
1040
- {
1041
- "name": "ownerUserMetadata";
1042
- },
1043
- {
1044
- "name": "rent";
1045
- "address": "SysvarRent111111111111111111111111111111111";
1046
- },
1047
- {
1048
- "name": "systemProgram";
1049
- "address": "11111111111111111111111111111111";
1050
- }
1051
- ];
1052
- "args": [
1053
- {
1054
- "name": "args";
1055
- "type": {
1056
- "defined": {
1057
- "name": "initObligationArgs";
1058
- };
1059
- };
1060
- }
1061
- ];
1062
- },
1063
- {
1064
- "name": "lendingInitObligationFarmsForReserve";
1065
- "discriminator": [
1066
- 3,
1067
- 234,
1068
- 110,
1069
- 39,
1070
- 12,
1071
- 147,
1072
- 175,
1073
- 185
1074
- ];
1075
- "accounts": [
1076
- {
1077
- "name": "glamState";
1078
- "writable": true;
1079
- },
1080
- {
1081
- "name": "glamVault";
1082
- "writable": true;
1083
- "pda": {
1084
- "seeds": [
1085
- {
1086
- "kind": "const";
1087
- "value": [
1088
- 118,
1089
- 97,
1090
- 117,
1091
- 108,
1092
- 116
1093
- ];
1094
- },
1095
- {
1096
- "kind": "account";
1097
- "path": "glamState";
1098
- }
1099
- ];
1100
- "program": {
1101
- "kind": "account";
1102
- "path": "glamProtocolProgram";
1103
- };
1104
- };
1105
- },
1106
- {
1107
- "name": "glamSigner";
1108
- "writable": true;
1109
- "signer": true;
1110
- },
1111
- {
1112
- "name": "integrationAuthority";
1113
- "pda": {
1114
- "seeds": [
1115
- {
1116
- "kind": "const";
1117
- "value": [
1118
- 105,
1119
- 110,
1120
- 116,
1121
- 101,
1122
- 103,
1123
- 114,
1124
- 97,
1125
- 116,
1126
- 105,
1127
- 111,
1128
- 110,
1129
- 45,
1130
- 97,
1131
- 117,
1132
- 116,
1133
- 104,
1134
- 111,
1135
- 114,
1136
- 105,
1137
- 116,
1138
- 121
1139
- ];
1140
- }
1141
- ];
1142
- };
1143
- },
1144
- {
1145
- "name": "cpiProgram";
1146
- "address": "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD";
1147
- },
1148
- {
1149
- "name": "glamProtocolProgram";
1150
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1151
- },
1152
- {
1153
- "name": "payer";
1154
- "writable": true;
1155
- "signer": true;
1156
- },
1157
- {
1158
- "name": "obligation";
1159
- "writable": true;
1160
- },
1161
- {
1162
- "name": "lendingMarketAuthority";
1163
- },
1164
- {
1165
- "name": "reserve";
1166
- "writable": true;
1167
- },
1168
- {
1169
- "name": "reserveFarmState";
1170
- "writable": true;
1171
- },
1172
- {
1173
- "name": "obligationFarm";
1174
- "writable": true;
1175
- },
1176
- {
1177
- "name": "lendingMarket";
1178
- },
1179
- {
1180
- "name": "farmsProgram";
1181
- },
1182
- {
1183
- "name": "rent";
1184
- "address": "SysvarRent111111111111111111111111111111111";
1185
- },
1186
- {
1187
- "name": "systemProgram";
1188
- "address": "11111111111111111111111111111111";
1189
- }
1190
- ];
1191
- "args": [
1192
- {
1193
- "name": "mode";
1194
- "type": "u8";
1195
- }
1196
- ];
1197
- },
1198
- {
1199
- "name": "lendingInitUserMetadata";
1200
- "discriminator": [
1201
- 68,
1202
- 236,
1203
- 138,
1204
- 146,
1205
- 124,
1206
- 228,
1207
- 247,
1208
- 241
1209
- ];
1210
- "accounts": [
1211
- {
1212
- "name": "glamState";
1213
- "writable": true;
1214
- },
1215
- {
1216
- "name": "glamVault";
1217
- "writable": true;
1218
- "pda": {
1219
- "seeds": [
1220
- {
1221
- "kind": "const";
1222
- "value": [
1223
- 118,
1224
- 97,
1225
- 117,
1226
- 108,
1227
- 116
1228
- ];
1229
- },
1230
- {
1231
- "kind": "account";
1232
- "path": "glamState";
1233
- }
1234
- ];
1235
- "program": {
1236
- "kind": "account";
1237
- "path": "glamProtocolProgram";
1238
- };
1239
- };
1240
- },
1241
- {
1242
- "name": "glamSigner";
1243
- "writable": true;
1244
- "signer": true;
1245
- },
1246
- {
1247
- "name": "integrationAuthority";
1248
- "pda": {
1249
- "seeds": [
1250
- {
1251
- "kind": "const";
1252
- "value": [
1253
- 105,
1254
- 110,
1255
- 116,
1256
- 101,
1257
- 103,
1258
- 114,
1259
- 97,
1260
- 116,
1261
- 105,
1262
- 111,
1263
- 110,
1264
- 45,
1265
- 97,
1266
- 117,
1267
- 116,
1268
- 104,
1269
- 111,
1270
- 114,
1271
- 105,
1272
- 116,
1273
- 121
1274
- ];
1275
- }
1276
- ];
1277
- };
1278
- },
1279
- {
1280
- "name": "cpiProgram";
1281
- "address": "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD";
1282
- },
1283
- {
1284
- "name": "glamProtocolProgram";
1285
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1286
- },
1287
- {
1288
- "name": "feePayer";
1289
- "writable": true;
1290
- "signer": true;
1291
- },
1292
- {
1293
- "name": "userMetadata";
1294
- "writable": true;
1295
- },
1296
- {
1297
- "name": "referrerUserMetadata";
1298
- "optional": true;
1299
- },
1300
- {
1301
- "name": "rent";
1302
- "address": "SysvarRent111111111111111111111111111111111";
1303
- },
1304
- {
1305
- "name": "systemProgram";
1306
- "address": "11111111111111111111111111111111";
1307
- }
1308
- ];
1309
- "args": [
1310
- {
1311
- "name": "userLookupTable";
1312
- "type": "pubkey";
1313
- }
1314
- ];
1315
- },
1316
- {
1317
- "name": "lendingLiquidateObligationAndRedeemReserveCollateralV2";
1318
- "discriminator": [
1319
- 179,
1320
- 45,
1321
- 146,
1322
- 167,
1323
- 246,
1324
- 239,
1325
- 18,
1326
- 242
1327
- ];
1328
- "accounts": [
1329
- {
1330
- "name": "glamState";
1331
- "writable": true;
1332
- },
1333
- {
1334
- "name": "glamVault";
1335
- "writable": true;
1336
- "pda": {
1337
- "seeds": [
1338
- {
1339
- "kind": "const";
1340
- "value": [
1341
- 118,
1342
- 97,
1343
- 117,
1344
- 108,
1345
- 116
1346
- ];
1347
- },
1348
- {
1349
- "kind": "account";
1350
- "path": "glamState";
1351
- }
1352
- ];
1353
- "program": {
1354
- "kind": "account";
1355
- "path": "glamProtocolProgram";
1356
- };
1357
- };
1358
- },
1359
- {
1360
- "name": "glamSigner";
1361
- "writable": true;
1362
- "signer": true;
1363
- },
1364
- {
1365
- "name": "integrationAuthority";
1366
- "pda": {
1367
- "seeds": [
1368
- {
1369
- "kind": "const";
1370
- "value": [
1371
- 105,
1372
- 110,
1373
- 116,
1374
- 101,
1375
- 103,
1376
- 114,
1377
- 97,
1378
- 116,
1379
- 105,
1380
- 111,
1381
- 110,
1382
- 45,
1383
- 97,
1384
- 117,
1385
- 116,
1386
- 104,
1387
- 111,
1388
- 114,
1389
- 105,
1390
- 116,
1391
- 121
1392
- ];
1393
- }
1394
- ];
1395
- };
1396
- },
1397
- {
1398
- "name": "cpiProgram";
1399
- "address": "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD";
1400
- },
1401
- {
1402
- "name": "glamProtocolProgram";
1403
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1404
- },
1405
- {
1406
- "name": "systemProgram";
1407
- "address": "11111111111111111111111111111111";
1408
- },
1409
- {
1410
- "name": "obligation";
1411
- "writable": true;
1412
- },
1413
- {
1414
- "name": "lendingMarket";
1415
- },
1416
- {
1417
- "name": "lendingMarketAuthority";
1418
- },
1419
- {
1420
- "name": "repayReserve";
1421
- "writable": true;
1422
- },
1423
- {
1424
- "name": "repayReserveLiquidityMint";
1425
- },
1426
- {
1427
- "name": "repayReserveLiquiditySupply";
1428
- "writable": true;
1429
- },
1430
- {
1431
- "name": "withdrawReserve";
1432
- "writable": true;
1433
- },
1434
- {
1435
- "name": "withdrawReserveLiquidityMint";
1436
- },
1437
- {
1438
- "name": "withdrawReserveCollateralMint";
1439
- "writable": true;
1440
- },
1441
- {
1442
- "name": "withdrawReserveCollateralSupply";
1443
- "writable": true;
1444
- },
1445
- {
1446
- "name": "withdrawReserveLiquiditySupply";
1447
- "writable": true;
1448
- },
1449
- {
1450
- "name": "withdrawReserveLiquidityFeeReceiver";
1451
- "writable": true;
1452
- },
1453
- {
1454
- "name": "userSourceLiquidity";
1455
- "writable": true;
1456
- },
1457
- {
1458
- "name": "userDestinationCollateral";
1459
- "writable": true;
1460
- },
1461
- {
1462
- "name": "userDestinationLiquidity";
1463
- "writable": true;
1464
- },
1465
- {
1466
- "name": "collateralTokenProgram";
1467
- },
1468
- {
1469
- "name": "repayLiquidityTokenProgram";
1470
- },
1471
- {
1472
- "name": "withdrawLiquidityTokenProgram";
1473
- },
1474
- {
1475
- "name": "instructionSysvarAccount";
1476
- },
1477
- {
1478
- "name": "collateralObligationFarmUserState";
1479
- "writable": true;
1480
- "optional": true;
1481
- },
1482
- {
1483
- "name": "collateralReserveFarmState";
1484
- "writable": true;
1485
- "optional": true;
1486
- },
1487
- {
1488
- "name": "debtObligationFarmUserState";
1489
- "writable": true;
1490
- "optional": true;
1491
- },
1492
- {
1493
- "name": "debtReserveFarmState";
1494
- "writable": true;
1495
- "optional": true;
1496
- },
1497
- {
1498
- "name": "farmsProgram";
1499
- }
1500
- ];
1501
- "args": [
1502
- {
1503
- "name": "liquidityAmount";
1504
- "type": "u64";
1505
- },
1506
- {
1507
- "name": "minAcceptableReceivedLiquidityAmount";
1508
- "type": "u64";
1509
- },
1510
- {
1511
- "name": "maxAllowedLtvOverridePercent";
1512
- "type": "u64";
1513
- }
1514
- ];
1515
- },
1516
- {
1517
- "name": "lendingRepayObligationLiquidityV2";
1518
- "discriminator": [
1519
- 79,
1520
- 34,
1521
- 126,
1522
- 170,
1523
- 174,
1524
- 156,
1525
- 174,
1526
- 29
1527
- ];
1528
- "accounts": [
1529
- {
1530
- "name": "glamState";
1531
- "writable": true;
1532
- },
1533
- {
1534
- "name": "glamVault";
1535
- "writable": true;
1536
- "pda": {
1537
- "seeds": [
1538
- {
1539
- "kind": "const";
1540
- "value": [
1541
- 118,
1542
- 97,
1543
- 117,
1544
- 108,
1545
- 116
1546
- ];
1547
- },
1548
- {
1549
- "kind": "account";
1550
- "path": "glamState";
1551
- }
1552
- ];
1553
- "program": {
1554
- "kind": "account";
1555
- "path": "glamProtocolProgram";
1556
- };
1557
- };
1558
- },
1559
- {
1560
- "name": "glamSigner";
1561
- "writable": true;
1562
- "signer": true;
1563
- },
1564
- {
1565
- "name": "integrationAuthority";
1566
- "pda": {
1567
- "seeds": [
1568
- {
1569
- "kind": "const";
1570
- "value": [
1571
- 105,
1572
- 110,
1573
- 116,
1574
- 101,
1575
- 103,
1576
- 114,
1577
- 97,
1578
- 116,
1579
- 105,
1580
- 111,
1581
- 110,
1582
- 45,
1583
- 97,
1584
- 117,
1585
- 116,
1586
- 104,
1587
- 111,
1588
- 114,
1589
- 105,
1590
- 116,
1591
- 121
1592
- ];
1593
- }
1594
- ];
1595
- };
1596
- },
1597
- {
1598
- "name": "cpiProgram";
1599
- "address": "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD";
1600
- },
1601
- {
1602
- "name": "glamProtocolProgram";
1603
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1604
- },
1605
- {
1606
- "name": "systemProgram";
1607
- "address": "11111111111111111111111111111111";
1608
- },
1609
- {
1610
- "name": "obligation";
1611
- "writable": true;
1612
- },
1613
- {
1614
- "name": "lendingMarket";
1615
- },
1616
- {
1617
- "name": "repayReserve";
1618
- "writable": true;
1619
- },
1620
- {
1621
- "name": "reserveLiquidityMint";
1622
- },
1623
- {
1624
- "name": "reserveDestinationLiquidity";
1625
- "writable": true;
1626
- },
1627
- {
1628
- "name": "userSourceLiquidity";
1629
- "writable": true;
1630
- },
1631
- {
1632
- "name": "tokenProgram";
1633
- },
1634
- {
1635
- "name": "instructionSysvarAccount";
1636
- },
1637
- {
1638
- "name": "obligationFarmUserState";
1639
- "writable": true;
1640
- "optional": true;
1641
- },
1642
- {
1643
- "name": "reserveFarmState";
1644
- "writable": true;
1645
- "optional": true;
1646
- },
1647
- {
1648
- "name": "lendingMarketAuthority";
1649
- },
1650
- {
1651
- "name": "farmsProgram";
1652
- }
1653
- ];
1654
- "args": [
1655
- {
1656
- "name": "liquidityAmount";
1657
- "type": "u64";
1658
- }
1659
- ];
1660
- },
1661
- {
1662
- "name": "lendingRequestElevationGroup";
1663
- "discriminator": [
1664
- 162,
1665
- 119,
1666
- 197,
1667
- 54,
1668
- 246,
1669
- 84,
1670
- 55,
1671
- 153
1672
- ];
1673
- "accounts": [
1674
- {
1675
- "name": "glamState";
1676
- "writable": true;
1677
- },
1678
- {
1679
- "name": "glamVault";
1680
- "writable": true;
1681
- "pda": {
1682
- "seeds": [
1683
- {
1684
- "kind": "const";
1685
- "value": [
1686
- 118,
1687
- 97,
1688
- 117,
1689
- 108,
1690
- 116
1691
- ];
1692
- },
1693
- {
1694
- "kind": "account";
1695
- "path": "glamState";
1696
- }
1697
- ];
1698
- "program": {
1699
- "kind": "account";
1700
- "path": "glamProtocolProgram";
1701
- };
1702
- };
1703
- },
1704
- {
1705
- "name": "glamSigner";
1706
- "writable": true;
1707
- "signer": true;
1708
- },
1709
- {
1710
- "name": "integrationAuthority";
1711
- "pda": {
1712
- "seeds": [
1713
- {
1714
- "kind": "const";
1715
- "value": [
1716
- 105,
1717
- 110,
1718
- 116,
1719
- 101,
1720
- 103,
1721
- 114,
1722
- 97,
1723
- 116,
1724
- 105,
1725
- 111,
1726
- 110,
1727
- 45,
1728
- 97,
1729
- 117,
1730
- 116,
1731
- 104,
1732
- 111,
1733
- 114,
1734
- 105,
1735
- 116,
1736
- 121
1737
- ];
1738
- }
1739
- ];
1740
- };
1741
- },
1742
- {
1743
- "name": "cpiProgram";
1744
- "address": "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD";
1745
- },
1746
- {
1747
- "name": "glamProtocolProgram";
1748
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1749
- },
1750
- {
1751
- "name": "systemProgram";
1752
- "address": "11111111111111111111111111111111";
1753
- },
1754
- {
1755
- "name": "obligation";
1756
- "writable": true;
1757
- },
1758
- {
1759
- "name": "lendingMarket";
1760
- }
1761
- ];
1762
- "args": [
1763
- {
1764
- "name": "elevationGroup";
1765
- "type": "u8";
1766
- }
1767
- ];
1768
- },
1769
- {
1770
- "name": "lendingWithdrawObligationCollateralAndRedeemReserveCollateralV2";
1771
- "discriminator": [
1772
- 217,
1773
- 223,
1774
- 173,
1775
- 35,
1776
- 64,
1777
- 225,
1778
- 161,
1779
- 222
1780
- ];
1781
- "accounts": [
1782
- {
1783
- "name": "glamState";
1784
- "writable": true;
1785
- },
1786
- {
1787
- "name": "glamVault";
1788
- "writable": true;
1789
- "pda": {
1790
- "seeds": [
1791
- {
1792
- "kind": "const";
1793
- "value": [
1794
- 118,
1795
- 97,
1796
- 117,
1797
- 108,
1798
- 116
1799
- ];
1800
- },
1801
- {
1802
- "kind": "account";
1803
- "path": "glamState";
1804
- }
1805
- ];
1806
- "program": {
1807
- "kind": "account";
1808
- "path": "glamProtocolProgram";
1809
- };
1810
- };
1811
- },
1812
- {
1813
- "name": "glamSigner";
1814
- "writable": true;
1815
- "signer": true;
1816
- },
1817
- {
1818
- "name": "integrationAuthority";
1819
- "pda": {
1820
- "seeds": [
1821
- {
1822
- "kind": "const";
1823
- "value": [
1824
- 105,
1825
- 110,
1826
- 116,
1827
- 101,
1828
- 103,
1829
- 114,
1830
- 97,
1831
- 116,
1832
- 105,
1833
- 111,
1834
- 110,
1835
- 45,
1836
- 97,
1837
- 117,
1838
- 116,
1839
- 104,
1840
- 111,
1841
- 114,
1842
- 105,
1843
- 116,
1844
- 121
1845
- ];
1846
- }
1847
- ];
1848
- };
1849
- },
1850
- {
1851
- "name": "cpiProgram";
1852
- "address": "KLend2g3cP87fffoy8q1mQqGKjrxjC8boSyAYavgmjD";
1853
- },
1854
- {
1855
- "name": "glamProtocolProgram";
1856
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1857
- },
1858
- {
1859
- "name": "systemProgram";
1860
- "address": "11111111111111111111111111111111";
1861
- },
1862
- {
1863
- "name": "obligation";
1864
- "writable": true;
1865
- },
1866
- {
1867
- "name": "lendingMarket";
1868
- },
1869
- {
1870
- "name": "lendingMarketAuthority";
1871
- },
1872
- {
1873
- "name": "withdrawReserve";
1874
- "writable": true;
1875
- },
1876
- {
1877
- "name": "reserveLiquidityMint";
1878
- },
1879
- {
1880
- "name": "reserveSourceCollateral";
1881
- "writable": true;
1882
- },
1883
- {
1884
- "name": "reserveCollateralMint";
1885
- "writable": true;
1886
- },
1887
- {
1888
- "name": "reserveLiquiditySupply";
1889
- "writable": true;
1890
- },
1891
- {
1892
- "name": "userDestinationLiquidity";
1893
- "writable": true;
1894
- },
1895
- {
1896
- "name": "placeholderUserDestinationCollateral";
1897
- "optional": true;
1898
- },
1899
- {
1900
- "name": "collateralTokenProgram";
1901
- },
1902
- {
1903
- "name": "liquidityTokenProgram";
1904
- },
1905
- {
1906
- "name": "instructionSysvarAccount";
1907
- },
1908
- {
1909
- "name": "obligationFarmUserState";
1910
- "writable": true;
1911
- "optional": true;
1912
- },
1913
- {
1914
- "name": "reserveFarmState";
1915
- "writable": true;
1916
- "optional": true;
1917
- },
1918
- {
1919
- "name": "farmsProgram";
1920
- }
1921
- ];
1922
- "args": [
1923
- {
1924
- "name": "collateralAmount";
1925
- "type": "u64";
1926
- }
1927
- ];
1928
- },
1929
- {
1930
- "name": "setLendingPolicy";
1931
- "discriminator": [
1932
- 226,
1933
- 185,
1934
- 23,
1935
- 3,
1936
- 113,
1937
- 88,
1938
- 118,
1939
- 176
1940
- ];
1941
- "accounts": [
1942
- {
1943
- "name": "glamState";
1944
- "writable": true;
1945
- },
1946
- {
1947
- "name": "glamSigner";
1948
- "writable": true;
1949
- "signer": true;
1950
- },
1951
- {
1952
- "name": "glamProtocolProgram";
1953
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1954
- }
1955
- ];
1956
- "args": [
1957
- {
1958
- "name": "policy";
1959
- "type": {
1960
- "defined": {
1961
- "name": "lendingPolicy";
1962
- };
1963
- };
1964
- }
1965
- ];
1966
- },
1967
- {
1968
- "name": "setVaultsPolicy";
1969
- "discriminator": [
1970
- 211,
1971
- 177,
1972
- 22,
1973
- 152,
1974
- 235,
1975
- 59,
1976
- 192,
1977
- 62
1978
- ];
1979
- "accounts": [
1980
- {
1981
- "name": "glamState";
1982
- "writable": true;
1983
- },
1984
- {
1985
- "name": "glamSigner";
1986
- "writable": true;
1987
- "signer": true;
1988
- },
1989
- {
1990
- "name": "glamProtocolProgram";
1991
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
1992
- }
1993
- ];
1994
- "args": [
1995
- {
1996
- "name": "policy";
1997
- "type": {
1998
- "defined": {
1999
- "name": "vaultsPolicy";
2000
- };
2001
- };
2002
- }
2003
- ];
2004
- },
2005
- {
2006
- "name": "vaultsDeposit";
2007
- "discriminator": [
2008
- 124,
2009
- 173,
2010
- 191,
2011
- 223,
2012
- 48,
2013
- 26,
2014
- 84,
2015
- 84
2016
- ];
2017
- "accounts": [
2018
- {
2019
- "name": "glamState";
2020
- "writable": true;
2021
- },
2022
- {
2023
- "name": "glamVault";
2024
- "writable": true;
2025
- "pda": {
2026
- "seeds": [
2027
- {
2028
- "kind": "const";
2029
- "value": [
2030
- 118,
2031
- 97,
2032
- 117,
2033
- 108,
2034
- 116
2035
- ];
2036
- },
2037
- {
2038
- "kind": "account";
2039
- "path": "glamState";
2040
- }
2041
- ];
2042
- "program": {
2043
- "kind": "account";
2044
- "path": "glamProtocolProgram";
2045
- };
2046
- };
2047
- },
2048
- {
2049
- "name": "glamSigner";
2050
- "writable": true;
2051
- "signer": true;
2052
- },
2053
- {
2054
- "name": "integrationAuthority";
2055
- "pda": {
2056
- "seeds": [
2057
- {
2058
- "kind": "const";
2059
- "value": [
2060
- 105,
2061
- 110,
2062
- 116,
2063
- 101,
2064
- 103,
2065
- 114,
2066
- 97,
2067
- 116,
2068
- 105,
2069
- 111,
2070
- 110,
2071
- 45,
2072
- 97,
2073
- 117,
2074
- 116,
2075
- 104,
2076
- 111,
2077
- 114,
2078
- 105,
2079
- 116,
2080
- 121
2081
- ];
2082
- }
2083
- ];
2084
- };
2085
- },
2086
- {
2087
- "name": "cpiProgram";
2088
- "address": "KvauGMspG5k6rtzrqqn7WNn3oZdyKqLKwK2XWQ8FLjd";
2089
- },
2090
- {
2091
- "name": "glamProtocolProgram";
2092
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
2093
- },
2094
- {
2095
- "name": "systemProgram";
2096
- "address": "11111111111111111111111111111111";
2097
- },
2098
- {
2099
- "name": "vaultState";
2100
- "writable": true;
2101
- },
2102
- {
2103
- "name": "tokenVault";
2104
- "writable": true;
2105
- },
2106
- {
2107
- "name": "tokenMint";
2108
- },
2109
- {
2110
- "name": "baseVaultAuthority";
2111
- },
2112
- {
2113
- "name": "sharesMint";
2114
- "writable": true;
2115
- },
2116
- {
2117
- "name": "userTokenAta";
2118
- "writable": true;
2119
- },
2120
- {
2121
- "name": "userSharesAta";
2122
- "writable": true;
2123
- },
2124
- {
2125
- "name": "klendProgram";
2126
- },
2127
- {
2128
- "name": "tokenProgram";
2129
- },
2130
- {
2131
- "name": "sharesTokenProgram";
2132
- },
2133
- {
2134
- "name": "eventAuthority";
2135
- },
2136
- {
2137
- "name": "program";
2138
- }
2139
- ];
2140
- "args": [
2141
- {
2142
- "name": "maxAmount";
2143
- "type": "u64";
2144
- }
2145
- ];
2146
- },
2147
- {
2148
- "name": "vaultsWithdraw";
2149
- "discriminator": [
2150
- 12,
2151
- 8,
2152
- 236,
2153
- 92,
2154
- 134,
2155
- 144,
2156
- 196,
2157
- 87
2158
- ];
2159
- "accounts": [
2160
- {
2161
- "name": "glamState";
2162
- "writable": true;
2163
- },
2164
- {
2165
- "name": "glamVault";
2166
- "writable": true;
2167
- "pda": {
2168
- "seeds": [
2169
- {
2170
- "kind": "const";
2171
- "value": [
2172
- 118,
2173
- 97,
2174
- 117,
2175
- 108,
2176
- 116
2177
- ];
2178
- },
2179
- {
2180
- "kind": "account";
2181
- "path": "glamState";
2182
- }
2183
- ];
2184
- "program": {
2185
- "kind": "account";
2186
- "path": "glamProtocolProgram";
2187
- };
2188
- };
2189
- },
2190
- {
2191
- "name": "glamSigner";
2192
- "writable": true;
2193
- "signer": true;
2194
- },
2195
- {
2196
- "name": "integrationAuthority";
2197
- "pda": {
2198
- "seeds": [
2199
- {
2200
- "kind": "const";
2201
- "value": [
2202
- 105,
2203
- 110,
2204
- 116,
2205
- 101,
2206
- 103,
2207
- 114,
2208
- 97,
2209
- 116,
2210
- 105,
2211
- 111,
2212
- 110,
2213
- 45,
2214
- 97,
2215
- 117,
2216
- 116,
2217
- 104,
2218
- 111,
2219
- 114,
2220
- 105,
2221
- 116,
2222
- 121
2223
- ];
2224
- }
2225
- ];
2226
- };
2227
- },
2228
- {
2229
- "name": "cpiProgram";
2230
- "address": "KvauGMspG5k6rtzrqqn7WNn3oZdyKqLKwK2XWQ8FLjd";
2231
- },
2232
- {
2233
- "name": "glamProtocolProgram";
2234
- "address": "GLAMpaME8wdTEzxtiYEAa5yD8fZbxZiz2hNtV58RZiEz";
2235
- },
2236
- {
2237
- "name": "systemProgram";
2238
- "address": "11111111111111111111111111111111";
2239
- },
2240
- {
2241
- "name": "withdrawFromAvailableVaultState";
2242
- "writable": true;
2243
- },
2244
- {
2245
- "name": "withdrawFromAvailableGlobalConfig";
2246
- },
2247
- {
2248
- "name": "withdrawFromAvailableTokenVault";
2249
- "writable": true;
2250
- },
2251
- {
2252
- "name": "withdrawFromAvailableBaseVaultAuthority";
2253
- },
2254
- {
2255
- "name": "withdrawFromAvailableUserTokenAta";
2256
- "writable": true;
2257
- },
2258
- {
2259
- "name": "withdrawFromAvailableTokenMint";
2260
- "writable": true;
2261
- },
2262
- {
2263
- "name": "withdrawFromAvailableUserSharesAta";
2264
- "writable": true;
2265
- },
2266
- {
2267
- "name": "withdrawFromAvailableSharesMint";
2268
- "writable": true;
2269
- },
2270
- {
2271
- "name": "withdrawFromAvailableTokenProgram";
2272
- },
2273
- {
2274
- "name": "withdrawFromAvailableSharesTokenProgram";
2275
- },
2276
- {
2277
- "name": "withdrawFromAvailableKlendProgram";
2278
- },
2279
- {
2280
- "name": "withdrawFromAvailableEventAuthority";
2281
- },
2282
- {
2283
- "name": "withdrawFromAvailableProgram";
2284
- },
2285
- {
2286
- "name": "withdrawFromReserveVaultState";
2287
- "writable": true;
2288
- },
2289
- {
2290
- "name": "withdrawFromReserveReserve";
2291
- "writable": true;
2292
- },
2293
- {
2294
- "name": "withdrawFromReserveCtokenVault";
2295
- "writable": true;
2296
- },
2297
- {
2298
- "name": "withdrawFromReserveLendingMarket";
2299
- },
2300
- {
2301
- "name": "withdrawFromReserveLendingMarketAuthority";
2302
- },
2303
- {
2304
- "name": "withdrawFromReserveReserveLiquiditySupply";
2305
- "writable": true;
2306
- },
2307
- {
2308
- "name": "withdrawFromReserveReserveCollateralMint";
2309
- "writable": true;
2310
- },
2311
- {
2312
- "name": "withdrawFromReserveReserveCollateralTokenProgram";
2313
- },
2314
- {
2315
- "name": "withdrawFromReserveInstructionSysvarAccount";
2316
- },
2317
- {
2318
- "name": "eventAuthority";
2319
- },
2320
- {
2321
- "name": "program";
2322
- }
2323
- ];
2324
- "args": [
2325
- {
2326
- "name": "sharesAmount";
2327
- "type": "u64";
2328
- }
2329
- ];
2330
- }
2331
- ];
2332
- "accounts": [
2333
- {
2334
- "name": "stateAccount";
2335
- "discriminator": [
2336
- 142,
2337
- 247,
2338
- 54,
2339
- 95,
2340
- 85,
2341
- 133,
2342
- 249,
2343
- 103
2344
- ];
2345
- }
2346
- ];
2347
- "types": [
2348
- {
2349
- "name": "accountType";
2350
- "type": {
2351
- "kind": "enum";
2352
- "variants": [
2353
- {
2354
- "name": "vault";
2355
- },
2356
- {
2357
- "name": "tokenizedVault";
2358
- },
2359
- {
2360
- "name": "mint";
2361
- },
2362
- {
2363
- "name": "singleAssetVault";
2364
- }
2365
- ];
2366
- };
2367
- },
2368
- {
2369
- "name": "accruedFees";
2370
- "type": {
2371
- "kind": "struct";
2372
- "fields": [
2373
- {
2374
- "name": "vaultSubscriptionFee";
2375
- "type": "u128";
2376
- },
2377
- {
2378
- "name": "vaultRedemptionFee";
2379
- "type": "u128";
2380
- },
2381
- {
2382
- "name": "managerSubscriptionFee";
2383
- "type": "u128";
2384
- },
2385
- {
2386
- "name": "managerRedemptionFee";
2387
- "type": "u128";
2388
- },
2389
- {
2390
- "name": "managementFee";
2391
- "type": "u128";
2392
- },
2393
- {
2394
- "name": "performanceFee";
2395
- "type": "u128";
2396
- },
2397
- {
2398
- "name": "protocolBaseFee";
2399
- "type": "u128";
2400
- },
2401
- {
2402
- "name": "protocolFlowFee";
2403
- "type": "u128";
2404
- }
2405
- ];
2406
- };
2407
- },
2408
- {
2409
- "name": "createdModel";
2410
- "type": {
2411
- "kind": "struct";
2412
- "fields": [
2413
- {
2414
- "name": "key";
2415
- "type": {
2416
- "array": [
2417
- "u8",
2418
- 8
2419
- ];
2420
- };
2421
- },
2422
- {
2423
- "name": "createdBy";
2424
- "type": "pubkey";
2425
- },
2426
- {
2427
- "name": "createdAt";
2428
- "type": "i64";
2429
- }
2430
- ];
2431
- };
2432
- },
2433
- {
2434
- "name": "delegateAcl";
2435
- "type": {
2436
- "kind": "struct";
2437
- "fields": [
2438
- {
2439
- "name": "pubkey";
2440
- "type": "pubkey";
2441
- },
2442
- {
2443
- "name": "integrationPermissions";
2444
- "type": {
2445
- "vec": {
2446
- "defined": {
2447
- "name": "integrationPermissions";
2448
- };
2449
- };
2450
- };
2451
- },
2452
- {
2453
- "name": "expiresAt";
2454
- "type": "i64";
2455
- }
2456
- ];
2457
- };
2458
- },
2459
- {
2460
- "name": "engineField";
2461
- "type": {
2462
- "kind": "struct";
2463
- "fields": [
2464
- {
2465
- "name": "name";
2466
- "type": {
2467
- "defined": {
2468
- "name": "engineFieldName";
2469
- };
2470
- };
2471
- },
2472
- {
2473
- "name": "value";
2474
- "type": {
2475
- "defined": {
2476
- "name": "engineFieldValue";
2477
- };
2478
- };
2479
- }
2480
- ];
2481
- };
2482
- },
2483
- {
2484
- "name": "engineFieldName";
2485
- "type": {
2486
- "kind": "enum";
2487
- "variants": [
2488
- {
2489
- "name": "owner";
2490
- },
2491
- {
2492
- "name": "portfolioManagerName";
2493
- },
2494
- {
2495
- "name": "name";
2496
- },
2497
- {
2498
- "name": "uri";
2499
- },
2500
- {
2501
- "name": "assets";
2502
- },
2503
- {
2504
- "name": "delegateAcls";
2505
- },
2506
- {
2507
- "name": "integrationAcls";
2508
- },
2509
- {
2510
- "name": "timelockDuration";
2511
- },
2512
- {
2513
- "name": "borrowable";
2514
- },
2515
- {
2516
- "name": "defaultAccountStateFrozen";
2517
- },
2518
- {
2519
- "name": "permanentDelegate";
2520
- },
2521
- {
2522
- "name": "notifyAndSettle";
2523
- },
2524
- {
2525
- "name": "feeStructure";
2526
- },
2527
- {
2528
- "name": "feeParams";
2529
- },
2530
- {
2531
- "name": "claimableFees";
2532
- },
2533
- {
2534
- "name": "claimedFees";
2535
- },
2536
- {
2537
- "name": "oracleConfigs";
2538
- }
2539
- ];
2540
- };
2541
- },
2542
- {
2543
- "name": "engineFieldValue";
2544
- "type": {
2545
- "kind": "enum";
2546
- "variants": [
2547
- {
2548
- "name": "boolean";
2549
- "fields": [
2550
- {
2551
- "name": "val";
2552
- "type": "bool";
2553
- }
2554
- ];
2555
- },
2556
- {
2557
- "name": "u8";
2558
- "fields": [
2559
- {
2560
- "name": "val";
2561
- "type": "u8";
2562
- }
2563
- ];
2564
- },
2565
- {
2566
- "name": "u32";
2567
- "fields": [
2568
- {
2569
- "name": "val";
2570
- "type": "u32";
2571
- }
2572
- ];
2573
- },
2574
- {
2575
- "name": "u64";
2576
- "fields": [
2577
- {
2578
- "name": "val";
2579
- "type": "u64";
2580
- }
2581
- ];
2582
- },
2583
- {
2584
- "name": "string";
2585
- "fields": [
2586
- {
2587
- "name": "val";
2588
- "type": "string";
2589
- }
2590
- ];
2591
- },
2592
- {
2593
- "name": "pubkey";
2594
- "fields": [
2595
- {
2596
- "name": "val";
2597
- "type": "pubkey";
2598
- }
2599
- ];
2600
- },
2601
- {
2602
- "name": "vecPubkey";
2603
- "fields": [
2604
- {
2605
- "name": "val";
2606
- "type": {
2607
- "vec": "pubkey";
2608
- };
2609
- }
2610
- ];
2611
- },
2612
- {
2613
- "name": "vecU8";
2614
- "fields": [
2615
- {
2616
- "name": "val";
2617
- "type": "bytes";
2618
- }
2619
- ];
2620
- },
2621
- {
2622
- "name": "vecU32";
2623
- "fields": [
2624
- {
2625
- "name": "val";
2626
- "type": {
2627
- "vec": "u32";
2628
- };
2629
- }
2630
- ];
2631
- },
2632
- {
2633
- "name": "vecDelegateAcl";
2634
- "fields": [
2635
- {
2636
- "name": "val";
2637
- "type": {
2638
- "vec": {
2639
- "defined": {
2640
- "name": "delegateAcl";
2641
- };
2642
- };
2643
- };
2644
- }
2645
- ];
2646
- },
2647
- {
2648
- "name": "vecIntegrationAcl";
2649
- "fields": [
2650
- {
2651
- "name": "val";
2652
- "type": {
2653
- "vec": {
2654
- "defined": {
2655
- "name": "integrationAcl";
2656
- };
2657
- };
2658
- };
2659
- }
2660
- ];
2661
- },
2662
- {
2663
- "name": "feeStructure";
2664
- "fields": [
2665
- {
2666
- "name": "val";
2667
- "type": {
2668
- "defined": {
2669
- "name": "feeStructure";
2670
- };
2671
- };
2672
- }
2673
- ];
2674
- },
2675
- {
2676
- "name": "feeParams";
2677
- "fields": [
2678
- {
2679
- "name": "val";
2680
- "type": {
2681
- "defined": {
2682
- "name": "feeParams";
2683
- };
2684
- };
2685
- }
2686
- ];
2687
- },
2688
- {
2689
- "name": "accruedFees";
2690
- "fields": [
2691
- {
2692
- "name": "val";
2693
- "type": {
2694
- "defined": {
2695
- "name": "accruedFees";
2696
- };
2697
- };
2698
- }
2699
- ];
2700
- },
2701
- {
2702
- "name": "notifyAndSettle";
2703
- "fields": [
2704
- {
2705
- "name": "val";
2706
- "type": {
2707
- "defined": {
2708
- "name": "notifyAndSettle";
2709
- };
2710
- };
2711
- }
2712
- ];
2713
- },
2714
- {
2715
- "name": "oracleConfigs";
2716
- "fields": [
2717
- {
2718
- "name": "val";
2719
- "type": {
2720
- "defined": {
2721
- "name": "oracleConfigs";
2722
- };
2723
- };
2724
- }
2725
- ];
2726
- }
2727
- ];
2728
- };
2729
- },
2730
- {
2731
- "name": "entryExitFees";
2732
- "type": {
2733
- "kind": "struct";
2734
- "fields": [
2735
- {
2736
- "name": "subscriptionFeeBps";
2737
- "type": "u16";
2738
- },
2739
- {
2740
- "name": "redemptionFeeBps";
2741
- "type": "u16";
2742
- }
2743
- ];
2744
- };
2745
- },
2746
- {
2747
- "name": "feeParams";
2748
- "type": {
2749
- "kind": "struct";
2750
- "fields": [
2751
- {
2752
- "name": "yearInSeconds";
2753
- "type": "u32";
2754
- },
2755
- {
2756
- "name": "paHighWaterMark";
2757
- "type": "i128";
2758
- },
2759
- {
2760
- "name": "paLastNav";
2761
- "type": "i128";
2762
- },
2763
- {
2764
- "name": "lastAum";
2765
- "type": "i128";
2766
- },
2767
- {
2768
- "name": "lastPerformanceFeeCrystallized";
2769
- "type": "i64";
2770
- },
2771
- {
2772
- "name": "lastManagementFeeCrystallized";
2773
- "type": "i64";
2774
- },
2775
- {
2776
- "name": "lastProtocolFeeCrystallized";
2777
- "type": "i64";
2778
- }
2779
- ];
2780
- };
2781
- },
2782
- {
2783
- "name": "feeStructure";
2784
- "type": {
2785
- "kind": "struct";
2786
- "fields": [
2787
- {
2788
- "name": "vault";
2789
- "type": {
2790
- "defined": {
2791
- "name": "entryExitFees";
2792
- };
2793
- };
2794
- },
2795
- {
2796
- "name": "manager";
2797
- "type": {
2798
- "defined": {
2799
- "name": "entryExitFees";
2800
- };
2801
- };
2802
- },
2803
- {
2804
- "name": "management";
2805
- "type": {
2806
- "defined": {
2807
- "name": "managementFee";
2808
- };
2809
- };
2810
- },
2811
- {
2812
- "name": "performance";
2813
- "type": {
2814
- "defined": {
2815
- "name": "performanceFee";
2816
- };
2817
- };
2818
- },
2819
- {
2820
- "name": "protocol";
2821
- "type": {
2822
- "defined": {
2823
- "name": "protocolFees";
2824
- };
2825
- };
2826
- }
2827
- ];
2828
- };
2829
- },
2830
- {
2831
- "name": "hurdleType";
2832
- "type": {
2833
- "kind": "enum";
2834
- "variants": [
2835
- {
2836
- "name": "hard";
2837
- },
2838
- {
2839
- "name": "soft";
2840
- }
2841
- ];
2842
- };
2843
- },
2844
- {
2845
- "name": "initObligationArgs";
2846
- "type": {
2847
- "kind": "struct";
2848
- "fields": [
2849
- {
2850
- "name": "tag";
2851
- "type": "u8";
2852
- },
2853
- {
2854
- "name": "id";
2855
- "type": "u8";
2856
- }
2857
- ];
2858
- };
2859
- },
2860
- {
2861
- "name": "integrationAcl";
2862
- "docs": [
2863
- "An integration program can have multiple protocols supported.",
2864
- "Enabled protocols are stored in a bitmask, and each protocol can have its own policy."
2865
- ];
2866
- "type": {
2867
- "kind": "struct";
2868
- "fields": [
2869
- {
2870
- "name": "integrationProgram";
2871
- "type": "pubkey";
2872
- },
2873
- {
2874
- "name": "protocolsBitmask";
2875
- "type": "u16";
2876
- },
2877
- {
2878
- "name": "protocolPolicies";
2879
- "type": {
2880
- "vec": {
2881
- "defined": {
2882
- "name": "protocolPolicy";
2883
- };
2884
- };
2885
- };
2886
- }
2887
- ];
2888
- };
2889
- },
2890
- {
2891
- "name": "integrationPermissions";
2892
- "docs": [
2893
- "Stores delegate permissions for an integration program."
2894
- ];
2895
- "type": {
2896
- "kind": "struct";
2897
- "fields": [
2898
- {
2899
- "name": "integrationProgram";
2900
- "type": "pubkey";
2901
- },
2902
- {
2903
- "name": "protocolPermissions";
2904
- "type": {
2905
- "vec": {
2906
- "defined": {
2907
- "name": "protocolPermissions";
2908
- };
2909
- };
2910
- };
2911
- }
2912
- ];
2913
- };
2914
- },
2915
- {
2916
- "name": "lendingPolicy";
2917
- "type": {
2918
- "kind": "struct";
2919
- "fields": [
2920
- {
2921
- "name": "marketsAllowlist";
2922
- "type": {
2923
- "vec": "pubkey";
2924
- };
2925
- },
2926
- {
2927
- "name": "borrowAllowlist";
2928
- "type": {
2929
- "vec": "pubkey";
2930
- };
2931
- }
2932
- ];
2933
- };
2934
- },
2935
- {
2936
- "name": "managementFee";
2937
- "type": {
2938
- "kind": "struct";
2939
- "fields": [
2940
- {
2941
- "name": "feeBps";
2942
- "type": "u16";
2943
- }
2944
- ];
2945
- };
2946
- },
2947
- {
2948
- "name": "noticePeriodType";
2949
- "type": {
2950
- "kind": "enum";
2951
- "variants": [
2952
- {
2953
- "name": "hard";
2954
- },
2955
- {
2956
- "name": "soft";
2957
- }
2958
- ];
2959
- };
2960
- },
2961
- {
2962
- "name": "notifyAndSettle";
2963
- "type": {
2964
- "kind": "struct";
2965
- "fields": [
2966
- {
2967
- "name": "model";
2968
- "type": {
2969
- "defined": {
2970
- "name": "valuationModel";
2971
- };
2972
- };
2973
- },
2974
- {
2975
- "name": "permissionlessFulfillment";
2976
- "type": "bool";
2977
- },
2978
- {
2979
- "name": "subscribeNoticePeriodType";
2980
- "type": {
2981
- "defined": {
2982
- "name": "noticePeriodType";
2983
- };
2984
- };
2985
- },
2986
- {
2987
- "name": "subscribeNoticePeriod";
2988
- "type": "u64";
2989
- },
2990
- {
2991
- "name": "subscribeSettlementPeriod";
2992
- "type": "u64";
2993
- },
2994
- {
2995
- "name": "subscribeCancellationWindow";
2996
- "type": "u64";
2997
- },
2998
- {
2999
- "name": "redeemNoticePeriodType";
3000
- "type": {
3001
- "defined": {
3002
- "name": "noticePeriodType";
3003
- };
3004
- };
3005
- },
3006
- {
3007
- "name": "redeemNoticePeriod";
3008
- "type": "u64";
3009
- },
3010
- {
3011
- "name": "redeemSettlementPeriod";
3012
- "type": "u64";
3013
- },
3014
- {
3015
- "name": "redeemCancellationWindow";
3016
- "type": "u64";
3017
- },
3018
- {
3019
- "name": "timeUnit";
3020
- "type": {
3021
- "defined": {
3022
- "name": "timeUnit";
3023
- };
3024
- };
3025
- },
3026
- {
3027
- "name": "padding";
3028
- "type": {
3029
- "array": [
3030
- "u8",
3031
- 3
3032
- ];
3033
- };
3034
- }
3035
- ];
3036
- };
3037
- },
3038
- {
3039
- "name": "oracleConfigs";
3040
- "docs": [
3041
- "Vault-specific oracle configs. If available, these configs are preferred over the global config."
3042
- ];
3043
- "type": {
3044
- "kind": "struct";
3045
- "fields": [
3046
- {
3047
- "name": "maxAgesSeconds";
3048
- "type": {
3049
- "vec": {
3050
- "array": [
3051
- "u16",
3052
- 2
3053
- ];
3054
- };
3055
- };
3056
- },
3057
- {
3058
- "name": "padding";
3059
- "type": {
3060
- "array": [
3061
- "u8",
3062
- 12
3063
- ];
3064
- };
3065
- }
3066
- ];
3067
- };
3068
- },
3069
- {
3070
- "name": "performanceFee";
3071
- "type": {
3072
- "kind": "struct";
3073
- "fields": [
3074
- {
3075
- "name": "feeBps";
3076
- "type": "u16";
3077
- },
3078
- {
3079
- "name": "hurdleRateBps";
3080
- "type": "u16";
3081
- },
3082
- {
3083
- "name": "hurdleType";
3084
- "type": {
3085
- "defined": {
3086
- "name": "hurdleType";
3087
- };
3088
- };
3089
- }
3090
- ];
3091
- };
3092
- },
3093
- {
3094
- "name": "pricedProtocol";
3095
- "type": {
3096
- "kind": "struct";
3097
- "fields": [
3098
- {
3099
- "name": "rent";
3100
- "type": "u64";
3101
- },
3102
- {
3103
- "name": "amount";
3104
- "type": "i128";
3105
- },
3106
- {
3107
- "name": "decimals";
3108
- "type": "u8";
3109
- },
3110
- {
3111
- "name": "lastUpdatedSlot";
3112
- "type": "u64";
3113
- },
3114
- {
3115
- "name": "integrationProgram";
3116
- "type": "pubkey";
3117
- },
3118
- {
3119
- "name": "protocolBitflag";
3120
- "type": "u16";
3121
- },
3122
- {
3123
- "name": "positions";
3124
- "type": {
3125
- "vec": "pubkey";
3126
- };
3127
- }
3128
- ];
3129
- };
3130
- },
3131
- {
3132
- "name": "protocolFees";
3133
- "type": {
3134
- "kind": "struct";
3135
- "fields": [
3136
- {
3137
- "name": "baseFeeBps";
3138
- "type": "u16";
3139
- },
3140
- {
3141
- "name": "flowFeeBps";
3142
- "type": "u16";
3143
- }
3144
- ];
3145
- };
3146
- },
3147
- {
3148
- "name": "protocolPermissions";
3149
- "docs": [
3150
- "Represents a delegate's permissions for a specific protocol"
3151
- ];
3152
- "type": {
3153
- "kind": "struct";
3154
- "fields": [
3155
- {
3156
- "name": "protocolBitflag";
3157
- "type": "u16";
3158
- },
3159
- {
3160
- "name": "permissionsBitmask";
3161
- "type": "u64";
3162
- }
3163
- ];
3164
- };
3165
- },
3166
- {
3167
- "name": "protocolPolicy";
3168
- "docs": [
3169
- "Stores policy data for an integrated protocol.",
3170
- "Integration programs serialize/deserialize this data."
3171
- ];
3172
- "type": {
3173
- "kind": "struct";
3174
- "fields": [
3175
- {
3176
- "name": "protocolBitflag";
3177
- "type": "u16";
3178
- },
3179
- {
3180
- "name": "data";
3181
- "type": "bytes";
3182
- }
3183
- ];
3184
- };
3185
- },
3186
- {
3187
- "name": "stateAccount";
3188
- "type": {
3189
- "kind": "struct";
3190
- "fields": [
3191
- {
3192
- "name": "accountType";
3193
- "type": {
3194
- "defined": {
3195
- "name": "accountType";
3196
- };
3197
- };
3198
- },
3199
- {
3200
- "name": "enabled";
3201
- "type": "bool";
3202
- },
3203
- {
3204
- "name": "vault";
3205
- "type": "pubkey";
3206
- },
3207
- {
3208
- "name": "owner";
3209
- "type": "pubkey";
3210
- },
3211
- {
3212
- "name": "portfolioManagerName";
3213
- "type": {
3214
- "array": [
3215
- "u8",
3216
- 32
3217
- ];
3218
- };
3219
- },
3220
- {
3221
- "name": "created";
3222
- "type": {
3223
- "defined": {
3224
- "name": "createdModel";
3225
- };
3226
- };
3227
- },
3228
- {
3229
- "name": "baseAssetMint";
3230
- "type": "pubkey";
3231
- },
3232
- {
3233
- "name": "baseAssetDecimals";
3234
- "type": "u8";
3235
- },
3236
- {
3237
- "name": "baseAssetTokenProgram";
3238
- "type": "u8";
3239
- },
3240
- {
3241
- "name": "name";
3242
- "type": {
3243
- "array": [
3244
- "u8",
3245
- 32
3246
- ];
3247
- };
3248
- },
3249
- {
3250
- "name": "timelockDuration";
3251
- "type": "u32";
3252
- },
3253
- {
3254
- "name": "timelockExpiresAt";
3255
- "type": "u64";
3256
- },
3257
- {
3258
- "name": "mint";
3259
- "type": "pubkey";
3260
- },
3261
- {
3262
- "name": "assets";
3263
- "type": {
3264
- "vec": "pubkey";
3265
- };
3266
- },
3267
- {
3268
- "name": "integrationAcls";
3269
- "type": {
3270
- "vec": {
3271
- "defined": {
3272
- "name": "integrationAcl";
3273
- };
3274
- };
3275
- };
3276
- },
3277
- {
3278
- "name": "delegateAcls";
3279
- "type": {
3280
- "vec": {
3281
- "defined": {
3282
- "name": "delegateAcl";
3283
- };
3284
- };
3285
- };
3286
- },
3287
- {
3288
- "name": "externalPositions";
3289
- "type": {
3290
- "vec": "pubkey";
3291
- };
3292
- },
3293
- {
3294
- "name": "pricedProtocols";
3295
- "type": {
3296
- "vec": {
3297
- "defined": {
3298
- "name": "pricedProtocol";
3299
- };
3300
- };
3301
- };
3302
- },
3303
- {
3304
- "name": "params";
3305
- "type": {
3306
- "vec": {
3307
- "vec": {
3308
- "defined": {
3309
- "name": "engineField";
3310
- };
3311
- };
3312
- };
3313
- };
3314
- }
3315
- ];
3316
- };
3317
- },
3318
- {
3319
- "name": "timeUnit";
3320
- "type": {
3321
- "kind": "enum";
3322
- "variants": [
3323
- {
3324
- "name": "second";
3325
- },
3326
- {
3327
- "name": "slot";
3328
- }
3329
- ];
3330
- };
3331
- },
3332
- {
3333
- "name": "valuationModel";
3334
- "type": {
3335
- "kind": "enum";
3336
- "variants": [
3337
- {
3338
- "name": "continuous";
3339
- },
3340
- {
3341
- "name": "periodic";
3342
- }
3343
- ];
3344
- };
3345
- },
3346
- {
3347
- "name": "vaultsPolicy";
3348
- "type": {
3349
- "kind": "struct";
3350
- "fields": [
3351
- {
3352
- "name": "vaultsAllowlist";
3353
- "type": {
3354
- "vec": "pubkey";
3355
- };
3356
- }
3357
- ];
3358
- };
3359
- }
3360
- ];
3361
- "constants": [
3362
- {
3363
- "name": "protoKaminoFarms";
3364
- "type": "u16";
3365
- "value": "4";
3366
- },
3367
- {
3368
- "name": "protoKaminoFarmsPermHarvestReward";
3369
- "type": "u64";
3370
- "value": "4";
3371
- },
3372
- {
3373
- "name": "protoKaminoFarmsPermStake";
3374
- "type": "u64";
3375
- "value": "1";
3376
- },
3377
- {
3378
- "name": "protoKaminoFarmsPermUnstake";
3379
- "type": "u64";
3380
- "value": "2";
3381
- },
3382
- {
3383
- "name": "protoKaminoLending";
3384
- "type": "u16";
3385
- "value": "1";
3386
- },
3387
- {
3388
- "name": "protoKaminoLendingPermBorrow";
3389
- "type": "u64";
3390
- "value": "8";
3391
- },
3392
- {
3393
- "name": "protoKaminoLendingPermDeposit";
3394
- "type": "u64";
3395
- "value": "2";
3396
- },
3397
- {
3398
- "name": "protoKaminoLendingPermInit";
3399
- "type": "u64";
3400
- "value": "1";
3401
- },
3402
- {
3403
- "name": "protoKaminoLendingPermLiquidate";
3404
- "type": "u64";
3405
- "value": "32";
3406
- },
3407
- {
3408
- "name": "protoKaminoLendingPermRepay";
3409
- "type": "u64";
3410
- "value": "16";
3411
- },
3412
- {
3413
- "name": "protoKaminoLendingPermWithdraw";
3414
- "type": "u64";
3415
- "value": "4";
3416
- },
3417
- {
3418
- "name": "protoKaminoVaults";
3419
- "type": "u16";
3420
- "value": "2";
3421
- },
3422
- {
3423
- "name": "protoKaminoVaultsPermDeposit";
3424
- "type": "u64";
3425
- "value": "1";
3426
- },
3427
- {
3428
- "name": "protoKaminoVaultsPermWithdraw";
3429
- "type": "u64";
3430
- "value": "2";
3431
- }
3432
- ];
3433
- };