@sonarwatch/portfolio-plugins 0.14.115 → 0.14.116

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.
@@ -0,0 +1,2913 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VectisInsuranceIDL = void 0;
4
+ exports.VectisInsuranceIDL = {
5
+ version: '0.2.0',
6
+ name: 'drift_vaults',
7
+ instructions: [
8
+ {
9
+ name: 'initializeVault',
10
+ accounts: [
11
+ {
12
+ name: 'vault',
13
+ isMut: true,
14
+ isSigner: false,
15
+ },
16
+ {
17
+ name: 'tokenAccount',
18
+ isMut: true,
19
+ isSigner: false,
20
+ },
21
+ {
22
+ name: 'driftUserStats',
23
+ isMut: true,
24
+ isSigner: false,
25
+ },
26
+ {
27
+ name: 'driftUser',
28
+ isMut: true,
29
+ isSigner: false,
30
+ },
31
+ {
32
+ name: 'driftState',
33
+ isMut: true,
34
+ isSigner: false,
35
+ },
36
+ {
37
+ name: 'driftSpotMarket',
38
+ isMut: false,
39
+ isSigner: false,
40
+ },
41
+ {
42
+ name: 'driftSpotMarketMint',
43
+ isMut: false,
44
+ isSigner: false,
45
+ },
46
+ {
47
+ name: 'manager',
48
+ isMut: false,
49
+ isSigner: true,
50
+ },
51
+ {
52
+ name: 'payer',
53
+ isMut: true,
54
+ isSigner: true,
55
+ },
56
+ {
57
+ name: 'rent',
58
+ isMut: false,
59
+ isSigner: false,
60
+ },
61
+ {
62
+ name: 'systemProgram',
63
+ isMut: false,
64
+ isSigner: false,
65
+ },
66
+ {
67
+ name: 'driftProgram',
68
+ isMut: false,
69
+ isSigner: false,
70
+ },
71
+ {
72
+ name: 'tokenProgram',
73
+ isMut: false,
74
+ isSigner: false,
75
+ },
76
+ ],
77
+ args: [
78
+ {
79
+ name: 'params',
80
+ type: {
81
+ defined: 'VaultParams',
82
+ },
83
+ },
84
+ ],
85
+ },
86
+ {
87
+ name: 'initializeVaultWithProtocol',
88
+ accounts: [
89
+ {
90
+ name: 'vault',
91
+ isMut: true,
92
+ isSigner: false,
93
+ },
94
+ {
95
+ name: 'vaultProtocol',
96
+ isMut: true,
97
+ isSigner: false,
98
+ },
99
+ {
100
+ name: 'tokenAccount',
101
+ isMut: true,
102
+ isSigner: false,
103
+ },
104
+ {
105
+ name: 'driftUserStats',
106
+ isMut: true,
107
+ isSigner: false,
108
+ },
109
+ {
110
+ name: 'driftUser',
111
+ isMut: true,
112
+ isSigner: false,
113
+ },
114
+ {
115
+ name: 'driftState',
116
+ isMut: true,
117
+ isSigner: false,
118
+ },
119
+ {
120
+ name: 'driftSpotMarket',
121
+ isMut: false,
122
+ isSigner: false,
123
+ },
124
+ {
125
+ name: 'driftSpotMarketMint',
126
+ isMut: false,
127
+ isSigner: false,
128
+ },
129
+ {
130
+ name: 'manager',
131
+ isMut: false,
132
+ isSigner: true,
133
+ },
134
+ {
135
+ name: 'payer',
136
+ isMut: true,
137
+ isSigner: true,
138
+ },
139
+ {
140
+ name: 'rent',
141
+ isMut: false,
142
+ isSigner: false,
143
+ },
144
+ {
145
+ name: 'systemProgram',
146
+ isMut: false,
147
+ isSigner: false,
148
+ },
149
+ {
150
+ name: 'driftProgram',
151
+ isMut: false,
152
+ isSigner: false,
153
+ },
154
+ {
155
+ name: 'tokenProgram',
156
+ isMut: false,
157
+ isSigner: false,
158
+ },
159
+ ],
160
+ args: [
161
+ {
162
+ name: 'params',
163
+ type: {
164
+ defined: 'VaultWithProtocolParams',
165
+ },
166
+ },
167
+ ],
168
+ },
169
+ {
170
+ name: 'updateDelegate',
171
+ accounts: [
172
+ {
173
+ name: 'vault',
174
+ isMut: true,
175
+ isSigner: false,
176
+ },
177
+ {
178
+ name: 'manager',
179
+ isMut: false,
180
+ isSigner: true,
181
+ },
182
+ {
183
+ name: 'driftUser',
184
+ isMut: true,
185
+ isSigner: false,
186
+ },
187
+ {
188
+ name: 'driftProgram',
189
+ isMut: false,
190
+ isSigner: false,
191
+ },
192
+ ],
193
+ args: [
194
+ {
195
+ name: 'delegate',
196
+ type: 'publicKey',
197
+ },
198
+ ],
199
+ },
200
+ {
201
+ name: 'updateMarginTradingEnabled',
202
+ accounts: [
203
+ {
204
+ name: 'vault',
205
+ isMut: true,
206
+ isSigner: false,
207
+ },
208
+ {
209
+ name: 'manager',
210
+ isMut: false,
211
+ isSigner: true,
212
+ },
213
+ {
214
+ name: 'driftUser',
215
+ isMut: true,
216
+ isSigner: false,
217
+ },
218
+ {
219
+ name: 'driftProgram',
220
+ isMut: false,
221
+ isSigner: false,
222
+ },
223
+ ],
224
+ args: [
225
+ {
226
+ name: 'enabled',
227
+ type: 'bool',
228
+ },
229
+ ],
230
+ },
231
+ {
232
+ name: 'updateVaultProtocol',
233
+ accounts: [
234
+ {
235
+ name: 'vault',
236
+ isMut: true,
237
+ isSigner: false,
238
+ },
239
+ {
240
+ name: 'protocol',
241
+ isMut: false,
242
+ isSigner: true,
243
+ },
244
+ {
245
+ name: 'vaultProtocol',
246
+ isMut: true,
247
+ isSigner: false,
248
+ },
249
+ ],
250
+ args: [
251
+ {
252
+ name: 'params',
253
+ type: {
254
+ defined: 'UpdateVaultProtocolParams',
255
+ },
256
+ },
257
+ ],
258
+ },
259
+ {
260
+ name: 'updateVault',
261
+ accounts: [
262
+ {
263
+ name: 'vault',
264
+ isMut: true,
265
+ isSigner: false,
266
+ },
267
+ {
268
+ name: 'manager',
269
+ isMut: false,
270
+ isSigner: true,
271
+ },
272
+ ],
273
+ args: [
274
+ {
275
+ name: 'params',
276
+ type: {
277
+ defined: 'UpdateVaultParams',
278
+ },
279
+ },
280
+ ],
281
+ },
282
+ {
283
+ name: 'initializeVaultDepositor',
284
+ accounts: [
285
+ {
286
+ name: 'vault',
287
+ isMut: false,
288
+ isSigner: false,
289
+ },
290
+ {
291
+ name: 'vaultDepositor',
292
+ isMut: true,
293
+ isSigner: false,
294
+ },
295
+ {
296
+ name: 'authority',
297
+ isMut: false,
298
+ isSigner: false,
299
+ },
300
+ {
301
+ name: 'payer',
302
+ isMut: true,
303
+ isSigner: true,
304
+ },
305
+ {
306
+ name: 'rent',
307
+ isMut: false,
308
+ isSigner: false,
309
+ },
310
+ {
311
+ name: 'systemProgram',
312
+ isMut: false,
313
+ isSigner: false,
314
+ },
315
+ ],
316
+ args: [],
317
+ },
318
+ {
319
+ name: 'initializeTokenizedVaultDepositor',
320
+ accounts: [
321
+ {
322
+ name: 'vault',
323
+ isMut: false,
324
+ isSigner: false,
325
+ },
326
+ {
327
+ name: 'vaultDepositor',
328
+ isMut: true,
329
+ isSigner: false,
330
+ },
331
+ {
332
+ name: 'mintAccount',
333
+ isMut: true,
334
+ isSigner: false,
335
+ },
336
+ {
337
+ name: 'metadataAccount',
338
+ isMut: true,
339
+ isSigner: false,
340
+ },
341
+ {
342
+ name: 'payer',
343
+ isMut: true,
344
+ isSigner: true,
345
+ },
346
+ {
347
+ name: 'tokenProgram',
348
+ isMut: false,
349
+ isSigner: false,
350
+ },
351
+ {
352
+ name: 'tokenMetadataProgram',
353
+ isMut: false,
354
+ isSigner: false,
355
+ },
356
+ {
357
+ name: 'rent',
358
+ isMut: false,
359
+ isSigner: false,
360
+ },
361
+ {
362
+ name: 'systemProgram',
363
+ isMut: false,
364
+ isSigner: false,
365
+ },
366
+ ],
367
+ args: [
368
+ {
369
+ name: 'params',
370
+ type: {
371
+ defined: 'InitializeTokenizedVaultDepositorParams',
372
+ },
373
+ },
374
+ ],
375
+ },
376
+ {
377
+ name: 'tokenizeShares',
378
+ accounts: [
379
+ {
380
+ name: 'vault',
381
+ isMut: true,
382
+ isSigner: false,
383
+ },
384
+ {
385
+ name: 'vaultDepositor',
386
+ isMut: true,
387
+ isSigner: false,
388
+ },
389
+ {
390
+ name: 'authority',
391
+ isMut: false,
392
+ isSigner: true,
393
+ },
394
+ {
395
+ name: 'tokenizedVaultDepositor',
396
+ isMut: true,
397
+ isSigner: false,
398
+ },
399
+ {
400
+ name: 'mint',
401
+ isMut: true,
402
+ isSigner: false,
403
+ },
404
+ {
405
+ name: 'userTokenAccount',
406
+ isMut: false,
407
+ isSigner: false,
408
+ },
409
+ {
410
+ name: 'driftUser',
411
+ isMut: true,
412
+ isSigner: false,
413
+ },
414
+ {
415
+ name: 'tokenProgram',
416
+ isMut: false,
417
+ isSigner: false,
418
+ },
419
+ ],
420
+ args: [
421
+ {
422
+ name: 'amount',
423
+ type: 'u64',
424
+ },
425
+ {
426
+ name: 'unit',
427
+ type: {
428
+ defined: 'WithdrawUnit',
429
+ },
430
+ },
431
+ ],
432
+ },
433
+ {
434
+ name: 'redeemTokens',
435
+ accounts: [
436
+ {
437
+ name: 'vault',
438
+ isMut: true,
439
+ isSigner: false,
440
+ },
441
+ {
442
+ name: 'vaultDepositor',
443
+ isMut: true,
444
+ isSigner: false,
445
+ },
446
+ {
447
+ name: 'authority',
448
+ isMut: false,
449
+ isSigner: true,
450
+ },
451
+ {
452
+ name: 'tokenizedVaultDepositor',
453
+ isMut: true,
454
+ isSigner: false,
455
+ },
456
+ {
457
+ name: 'mint',
458
+ isMut: true,
459
+ isSigner: false,
460
+ },
461
+ {
462
+ name: 'userTokenAccount',
463
+ isMut: true,
464
+ isSigner: false,
465
+ },
466
+ {
467
+ name: 'vaultTokenAccount',
468
+ isMut: true,
469
+ isSigner: false,
470
+ },
471
+ {
472
+ name: 'driftUser',
473
+ isMut: true,
474
+ isSigner: false,
475
+ },
476
+ {
477
+ name: 'tokenProgram',
478
+ isMut: false,
479
+ isSigner: false,
480
+ },
481
+ ],
482
+ args: [
483
+ {
484
+ name: 'tokensToBurn',
485
+ type: 'u64',
486
+ },
487
+ ],
488
+ },
489
+ {
490
+ name: 'deposit',
491
+ accounts: [
492
+ {
493
+ name: 'vault',
494
+ isMut: true,
495
+ isSigner: false,
496
+ },
497
+ {
498
+ name: 'vaultDepositor',
499
+ isMut: true,
500
+ isSigner: false,
501
+ },
502
+ {
503
+ name: 'authority',
504
+ isMut: false,
505
+ isSigner: true,
506
+ },
507
+ {
508
+ name: 'vaultTokenAccount',
509
+ isMut: true,
510
+ isSigner: false,
511
+ },
512
+ {
513
+ name: 'driftUserStats',
514
+ isMut: true,
515
+ isSigner: false,
516
+ },
517
+ {
518
+ name: 'driftUser',
519
+ isMut: true,
520
+ isSigner: false,
521
+ },
522
+ {
523
+ name: 'driftState',
524
+ isMut: false,
525
+ isSigner: false,
526
+ },
527
+ {
528
+ name: 'driftSpotMarketVault',
529
+ isMut: true,
530
+ isSigner: false,
531
+ },
532
+ {
533
+ name: 'userTokenAccount',
534
+ isMut: true,
535
+ isSigner: false,
536
+ },
537
+ {
538
+ name: 'driftProgram',
539
+ isMut: false,
540
+ isSigner: false,
541
+ },
542
+ {
543
+ name: 'tokenProgram',
544
+ isMut: false,
545
+ isSigner: false,
546
+ },
547
+ ],
548
+ args: [
549
+ {
550
+ name: 'amount',
551
+ type: 'u64',
552
+ },
553
+ ],
554
+ },
555
+ {
556
+ name: 'requestWithdraw',
557
+ accounts: [
558
+ {
559
+ name: 'vault',
560
+ isMut: true,
561
+ isSigner: false,
562
+ },
563
+ {
564
+ name: 'vaultDepositor',
565
+ isMut: true,
566
+ isSigner: false,
567
+ },
568
+ {
569
+ name: 'authority',
570
+ isMut: false,
571
+ isSigner: true,
572
+ },
573
+ {
574
+ name: 'driftUserStats',
575
+ isMut: false,
576
+ isSigner: false,
577
+ },
578
+ {
579
+ name: 'driftUser',
580
+ isMut: false,
581
+ isSigner: false,
582
+ },
583
+ {
584
+ name: 'driftState',
585
+ isMut: false,
586
+ isSigner: false,
587
+ },
588
+ ],
589
+ args: [
590
+ {
591
+ name: 'withdrawAmount',
592
+ type: 'u64',
593
+ },
594
+ {
595
+ name: 'withdrawUnit',
596
+ type: {
597
+ defined: 'WithdrawUnit',
598
+ },
599
+ },
600
+ ],
601
+ },
602
+ {
603
+ name: 'cancelRequestWithdraw',
604
+ accounts: [
605
+ {
606
+ name: 'vault',
607
+ isMut: true,
608
+ isSigner: false,
609
+ },
610
+ {
611
+ name: 'vaultDepositor',
612
+ isMut: true,
613
+ isSigner: false,
614
+ },
615
+ {
616
+ name: 'authority',
617
+ isMut: false,
618
+ isSigner: true,
619
+ },
620
+ {
621
+ name: 'driftUserStats',
622
+ isMut: false,
623
+ isSigner: false,
624
+ },
625
+ {
626
+ name: 'driftUser',
627
+ isMut: false,
628
+ isSigner: false,
629
+ },
630
+ {
631
+ name: 'driftState',
632
+ isMut: false,
633
+ isSigner: false,
634
+ },
635
+ ],
636
+ args: [],
637
+ },
638
+ {
639
+ name: 'withdraw',
640
+ accounts: [
641
+ {
642
+ name: 'vault',
643
+ isMut: true,
644
+ isSigner: false,
645
+ },
646
+ {
647
+ name: 'vaultDepositor',
648
+ isMut: true,
649
+ isSigner: false,
650
+ },
651
+ {
652
+ name: 'authority',
653
+ isMut: false,
654
+ isSigner: true,
655
+ },
656
+ {
657
+ name: 'vaultTokenAccount',
658
+ isMut: true,
659
+ isSigner: false,
660
+ },
661
+ {
662
+ name: 'driftUserStats',
663
+ isMut: true,
664
+ isSigner: false,
665
+ },
666
+ {
667
+ name: 'driftUser',
668
+ isMut: true,
669
+ isSigner: false,
670
+ },
671
+ {
672
+ name: 'driftState',
673
+ isMut: false,
674
+ isSigner: false,
675
+ },
676
+ {
677
+ name: 'driftSpotMarketVault',
678
+ isMut: true,
679
+ isSigner: false,
680
+ },
681
+ {
682
+ name: 'driftSigner',
683
+ isMut: false,
684
+ isSigner: false,
685
+ },
686
+ {
687
+ name: 'userTokenAccount',
688
+ isMut: true,
689
+ isSigner: false,
690
+ },
691
+ {
692
+ name: 'driftProgram',
693
+ isMut: false,
694
+ isSigner: false,
695
+ },
696
+ {
697
+ name: 'tokenProgram',
698
+ isMut: false,
699
+ isSigner: false,
700
+ },
701
+ ],
702
+ args: [],
703
+ },
704
+ {
705
+ name: 'liquidate',
706
+ accounts: [
707
+ {
708
+ name: 'vault',
709
+ isMut: true,
710
+ isSigner: false,
711
+ },
712
+ {
713
+ name: 'vaultDepositor',
714
+ isMut: true,
715
+ isSigner: false,
716
+ },
717
+ {
718
+ name: 'authority',
719
+ isMut: false,
720
+ isSigner: true,
721
+ },
722
+ {
723
+ name: 'driftUserStats',
724
+ isMut: true,
725
+ isSigner: false,
726
+ },
727
+ {
728
+ name: 'driftUser',
729
+ isMut: true,
730
+ isSigner: false,
731
+ },
732
+ {
733
+ name: 'driftState',
734
+ isMut: false,
735
+ isSigner: false,
736
+ },
737
+ {
738
+ name: 'driftProgram',
739
+ isMut: false,
740
+ isSigner: false,
741
+ },
742
+ ],
743
+ args: [],
744
+ },
745
+ {
746
+ name: 'resetDelegate',
747
+ accounts: [
748
+ {
749
+ name: 'vault',
750
+ isMut: true,
751
+ isSigner: false,
752
+ },
753
+ {
754
+ name: 'authority',
755
+ isMut: false,
756
+ isSigner: true,
757
+ },
758
+ {
759
+ name: 'driftUser',
760
+ isMut: true,
761
+ isSigner: false,
762
+ },
763
+ {
764
+ name: 'driftProgram',
765
+ isMut: false,
766
+ isSigner: false,
767
+ },
768
+ ],
769
+ args: [],
770
+ },
771
+ {
772
+ name: 'managerDeposit',
773
+ accounts: [
774
+ {
775
+ name: 'vault',
776
+ isMut: true,
777
+ isSigner: false,
778
+ },
779
+ {
780
+ name: 'manager',
781
+ isMut: false,
782
+ isSigner: true,
783
+ },
784
+ {
785
+ name: 'vaultTokenAccount',
786
+ isMut: true,
787
+ isSigner: false,
788
+ },
789
+ {
790
+ name: 'driftUserStats',
791
+ isMut: true,
792
+ isSigner: false,
793
+ },
794
+ {
795
+ name: 'driftUser',
796
+ isMut: true,
797
+ isSigner: false,
798
+ },
799
+ {
800
+ name: 'driftState',
801
+ isMut: false,
802
+ isSigner: false,
803
+ },
804
+ {
805
+ name: 'driftSpotMarketVault',
806
+ isMut: true,
807
+ isSigner: false,
808
+ },
809
+ {
810
+ name: 'userTokenAccount',
811
+ isMut: true,
812
+ isSigner: false,
813
+ },
814
+ {
815
+ name: 'driftProgram',
816
+ isMut: false,
817
+ isSigner: false,
818
+ },
819
+ {
820
+ name: 'tokenProgram',
821
+ isMut: false,
822
+ isSigner: false,
823
+ },
824
+ ],
825
+ args: [
826
+ {
827
+ name: 'amount',
828
+ type: 'u64',
829
+ },
830
+ ],
831
+ },
832
+ {
833
+ name: 'managerRequestWithdraw',
834
+ accounts: [
835
+ {
836
+ name: 'vault',
837
+ isMut: true,
838
+ isSigner: false,
839
+ },
840
+ {
841
+ name: 'manager',
842
+ isMut: false,
843
+ isSigner: true,
844
+ },
845
+ {
846
+ name: 'driftUserStats',
847
+ isMut: false,
848
+ isSigner: false,
849
+ },
850
+ {
851
+ name: 'driftUser',
852
+ isMut: false,
853
+ isSigner: false,
854
+ },
855
+ {
856
+ name: 'driftState',
857
+ isMut: false,
858
+ isSigner: false,
859
+ },
860
+ ],
861
+ args: [
862
+ {
863
+ name: 'withdrawAmount',
864
+ type: 'u64',
865
+ },
866
+ {
867
+ name: 'withdrawUnit',
868
+ type: {
869
+ defined: 'WithdrawUnit',
870
+ },
871
+ },
872
+ ],
873
+ },
874
+ {
875
+ name: 'mangerCancelWithdrawRequest',
876
+ accounts: [
877
+ {
878
+ name: 'vault',
879
+ isMut: true,
880
+ isSigner: false,
881
+ },
882
+ {
883
+ name: 'manager',
884
+ isMut: false,
885
+ isSigner: true,
886
+ },
887
+ {
888
+ name: 'driftUserStats',
889
+ isMut: false,
890
+ isSigner: false,
891
+ },
892
+ {
893
+ name: 'driftUser',
894
+ isMut: false,
895
+ isSigner: false,
896
+ },
897
+ {
898
+ name: 'driftState',
899
+ isMut: false,
900
+ isSigner: false,
901
+ },
902
+ ],
903
+ args: [],
904
+ },
905
+ {
906
+ name: 'managerWithdraw',
907
+ accounts: [
908
+ {
909
+ name: 'vault',
910
+ isMut: true,
911
+ isSigner: false,
912
+ },
913
+ {
914
+ name: 'manager',
915
+ isMut: false,
916
+ isSigner: true,
917
+ },
918
+ {
919
+ name: 'vaultTokenAccount',
920
+ isMut: true,
921
+ isSigner: false,
922
+ },
923
+ {
924
+ name: 'driftUserStats',
925
+ isMut: true,
926
+ isSigner: false,
927
+ },
928
+ {
929
+ name: 'driftUser',
930
+ isMut: true,
931
+ isSigner: false,
932
+ },
933
+ {
934
+ name: 'driftState',
935
+ isMut: false,
936
+ isSigner: false,
937
+ },
938
+ {
939
+ name: 'driftSpotMarketVault',
940
+ isMut: true,
941
+ isSigner: false,
942
+ },
943
+ {
944
+ name: 'driftSigner',
945
+ isMut: false,
946
+ isSigner: false,
947
+ },
948
+ {
949
+ name: 'userTokenAccount',
950
+ isMut: true,
951
+ isSigner: false,
952
+ },
953
+ {
954
+ name: 'driftProgram',
955
+ isMut: false,
956
+ isSigner: false,
957
+ },
958
+ {
959
+ name: 'tokenProgram',
960
+ isMut: false,
961
+ isSigner: false,
962
+ },
963
+ ],
964
+ args: [],
965
+ },
966
+ {
967
+ name: 'applyProfitShare',
968
+ accounts: [
969
+ {
970
+ name: 'vault',
971
+ isMut: true,
972
+ isSigner: false,
973
+ },
974
+ {
975
+ name: 'vaultDepositor',
976
+ isMut: true,
977
+ isSigner: false,
978
+ },
979
+ {
980
+ name: 'manager',
981
+ isMut: false,
982
+ isSigner: true,
983
+ },
984
+ {
985
+ name: 'driftUserStats',
986
+ isMut: true,
987
+ isSigner: false,
988
+ },
989
+ {
990
+ name: 'driftUser',
991
+ isMut: true,
992
+ isSigner: false,
993
+ },
994
+ {
995
+ name: 'driftState',
996
+ isMut: false,
997
+ isSigner: false,
998
+ },
999
+ {
1000
+ name: 'driftSigner',
1001
+ isMut: false,
1002
+ isSigner: false,
1003
+ },
1004
+ {
1005
+ name: 'driftProgram',
1006
+ isMut: false,
1007
+ isSigner: false,
1008
+ },
1009
+ ],
1010
+ args: [],
1011
+ },
1012
+ {
1013
+ name: 'applyRebase',
1014
+ accounts: [
1015
+ {
1016
+ name: 'vault',
1017
+ isMut: true,
1018
+ isSigner: false,
1019
+ },
1020
+ {
1021
+ name: 'vaultDepositor',
1022
+ isMut: true,
1023
+ isSigner: false,
1024
+ },
1025
+ {
1026
+ name: 'driftUser',
1027
+ isMut: true,
1028
+ isSigner: false,
1029
+ },
1030
+ ],
1031
+ args: [],
1032
+ },
1033
+ {
1034
+ name: 'applyRebaseTokenizedDepositor',
1035
+ accounts: [
1036
+ {
1037
+ name: 'vault',
1038
+ isMut: true,
1039
+ isSigner: false,
1040
+ },
1041
+ {
1042
+ name: 'tokenizedVaultDepositor',
1043
+ isMut: true,
1044
+ isSigner: false,
1045
+ },
1046
+ {
1047
+ name: 'driftUser',
1048
+ isMut: true,
1049
+ isSigner: false,
1050
+ },
1051
+ ],
1052
+ args: [],
1053
+ },
1054
+ {
1055
+ name: 'forceWithdraw',
1056
+ accounts: [
1057
+ {
1058
+ name: 'vault',
1059
+ isMut: true,
1060
+ isSigner: false,
1061
+ },
1062
+ {
1063
+ name: 'manager',
1064
+ isMut: false,
1065
+ isSigner: true,
1066
+ },
1067
+ {
1068
+ name: 'vaultDepositor',
1069
+ isMut: true,
1070
+ isSigner: false,
1071
+ },
1072
+ {
1073
+ name: 'vaultTokenAccount',
1074
+ isMut: true,
1075
+ isSigner: false,
1076
+ },
1077
+ {
1078
+ name: 'driftUserStats',
1079
+ isMut: true,
1080
+ isSigner: false,
1081
+ },
1082
+ {
1083
+ name: 'driftUser',
1084
+ isMut: true,
1085
+ isSigner: false,
1086
+ },
1087
+ {
1088
+ name: 'driftState',
1089
+ isMut: false,
1090
+ isSigner: false,
1091
+ },
1092
+ {
1093
+ name: 'driftSpotMarketVault',
1094
+ isMut: true,
1095
+ isSigner: false,
1096
+ },
1097
+ {
1098
+ name: 'driftSigner',
1099
+ isMut: false,
1100
+ isSigner: false,
1101
+ },
1102
+ {
1103
+ name: 'userTokenAccount',
1104
+ isMut: true,
1105
+ isSigner: false,
1106
+ },
1107
+ {
1108
+ name: 'driftProgram',
1109
+ isMut: false,
1110
+ isSigner: false,
1111
+ },
1112
+ {
1113
+ name: 'tokenProgram',
1114
+ isMut: false,
1115
+ isSigner: false,
1116
+ },
1117
+ ],
1118
+ args: [],
1119
+ },
1120
+ {
1121
+ name: 'initializeInsuranceFundStake',
1122
+ accounts: [
1123
+ {
1124
+ name: 'vault',
1125
+ isMut: true,
1126
+ isSigner: false,
1127
+ },
1128
+ {
1129
+ name: 'manager',
1130
+ isMut: false,
1131
+ isSigner: true,
1132
+ },
1133
+ {
1134
+ name: 'payer',
1135
+ isMut: true,
1136
+ isSigner: true,
1137
+ },
1138
+ {
1139
+ name: 'rent',
1140
+ isMut: false,
1141
+ isSigner: false,
1142
+ },
1143
+ {
1144
+ name: 'driftSpotMarket',
1145
+ isMut: true,
1146
+ isSigner: false,
1147
+ },
1148
+ {
1149
+ name: 'driftSpotMarketMint',
1150
+ isMut: false,
1151
+ isSigner: false,
1152
+ },
1153
+ {
1154
+ name: 'vaultTokenAccount',
1155
+ isMut: true,
1156
+ isSigner: false,
1157
+ },
1158
+ {
1159
+ name: 'insuranceFundStake',
1160
+ isMut: true,
1161
+ isSigner: false,
1162
+ },
1163
+ {
1164
+ name: 'driftUserStats',
1165
+ isMut: true,
1166
+ isSigner: false,
1167
+ },
1168
+ {
1169
+ name: 'driftState',
1170
+ isMut: false,
1171
+ isSigner: false,
1172
+ },
1173
+ {
1174
+ name: 'driftProgram',
1175
+ isMut: false,
1176
+ isSigner: false,
1177
+ },
1178
+ {
1179
+ name: 'tokenProgram',
1180
+ isMut: false,
1181
+ isSigner: false,
1182
+ },
1183
+ {
1184
+ name: 'systemProgram',
1185
+ isMut: false,
1186
+ isSigner: false,
1187
+ },
1188
+ ],
1189
+ args: [
1190
+ {
1191
+ name: 'marketIndex',
1192
+ type: 'u16',
1193
+ },
1194
+ ],
1195
+ },
1196
+ {
1197
+ name: 'addInsuranceFundStake',
1198
+ accounts: [
1199
+ {
1200
+ name: 'vault',
1201
+ isMut: true,
1202
+ isSigner: false,
1203
+ },
1204
+ {
1205
+ name: 'manager',
1206
+ isMut: true,
1207
+ isSigner: true,
1208
+ },
1209
+ {
1210
+ name: 'driftSpotMarket',
1211
+ isMut: true,
1212
+ isSigner: false,
1213
+ },
1214
+ {
1215
+ name: 'driftSpotMarketVault',
1216
+ isMut: true,
1217
+ isSigner: false,
1218
+ },
1219
+ {
1220
+ name: 'insuranceFundStake',
1221
+ isMut: true,
1222
+ isSigner: false,
1223
+ },
1224
+ {
1225
+ name: 'insuranceFundVault',
1226
+ isMut: true,
1227
+ isSigner: false,
1228
+ },
1229
+ {
1230
+ name: 'managerTokenAccount',
1231
+ isMut: true,
1232
+ isSigner: false,
1233
+ },
1234
+ {
1235
+ name: 'vaultIfTokenAccount',
1236
+ isMut: true,
1237
+ isSigner: false,
1238
+ },
1239
+ {
1240
+ name: 'driftUserStats',
1241
+ isMut: true,
1242
+ isSigner: false,
1243
+ },
1244
+ {
1245
+ name: 'driftState',
1246
+ isMut: false,
1247
+ isSigner: false,
1248
+ },
1249
+ {
1250
+ name: 'driftSigner',
1251
+ isMut: false,
1252
+ isSigner: false,
1253
+ },
1254
+ {
1255
+ name: 'driftProgram',
1256
+ isMut: false,
1257
+ isSigner: false,
1258
+ },
1259
+ {
1260
+ name: 'tokenProgram',
1261
+ isMut: false,
1262
+ isSigner: false,
1263
+ },
1264
+ ],
1265
+ args: [
1266
+ {
1267
+ name: 'marketIndex',
1268
+ type: 'u16',
1269
+ },
1270
+ {
1271
+ name: 'amount',
1272
+ type: 'u64',
1273
+ },
1274
+ ],
1275
+ },
1276
+ {
1277
+ name: 'requestRemoveInsuranceFundStake',
1278
+ accounts: [
1279
+ {
1280
+ name: 'vault',
1281
+ isMut: true,
1282
+ isSigner: false,
1283
+ },
1284
+ {
1285
+ name: 'manager',
1286
+ isMut: false,
1287
+ isSigner: true,
1288
+ },
1289
+ {
1290
+ name: 'driftSpotMarket',
1291
+ isMut: true,
1292
+ isSigner: false,
1293
+ },
1294
+ {
1295
+ name: 'insuranceFundStake',
1296
+ isMut: true,
1297
+ isSigner: false,
1298
+ },
1299
+ {
1300
+ name: 'insuranceFundVault',
1301
+ isMut: true,
1302
+ isSigner: false,
1303
+ },
1304
+ {
1305
+ name: 'driftUserStats',
1306
+ isMut: true,
1307
+ isSigner: false,
1308
+ },
1309
+ {
1310
+ name: 'driftProgram',
1311
+ isMut: false,
1312
+ isSigner: false,
1313
+ },
1314
+ ],
1315
+ args: [
1316
+ {
1317
+ name: 'marketIndex',
1318
+ type: 'u16',
1319
+ },
1320
+ {
1321
+ name: 'amount',
1322
+ type: 'u64',
1323
+ },
1324
+ ],
1325
+ },
1326
+ {
1327
+ name: 'removeInsuranceFundStake',
1328
+ accounts: [
1329
+ {
1330
+ name: 'vault',
1331
+ isMut: true,
1332
+ isSigner: false,
1333
+ },
1334
+ {
1335
+ name: 'manager',
1336
+ isMut: false,
1337
+ isSigner: true,
1338
+ },
1339
+ {
1340
+ name: 'driftSpotMarket',
1341
+ isMut: true,
1342
+ isSigner: false,
1343
+ },
1344
+ {
1345
+ name: 'insuranceFundStake',
1346
+ isMut: true,
1347
+ isSigner: false,
1348
+ },
1349
+ {
1350
+ name: 'insuranceFundVault',
1351
+ isMut: true,
1352
+ isSigner: false,
1353
+ },
1354
+ {
1355
+ name: 'managerTokenAccount',
1356
+ isMut: true,
1357
+ isSigner: false,
1358
+ },
1359
+ {
1360
+ name: 'vaultIfTokenAccount',
1361
+ isMut: true,
1362
+ isSigner: false,
1363
+ },
1364
+ {
1365
+ name: 'driftUserStats',
1366
+ isMut: true,
1367
+ isSigner: false,
1368
+ },
1369
+ {
1370
+ name: 'driftState',
1371
+ isMut: false,
1372
+ isSigner: false,
1373
+ },
1374
+ {
1375
+ name: 'driftSigner',
1376
+ isMut: false,
1377
+ isSigner: false,
1378
+ },
1379
+ {
1380
+ name: 'driftProgram',
1381
+ isMut: false,
1382
+ isSigner: false,
1383
+ },
1384
+ {
1385
+ name: 'tokenProgram',
1386
+ isMut: false,
1387
+ isSigner: false,
1388
+ },
1389
+ ],
1390
+ args: [
1391
+ {
1392
+ name: 'marketIndex',
1393
+ type: 'u16',
1394
+ },
1395
+ ],
1396
+ },
1397
+ {
1398
+ name: 'cancelRequestRemoveInsuranceFundStake',
1399
+ accounts: [
1400
+ {
1401
+ name: 'vault',
1402
+ isMut: true,
1403
+ isSigner: false,
1404
+ },
1405
+ {
1406
+ name: 'manager',
1407
+ isMut: false,
1408
+ isSigner: true,
1409
+ },
1410
+ {
1411
+ name: 'driftSpotMarket',
1412
+ isMut: true,
1413
+ isSigner: false,
1414
+ },
1415
+ {
1416
+ name: 'insuranceFundStake',
1417
+ isMut: true,
1418
+ isSigner: false,
1419
+ },
1420
+ {
1421
+ name: 'insuranceFundVault',
1422
+ isMut: true,
1423
+ isSigner: false,
1424
+ },
1425
+ {
1426
+ name: 'driftUserStats',
1427
+ isMut: true,
1428
+ isSigner: false,
1429
+ },
1430
+ {
1431
+ name: 'driftProgram',
1432
+ isMut: false,
1433
+ isSigner: false,
1434
+ },
1435
+ ],
1436
+ args: [
1437
+ {
1438
+ name: 'marketIndex',
1439
+ type: 'u16',
1440
+ },
1441
+ ],
1442
+ },
1443
+ {
1444
+ name: 'protocolRequestWithdraw',
1445
+ accounts: [
1446
+ {
1447
+ name: 'vault',
1448
+ isMut: true,
1449
+ isSigner: false,
1450
+ },
1451
+ {
1452
+ name: 'vaultProtocol',
1453
+ isMut: true,
1454
+ isSigner: false,
1455
+ },
1456
+ {
1457
+ name: 'protocol',
1458
+ isMut: false,
1459
+ isSigner: true,
1460
+ },
1461
+ {
1462
+ name: 'driftUserStats',
1463
+ isMut: false,
1464
+ isSigner: false,
1465
+ },
1466
+ {
1467
+ name: 'driftUser',
1468
+ isMut: false,
1469
+ isSigner: false,
1470
+ },
1471
+ {
1472
+ name: 'driftState',
1473
+ isMut: false,
1474
+ isSigner: false,
1475
+ },
1476
+ ],
1477
+ args: [
1478
+ {
1479
+ name: 'withdrawAmount',
1480
+ type: 'u64',
1481
+ },
1482
+ {
1483
+ name: 'withdrawUnit',
1484
+ type: {
1485
+ defined: 'WithdrawUnit',
1486
+ },
1487
+ },
1488
+ ],
1489
+ },
1490
+ {
1491
+ name: 'protocolCancelWithdrawRequest',
1492
+ accounts: [
1493
+ {
1494
+ name: 'vault',
1495
+ isMut: true,
1496
+ isSigner: false,
1497
+ },
1498
+ {
1499
+ name: 'vaultProtocol',
1500
+ isMut: true,
1501
+ isSigner: false,
1502
+ },
1503
+ {
1504
+ name: 'protocol',
1505
+ isMut: false,
1506
+ isSigner: true,
1507
+ },
1508
+ {
1509
+ name: 'driftUserStats',
1510
+ isMut: false,
1511
+ isSigner: false,
1512
+ },
1513
+ {
1514
+ name: 'driftUser',
1515
+ isMut: false,
1516
+ isSigner: false,
1517
+ },
1518
+ {
1519
+ name: 'driftState',
1520
+ isMut: false,
1521
+ isSigner: false,
1522
+ },
1523
+ ],
1524
+ args: [],
1525
+ },
1526
+ {
1527
+ name: 'protocolWithdraw',
1528
+ accounts: [
1529
+ {
1530
+ name: 'vault',
1531
+ isMut: true,
1532
+ isSigner: false,
1533
+ },
1534
+ {
1535
+ name: 'vaultProtocol',
1536
+ isMut: true,
1537
+ isSigner: false,
1538
+ },
1539
+ {
1540
+ name: 'protocol',
1541
+ isMut: false,
1542
+ isSigner: true,
1543
+ },
1544
+ {
1545
+ name: 'vaultTokenAccount',
1546
+ isMut: true,
1547
+ isSigner: false,
1548
+ },
1549
+ {
1550
+ name: 'driftUserStats',
1551
+ isMut: true,
1552
+ isSigner: false,
1553
+ },
1554
+ {
1555
+ name: 'driftUser',
1556
+ isMut: true,
1557
+ isSigner: false,
1558
+ },
1559
+ {
1560
+ name: 'driftState',
1561
+ isMut: false,
1562
+ isSigner: false,
1563
+ },
1564
+ {
1565
+ name: 'driftSpotMarketVault',
1566
+ isMut: true,
1567
+ isSigner: false,
1568
+ },
1569
+ {
1570
+ name: 'driftSigner',
1571
+ isMut: false,
1572
+ isSigner: false,
1573
+ },
1574
+ {
1575
+ name: 'userTokenAccount',
1576
+ isMut: true,
1577
+ isSigner: false,
1578
+ },
1579
+ {
1580
+ name: 'driftProgram',
1581
+ isMut: false,
1582
+ isSigner: false,
1583
+ },
1584
+ {
1585
+ name: 'tokenProgram',
1586
+ isMut: false,
1587
+ isSigner: false,
1588
+ },
1589
+ ],
1590
+ args: [],
1591
+ },
1592
+ {
1593
+ name: 'adminDeposit',
1594
+ accounts: [
1595
+ {
1596
+ name: 'vault',
1597
+ isMut: true,
1598
+ isSigner: false,
1599
+ },
1600
+ {
1601
+ name: 'admin',
1602
+ isMut: false,
1603
+ isSigner: true,
1604
+ },
1605
+ {
1606
+ name: 'driftUserStats',
1607
+ isMut: true,
1608
+ isSigner: false,
1609
+ },
1610
+ {
1611
+ name: 'driftUser',
1612
+ isMut: true,
1613
+ isSigner: false,
1614
+ },
1615
+ {
1616
+ name: 'driftState',
1617
+ isMut: false,
1618
+ isSigner: false,
1619
+ },
1620
+ {
1621
+ name: 'vaultTokenAccount',
1622
+ isMut: true,
1623
+ isSigner: false,
1624
+ },
1625
+ {
1626
+ name: 'driftSpotMarketVault',
1627
+ isMut: true,
1628
+ isSigner: false,
1629
+ },
1630
+ {
1631
+ name: 'driftSigner',
1632
+ isMut: false,
1633
+ isSigner: false,
1634
+ },
1635
+ {
1636
+ name: 'userTokenAccount',
1637
+ isMut: true,
1638
+ isSigner: false,
1639
+ },
1640
+ {
1641
+ name: 'driftProgram',
1642
+ isMut: false,
1643
+ isSigner: false,
1644
+ },
1645
+ {
1646
+ name: 'tokenProgram',
1647
+ isMut: false,
1648
+ isSigner: false,
1649
+ },
1650
+ ],
1651
+ args: [
1652
+ {
1653
+ name: 'depositAmount',
1654
+ type: 'u64',
1655
+ },
1656
+ ],
1657
+ },
1658
+ {
1659
+ name: 'adminWithdraw',
1660
+ accounts: [
1661
+ {
1662
+ name: 'vault',
1663
+ isMut: true,
1664
+ isSigner: false,
1665
+ },
1666
+ {
1667
+ name: 'admin',
1668
+ isMut: false,
1669
+ isSigner: true,
1670
+ },
1671
+ {
1672
+ name: 'driftUserStats',
1673
+ isMut: true,
1674
+ isSigner: false,
1675
+ },
1676
+ {
1677
+ name: 'driftUser',
1678
+ isMut: true,
1679
+ isSigner: false,
1680
+ },
1681
+ {
1682
+ name: 'driftState',
1683
+ isMut: false,
1684
+ isSigner: false,
1685
+ },
1686
+ {
1687
+ name: 'vaultTokenAccount',
1688
+ isMut: true,
1689
+ isSigner: false,
1690
+ },
1691
+ {
1692
+ name: 'driftSpotMarketVault',
1693
+ isMut: true,
1694
+ isSigner: false,
1695
+ },
1696
+ {
1697
+ name: 'driftSigner',
1698
+ isMut: false,
1699
+ isSigner: false,
1700
+ },
1701
+ {
1702
+ name: 'userTokenAccount',
1703
+ isMut: true,
1704
+ isSigner: false,
1705
+ },
1706
+ {
1707
+ name: 'driftProgram',
1708
+ isMut: false,
1709
+ isSigner: false,
1710
+ },
1711
+ {
1712
+ name: 'tokenProgram',
1713
+ isMut: false,
1714
+ isSigner: false,
1715
+ },
1716
+ ],
1717
+ args: [
1718
+ {
1719
+ name: 'withdrawAmount',
1720
+ type: 'u64',
1721
+ },
1722
+ ],
1723
+ },
1724
+ ],
1725
+ accounts: [
1726
+ {
1727
+ name: 'tokenizedVaultDepositor',
1728
+ type: {
1729
+ kind: 'struct',
1730
+ fields: [
1731
+ {
1732
+ name: 'vault',
1733
+ docs: ['The vault deposited into'],
1734
+ type: 'publicKey',
1735
+ },
1736
+ {
1737
+ name: 'pubkey',
1738
+ docs: [
1739
+ "The vault depositor account's pubkey. It is a pda of vault",
1740
+ ],
1741
+ type: 'publicKey',
1742
+ },
1743
+ {
1744
+ name: 'mint',
1745
+ docs: [
1746
+ 'The token mint for tokenized shares owned by this VaultDepositor',
1747
+ ],
1748
+ type: 'publicKey',
1749
+ },
1750
+ {
1751
+ name: 'vaultShares',
1752
+ docs: [
1753
+ "share of vault owned by this depositor. vault_shares / vault.total_shares is depositor's ownership of vault_equity",
1754
+ ],
1755
+ type: 'u128',
1756
+ },
1757
+ {
1758
+ name: 'lastVaultShares',
1759
+ docs: [
1760
+ 'stores the vault_shares from the most recent liquidity event (redeem or issuance) before a spl token',
1761
+ 'CPI is done, used to track invariants',
1762
+ ],
1763
+ type: 'u128',
1764
+ },
1765
+ {
1766
+ name: 'lastValidTs',
1767
+ docs: ['creation ts of vault depositor'],
1768
+ type: 'i64',
1769
+ },
1770
+ {
1771
+ name: 'netDeposits',
1772
+ docs: ['lifetime net deposits of vault depositor for the vault'],
1773
+ type: 'i64',
1774
+ },
1775
+ {
1776
+ name: 'totalDeposits',
1777
+ docs: ['lifetime total deposits'],
1778
+ type: 'u64',
1779
+ },
1780
+ {
1781
+ name: 'totalWithdraws',
1782
+ docs: ['lifetime total withdraws'],
1783
+ type: 'u64',
1784
+ },
1785
+ {
1786
+ name: 'cumulativeProfitShareAmount',
1787
+ docs: [
1788
+ 'the token amount of gains the vault depositor has paid performance fees on',
1789
+ ],
1790
+ type: 'i64',
1791
+ },
1792
+ {
1793
+ name: 'profitShareFeePaid',
1794
+ type: 'u64',
1795
+ },
1796
+ {
1797
+ name: 'vaultSharesBase',
1798
+ docs: [
1799
+ 'The exponent for vault_shares decimal places at the time the tokenized vault depositor was initialized.',
1800
+ 'If the vault undergoes a rebase, this TokenizedVaultDepositor can no longer issue new tokens, only redeem',
1801
+ 'is possible.',
1802
+ ],
1803
+ type: 'u32',
1804
+ },
1805
+ {
1806
+ name: 'bump',
1807
+ docs: ['The bump for the vault pda'],
1808
+ type: 'u8',
1809
+ },
1810
+ {
1811
+ name: 'padding1',
1812
+ type: {
1813
+ array: ['u8', 3],
1814
+ },
1815
+ },
1816
+ {
1817
+ name: 'padding',
1818
+ type: {
1819
+ array: ['u64', 10],
1820
+ },
1821
+ },
1822
+ ],
1823
+ },
1824
+ },
1825
+ {
1826
+ name: 'vaultDepositor',
1827
+ type: {
1828
+ kind: 'struct',
1829
+ fields: [
1830
+ {
1831
+ name: 'vault',
1832
+ docs: ['The vault deposited into'],
1833
+ type: 'publicKey',
1834
+ },
1835
+ {
1836
+ name: 'pubkey',
1837
+ docs: [
1838
+ "The vault depositor account's pubkey. It is a pda of vault and authority",
1839
+ ],
1840
+ type: 'publicKey',
1841
+ },
1842
+ {
1843
+ name: 'authority',
1844
+ docs: [
1845
+ 'The authority is the address w permission to deposit/withdraw',
1846
+ ],
1847
+ type: 'publicKey',
1848
+ },
1849
+ {
1850
+ name: 'vaultShares',
1851
+ docs: [
1852
+ "share of vault owned by this depositor. vault_shares / vault.total_shares is depositor's ownership of vault_equity",
1853
+ ],
1854
+ type: 'u128',
1855
+ },
1856
+ {
1857
+ name: 'lastWithdrawRequest',
1858
+ docs: ['last withdraw request'],
1859
+ type: {
1860
+ defined: 'WithdrawRequest',
1861
+ },
1862
+ },
1863
+ {
1864
+ name: 'lastValidTs',
1865
+ docs: ['creation ts of vault depositor'],
1866
+ type: 'i64',
1867
+ },
1868
+ {
1869
+ name: 'netDeposits',
1870
+ docs: ['lifetime net deposits of vault depositor for the vault'],
1871
+ type: 'i64',
1872
+ },
1873
+ {
1874
+ name: 'totalDeposits',
1875
+ docs: ['lifetime total deposits'],
1876
+ type: 'u64',
1877
+ },
1878
+ {
1879
+ name: 'totalWithdraws',
1880
+ docs: ['lifetime total withdraws'],
1881
+ type: 'u64',
1882
+ },
1883
+ {
1884
+ name: 'cumulativeProfitShareAmount',
1885
+ docs: [
1886
+ 'the token amount of gains the vault depositor has paid performance fees on',
1887
+ ],
1888
+ type: 'i64',
1889
+ },
1890
+ {
1891
+ name: 'profitShareFeePaid',
1892
+ type: 'u64',
1893
+ },
1894
+ {
1895
+ name: 'vaultSharesBase',
1896
+ docs: ['the exponent for vault_shares decimal places'],
1897
+ type: 'u32',
1898
+ },
1899
+ {
1900
+ name: 'padding1',
1901
+ type: 'u32',
1902
+ },
1903
+ {
1904
+ name: 'padding',
1905
+ type: {
1906
+ array: ['u64', 8],
1907
+ },
1908
+ },
1909
+ ],
1910
+ },
1911
+ },
1912
+ {
1913
+ name: 'vaultProtocol',
1914
+ type: {
1915
+ kind: 'struct',
1916
+ fields: [
1917
+ {
1918
+ name: 'protocol',
1919
+ docs: [
1920
+ 'The protocol, company, or entity that services the product using this vault.',
1921
+ 'The protocol is not allowed to deposit into the vault but can profit share and collect annual fees just like the manager.',
1922
+ ],
1923
+ type: 'publicKey',
1924
+ },
1925
+ {
1926
+ name: 'protocolProfitAndFeeShares',
1927
+ docs: [
1928
+ 'The shares from profit share and annual fee unclaimed by the protocol.',
1929
+ ],
1930
+ type: 'u128',
1931
+ },
1932
+ {
1933
+ name: 'protocolFee',
1934
+ docs: [
1935
+ 'The annual fee charged on deposits by the protocol (traditional hedge funds typically charge 2% per year on assets under management).',
1936
+ "Unlike the management fee this can't be negative.",
1937
+ ],
1938
+ type: 'u64',
1939
+ },
1940
+ {
1941
+ name: 'protocolTotalWithdraws',
1942
+ docs: ['Total withdraws for the protocol'],
1943
+ type: 'u64',
1944
+ },
1945
+ {
1946
+ name: 'protocolTotalFee',
1947
+ docs: [
1948
+ 'Total fee charged by the protocol (annual management fee + profit share).',
1949
+ "Unlike the management fee this can't be negative.",
1950
+ ],
1951
+ type: 'u64',
1952
+ },
1953
+ {
1954
+ name: 'protocolTotalProfitShare',
1955
+ docs: ['Total profit share charged by the protocol'],
1956
+ type: 'u64',
1957
+ },
1958
+ {
1959
+ name: 'lastProtocolWithdrawRequest',
1960
+ type: {
1961
+ defined: 'WithdrawRequest',
1962
+ },
1963
+ },
1964
+ {
1965
+ name: 'protocolProfitShare',
1966
+ docs: [
1967
+ 'Percentage the protocol charges on all profits realized by depositors: PERCENTAGE_PRECISION',
1968
+ ],
1969
+ type: 'u32',
1970
+ },
1971
+ {
1972
+ name: 'bump',
1973
+ type: 'u8',
1974
+ },
1975
+ {
1976
+ name: 'version',
1977
+ type: 'u8',
1978
+ },
1979
+ {
1980
+ name: 'padding',
1981
+ type: {
1982
+ array: ['u8', 2],
1983
+ },
1984
+ },
1985
+ ],
1986
+ },
1987
+ },
1988
+ {
1989
+ name: 'vault',
1990
+ type: {
1991
+ kind: 'struct',
1992
+ fields: [
1993
+ {
1994
+ name: 'name',
1995
+ docs: [
1996
+ 'The name of the vault. Vault pubkey is derived from this name.',
1997
+ ],
1998
+ type: {
1999
+ array: ['u8', 32],
2000
+ },
2001
+ },
2002
+ {
2003
+ name: 'pubkey',
2004
+ docs: [
2005
+ "The vault's pubkey. It is a pda of name and also used as the authority for drift user",
2006
+ ],
2007
+ type: 'publicKey',
2008
+ },
2009
+ {
2010
+ name: 'manager',
2011
+ docs: [
2012
+ 'The manager of the vault who has ability to update vault params',
2013
+ ],
2014
+ type: 'publicKey',
2015
+ },
2016
+ {
2017
+ name: 'admin',
2018
+ docs: [
2019
+ 'The admin can deposit or withdraw tokens to and fro the drift user account',
2020
+ ],
2021
+ type: 'publicKey',
2022
+ },
2023
+ {
2024
+ name: 'tokenAccount',
2025
+ docs: [
2026
+ 'The vaults token account. Used to receive tokens between deposits and withdrawals',
2027
+ ],
2028
+ type: 'publicKey',
2029
+ },
2030
+ {
2031
+ name: 'userStats',
2032
+ docs: ['The drift user stats account for the vault'],
2033
+ type: 'publicKey',
2034
+ },
2035
+ {
2036
+ name: 'user',
2037
+ docs: ['The drift user account for the vault'],
2038
+ type: 'publicKey',
2039
+ },
2040
+ {
2041
+ name: 'delegate',
2042
+ docs: [
2043
+ 'The vaults designated delegate for drift user account',
2044
+ 'can differ from actual user delegate if vault is in liquidation',
2045
+ ],
2046
+ type: 'publicKey',
2047
+ },
2048
+ {
2049
+ name: 'liquidationDelegate',
2050
+ docs: ['The delegate handling liquidation for depositor'],
2051
+ type: 'publicKey',
2052
+ },
2053
+ {
2054
+ name: 'userShares',
2055
+ docs: [
2056
+ 'The sum of all shares held by the users (vault depositors)',
2057
+ ],
2058
+ type: 'u128',
2059
+ },
2060
+ {
2061
+ name: 'totalShares',
2062
+ docs: [
2063
+ 'The sum of all shares: deposits from users, manager deposits, manager profit/fee, and protocol profit/fee.',
2064
+ 'The manager deposits are total_shares - user_shares - protocol_profit_and_fee_shares.',
2065
+ ],
2066
+ type: 'u128',
2067
+ },
2068
+ {
2069
+ name: 'lastFeeUpdateTs',
2070
+ docs: ['Last fee update unix timestamp'],
2071
+ type: 'i64',
2072
+ },
2073
+ {
2074
+ name: 'liquidationStartTs',
2075
+ docs: ['When the liquidation starts'],
2076
+ type: 'i64',
2077
+ },
2078
+ {
2079
+ name: 'redeemPeriod',
2080
+ docs: [
2081
+ 'The period (in seconds) that a vault depositor must wait after requesting a withdrawal to finalize withdrawal.',
2082
+ 'Currently, the maximum is 90 days.',
2083
+ ],
2084
+ type: 'i64',
2085
+ },
2086
+ {
2087
+ name: 'totalWithdrawRequested',
2088
+ docs: ['The sum of all outstanding withdraw requests'],
2089
+ type: 'u64',
2090
+ },
2091
+ {
2092
+ name: 'maxTokens',
2093
+ docs: [
2094
+ 'Max token capacity, once hit/passed vault will reject new deposits (updatable)',
2095
+ ],
2096
+ type: 'u64',
2097
+ },
2098
+ {
2099
+ name: 'managementFee',
2100
+ docs: [
2101
+ 'The annual fee charged on deposits by the manager.',
2102
+ 'Traditional funds typically charge 2% per year on assets under management.',
2103
+ ],
2104
+ type: 'i64',
2105
+ },
2106
+ {
2107
+ name: 'initTs',
2108
+ docs: ['Timestamp vault initialized'],
2109
+ type: 'i64',
2110
+ },
2111
+ {
2112
+ name: 'netDeposits',
2113
+ docs: ['The net deposits for the vault'],
2114
+ type: 'i64',
2115
+ },
2116
+ {
2117
+ name: 'managerNetDeposits',
2118
+ docs: ['The net deposits for the manager'],
2119
+ type: 'i64',
2120
+ },
2121
+ {
2122
+ name: 'totalDeposits',
2123
+ docs: ['Total deposits'],
2124
+ type: 'u64',
2125
+ },
2126
+ {
2127
+ name: 'totalWithdraws',
2128
+ docs: ['Total withdraws'],
2129
+ type: 'u64',
2130
+ },
2131
+ {
2132
+ name: 'managerTotalDeposits',
2133
+ docs: ['Total deposits for the manager'],
2134
+ type: 'u64',
2135
+ },
2136
+ {
2137
+ name: 'managerTotalWithdraws',
2138
+ docs: ['Total withdraws for the manager'],
2139
+ type: 'u64',
2140
+ },
2141
+ {
2142
+ name: 'managerTotalFee',
2143
+ docs: ['Total management fee accrued by the manager'],
2144
+ type: 'i64',
2145
+ },
2146
+ {
2147
+ name: 'managerTotalProfitShare',
2148
+ docs: ['Total profit share accrued by the manager'],
2149
+ type: 'u64',
2150
+ },
2151
+ {
2152
+ name: 'minDepositAmount',
2153
+ docs: ['The minimum deposit amount'],
2154
+ type: 'u64',
2155
+ },
2156
+ {
2157
+ name: 'lastManagerWithdrawRequest',
2158
+ type: {
2159
+ defined: 'WithdrawRequest',
2160
+ },
2161
+ },
2162
+ {
2163
+ name: 'sharesBase',
2164
+ docs: [
2165
+ 'The base 10 exponent of the shares (given massive share inflation can occur at near zero vault equity)',
2166
+ ],
2167
+ type: 'u32',
2168
+ },
2169
+ {
2170
+ name: 'profitShare',
2171
+ docs: [
2172
+ 'Percentage the manager charges on all profits realized by depositors: PERCENTAGE_PRECISION',
2173
+ ],
2174
+ type: 'u32',
2175
+ },
2176
+ {
2177
+ name: 'hurdleRate',
2178
+ docs: [
2179
+ 'Vault manager only collect incentive fees during periods when returns are higher than this amount: PERCENTAGE_PRECISION',
2180
+ ],
2181
+ type: 'u32',
2182
+ },
2183
+ {
2184
+ name: 'spotMarketIndex',
2185
+ docs: [
2186
+ 'The spot market index the vault deposits into/withdraws from',
2187
+ ],
2188
+ type: 'u16',
2189
+ },
2190
+ {
2191
+ name: 'bump',
2192
+ docs: ['The bump for the vault pda'],
2193
+ type: 'u8',
2194
+ },
2195
+ {
2196
+ name: 'permissioned',
2197
+ docs: ['Whether anybody can be a depositor'],
2198
+ type: 'bool',
2199
+ },
2200
+ {
2201
+ name: 'vaultProtocol',
2202
+ docs: ['The optional [`VaultProtocol`] account.'],
2203
+ type: 'bool',
2204
+ },
2205
+ {
2206
+ name: 'padding1',
2207
+ type: {
2208
+ array: ['u8', 7],
2209
+ },
2210
+ },
2211
+ {
2212
+ name: 'padding',
2213
+ type: {
2214
+ array: ['u64', 7],
2215
+ },
2216
+ },
2217
+ ],
2218
+ },
2219
+ },
2220
+ ],
2221
+ types: [
2222
+ {
2223
+ name: 'InitializeTokenizedVaultDepositorParams',
2224
+ type: {
2225
+ kind: 'struct',
2226
+ fields: [
2227
+ {
2228
+ name: 'tokenName',
2229
+ type: 'string',
2230
+ },
2231
+ {
2232
+ name: 'tokenSymbol',
2233
+ type: 'string',
2234
+ },
2235
+ {
2236
+ name: 'tokenUri',
2237
+ type: 'string',
2238
+ },
2239
+ {
2240
+ name: 'decimals',
2241
+ type: 'u8',
2242
+ },
2243
+ ],
2244
+ },
2245
+ },
2246
+ {
2247
+ name: 'VaultWithProtocolParams',
2248
+ type: {
2249
+ kind: 'struct',
2250
+ fields: [
2251
+ {
2252
+ name: 'name',
2253
+ type: {
2254
+ array: ['u8', 32],
2255
+ },
2256
+ },
2257
+ {
2258
+ name: 'redeemPeriod',
2259
+ type: 'i64',
2260
+ },
2261
+ {
2262
+ name: 'maxTokens',
2263
+ type: 'u64',
2264
+ },
2265
+ {
2266
+ name: 'managementFee',
2267
+ type: 'i64',
2268
+ },
2269
+ {
2270
+ name: 'minDepositAmount',
2271
+ type: 'u64',
2272
+ },
2273
+ {
2274
+ name: 'profitShare',
2275
+ type: 'u32',
2276
+ },
2277
+ {
2278
+ name: 'hurdleRate',
2279
+ type: 'u32',
2280
+ },
2281
+ {
2282
+ name: 'spotMarketIndex',
2283
+ type: 'u16',
2284
+ },
2285
+ {
2286
+ name: 'permissioned',
2287
+ type: 'bool',
2288
+ },
2289
+ {
2290
+ name: 'vaultProtocol',
2291
+ type: {
2292
+ defined: 'VaultProtocolParams',
2293
+ },
2294
+ },
2295
+ {
2296
+ name: 'admin',
2297
+ type: 'publicKey',
2298
+ },
2299
+ ],
2300
+ },
2301
+ },
2302
+ {
2303
+ name: 'VaultProtocolParams',
2304
+ type: {
2305
+ kind: 'struct',
2306
+ fields: [
2307
+ {
2308
+ name: 'protocol',
2309
+ type: 'publicKey',
2310
+ },
2311
+ {
2312
+ name: 'protocolFee',
2313
+ type: 'u64',
2314
+ },
2315
+ {
2316
+ name: 'protocolProfitShare',
2317
+ type: 'u32',
2318
+ },
2319
+ ],
2320
+ },
2321
+ },
2322
+ {
2323
+ name: 'VaultParams',
2324
+ type: {
2325
+ kind: 'struct',
2326
+ fields: [
2327
+ {
2328
+ name: 'name',
2329
+ type: {
2330
+ array: ['u8', 32],
2331
+ },
2332
+ },
2333
+ {
2334
+ name: 'redeemPeriod',
2335
+ type: 'i64',
2336
+ },
2337
+ {
2338
+ name: 'maxTokens',
2339
+ type: 'u64',
2340
+ },
2341
+ {
2342
+ name: 'managementFee',
2343
+ type: 'i64',
2344
+ },
2345
+ {
2346
+ name: 'minDepositAmount',
2347
+ type: 'u64',
2348
+ },
2349
+ {
2350
+ name: 'profitShare',
2351
+ type: 'u32',
2352
+ },
2353
+ {
2354
+ name: 'hurdleRate',
2355
+ type: 'u32',
2356
+ },
2357
+ {
2358
+ name: 'spotMarketIndex',
2359
+ type: 'u16',
2360
+ },
2361
+ {
2362
+ name: 'permissioned',
2363
+ type: 'bool',
2364
+ },
2365
+ {
2366
+ name: 'admin',
2367
+ type: 'publicKey',
2368
+ },
2369
+ ],
2370
+ },
2371
+ },
2372
+ {
2373
+ name: 'UpdateVaultProtocolParams',
2374
+ type: {
2375
+ kind: 'struct',
2376
+ fields: [
2377
+ {
2378
+ name: 'protocolFee',
2379
+ type: {
2380
+ option: 'u64',
2381
+ },
2382
+ },
2383
+ {
2384
+ name: 'protocolProfitShare',
2385
+ type: {
2386
+ option: 'u32',
2387
+ },
2388
+ },
2389
+ ],
2390
+ },
2391
+ },
2392
+ {
2393
+ name: 'UpdateVaultParams',
2394
+ type: {
2395
+ kind: 'struct',
2396
+ fields: [
2397
+ {
2398
+ name: 'redeemPeriod',
2399
+ type: {
2400
+ option: 'i64',
2401
+ },
2402
+ },
2403
+ {
2404
+ name: 'maxTokens',
2405
+ type: {
2406
+ option: 'u64',
2407
+ },
2408
+ },
2409
+ {
2410
+ name: 'managementFee',
2411
+ type: {
2412
+ option: 'i64',
2413
+ },
2414
+ },
2415
+ {
2416
+ name: 'minDepositAmount',
2417
+ type: {
2418
+ option: 'u64',
2419
+ },
2420
+ },
2421
+ {
2422
+ name: 'profitShare',
2423
+ type: {
2424
+ option: 'u32',
2425
+ },
2426
+ },
2427
+ {
2428
+ name: 'hurdleRate',
2429
+ type: {
2430
+ option: 'u32',
2431
+ },
2432
+ },
2433
+ {
2434
+ name: 'permissioned',
2435
+ type: {
2436
+ option: 'bool',
2437
+ },
2438
+ },
2439
+ ],
2440
+ },
2441
+ },
2442
+ {
2443
+ name: 'WithdrawRequest',
2444
+ type: {
2445
+ kind: 'struct',
2446
+ fields: [
2447
+ {
2448
+ name: 'shares',
2449
+ docs: ['request shares of vault withdraw'],
2450
+ type: 'u128',
2451
+ },
2452
+ {
2453
+ name: 'value',
2454
+ docs: [
2455
+ 'requested value (in vault spot_market_index) of shares for withdraw',
2456
+ ],
2457
+ type: 'u64',
2458
+ },
2459
+ {
2460
+ name: 'ts',
2461
+ docs: ['request ts of vault withdraw'],
2462
+ type: 'i64',
2463
+ },
2464
+ ],
2465
+ },
2466
+ },
2467
+ {
2468
+ name: 'VaultDepositorAction',
2469
+ type: {
2470
+ kind: 'enum',
2471
+ variants: [
2472
+ {
2473
+ name: 'Deposit',
2474
+ },
2475
+ {
2476
+ name: 'WithdrawRequest',
2477
+ },
2478
+ {
2479
+ name: 'CancelWithdrawRequest',
2480
+ },
2481
+ {
2482
+ name: 'Withdraw',
2483
+ },
2484
+ {
2485
+ name: 'FeePayment',
2486
+ },
2487
+ {
2488
+ name: 'TokenizeShares',
2489
+ },
2490
+ {
2491
+ name: 'RedeemTokens',
2492
+ },
2493
+ ],
2494
+ },
2495
+ },
2496
+ {
2497
+ name: 'WithdrawUnit',
2498
+ type: {
2499
+ kind: 'enum',
2500
+ variants: [
2501
+ {
2502
+ name: 'Shares',
2503
+ },
2504
+ {
2505
+ name: 'Token',
2506
+ },
2507
+ {
2508
+ name: 'SharesPercent',
2509
+ },
2510
+ ],
2511
+ },
2512
+ },
2513
+ ],
2514
+ events: [
2515
+ {
2516
+ name: 'VaultRecord',
2517
+ fields: [
2518
+ {
2519
+ name: 'ts',
2520
+ type: 'i64',
2521
+ index: false,
2522
+ },
2523
+ {
2524
+ name: 'spotMarketIndex',
2525
+ type: 'u16',
2526
+ index: false,
2527
+ },
2528
+ {
2529
+ name: 'vaultEquityBefore',
2530
+ type: 'u64',
2531
+ index: false,
2532
+ },
2533
+ ],
2534
+ },
2535
+ {
2536
+ name: 'VaultDepositorRecord',
2537
+ fields: [
2538
+ {
2539
+ name: 'ts',
2540
+ type: 'i64',
2541
+ index: false,
2542
+ },
2543
+ {
2544
+ name: 'vault',
2545
+ type: 'publicKey',
2546
+ index: false,
2547
+ },
2548
+ {
2549
+ name: 'depositorAuthority',
2550
+ type: 'publicKey',
2551
+ index: false,
2552
+ },
2553
+ {
2554
+ name: 'action',
2555
+ type: {
2556
+ defined: 'VaultDepositorAction',
2557
+ },
2558
+ index: false,
2559
+ },
2560
+ {
2561
+ name: 'amount',
2562
+ type: 'u64',
2563
+ index: false,
2564
+ },
2565
+ {
2566
+ name: 'spotMarketIndex',
2567
+ type: 'u16',
2568
+ index: false,
2569
+ },
2570
+ {
2571
+ name: 'vaultSharesBefore',
2572
+ type: 'u128',
2573
+ index: false,
2574
+ },
2575
+ {
2576
+ name: 'vaultSharesAfter',
2577
+ type: 'u128',
2578
+ index: false,
2579
+ },
2580
+ {
2581
+ name: 'vaultEquityBefore',
2582
+ type: 'u64',
2583
+ index: false,
2584
+ },
2585
+ {
2586
+ name: 'userVaultSharesBefore',
2587
+ type: 'u128',
2588
+ index: false,
2589
+ },
2590
+ {
2591
+ name: 'totalVaultSharesBefore',
2592
+ type: 'u128',
2593
+ index: false,
2594
+ },
2595
+ {
2596
+ name: 'userVaultSharesAfter',
2597
+ type: 'u128',
2598
+ index: false,
2599
+ },
2600
+ {
2601
+ name: 'totalVaultSharesAfter',
2602
+ type: 'u128',
2603
+ index: false,
2604
+ },
2605
+ {
2606
+ name: 'profitShare',
2607
+ type: 'u64',
2608
+ index: false,
2609
+ },
2610
+ {
2611
+ name: 'managementFee',
2612
+ type: 'i64',
2613
+ index: false,
2614
+ },
2615
+ {
2616
+ name: 'managementFeeShares',
2617
+ type: 'i64',
2618
+ index: false,
2619
+ },
2620
+ ],
2621
+ },
2622
+ {
2623
+ name: 'VaultDepositorV1Record',
2624
+ fields: [
2625
+ {
2626
+ name: 'ts',
2627
+ type: 'i64',
2628
+ index: false,
2629
+ },
2630
+ {
2631
+ name: 'vault',
2632
+ type: 'publicKey',
2633
+ index: false,
2634
+ },
2635
+ {
2636
+ name: 'depositorAuthority',
2637
+ type: 'publicKey',
2638
+ index: false,
2639
+ },
2640
+ {
2641
+ name: 'action',
2642
+ type: {
2643
+ defined: 'VaultDepositorAction',
2644
+ },
2645
+ index: false,
2646
+ },
2647
+ {
2648
+ name: 'amount',
2649
+ type: 'u64',
2650
+ index: false,
2651
+ },
2652
+ {
2653
+ name: 'spotMarketIndex',
2654
+ type: 'u16',
2655
+ index: false,
2656
+ },
2657
+ {
2658
+ name: 'vaultSharesBefore',
2659
+ type: 'u128',
2660
+ index: false,
2661
+ },
2662
+ {
2663
+ name: 'vaultSharesAfter',
2664
+ type: 'u128',
2665
+ index: false,
2666
+ },
2667
+ {
2668
+ name: 'vaultEquityBefore',
2669
+ type: 'u64',
2670
+ index: false,
2671
+ },
2672
+ {
2673
+ name: 'userVaultSharesBefore',
2674
+ type: 'u128',
2675
+ index: false,
2676
+ },
2677
+ {
2678
+ name: 'totalVaultSharesBefore',
2679
+ type: 'u128',
2680
+ index: false,
2681
+ },
2682
+ {
2683
+ name: 'userVaultSharesAfter',
2684
+ type: 'u128',
2685
+ index: false,
2686
+ },
2687
+ {
2688
+ name: 'totalVaultSharesAfter',
2689
+ type: 'u128',
2690
+ index: false,
2691
+ },
2692
+ {
2693
+ name: 'protocolSharesBefore',
2694
+ type: 'u128',
2695
+ index: false,
2696
+ },
2697
+ {
2698
+ name: 'protocolSharesAfter',
2699
+ type: 'u128',
2700
+ index: false,
2701
+ },
2702
+ {
2703
+ name: 'protocolProfitShare',
2704
+ type: 'u64',
2705
+ index: false,
2706
+ },
2707
+ {
2708
+ name: 'protocolFee',
2709
+ type: 'i64',
2710
+ index: false,
2711
+ },
2712
+ {
2713
+ name: 'protocolFeeShares',
2714
+ type: 'i64',
2715
+ index: false,
2716
+ },
2717
+ {
2718
+ name: 'managerProfitShare',
2719
+ type: 'u64',
2720
+ index: false,
2721
+ },
2722
+ {
2723
+ name: 'managementFee',
2724
+ type: 'i64',
2725
+ index: false,
2726
+ },
2727
+ {
2728
+ name: 'managementFeeShares',
2729
+ type: 'i64',
2730
+ index: false,
2731
+ },
2732
+ ],
2733
+ },
2734
+ {
2735
+ name: 'ShareTransferRecord',
2736
+ fields: [
2737
+ {
2738
+ name: 'ts',
2739
+ type: 'i64',
2740
+ index: false,
2741
+ },
2742
+ {
2743
+ name: 'vault',
2744
+ type: 'publicKey',
2745
+ index: false,
2746
+ },
2747
+ {
2748
+ name: 'fromVaultDepositor',
2749
+ type: 'publicKey',
2750
+ index: false,
2751
+ },
2752
+ {
2753
+ name: 'toVaultDepositor',
2754
+ type: 'publicKey',
2755
+ index: false,
2756
+ },
2757
+ {
2758
+ name: 'shares',
2759
+ type: 'u128',
2760
+ index: false,
2761
+ },
2762
+ {
2763
+ name: 'value',
2764
+ type: 'u64',
2765
+ index: false,
2766
+ },
2767
+ {
2768
+ name: 'fromDepositorSharesBefore',
2769
+ type: 'u128',
2770
+ index: false,
2771
+ },
2772
+ {
2773
+ name: 'fromDepositorSharesAfter',
2774
+ type: 'u128',
2775
+ index: false,
2776
+ },
2777
+ {
2778
+ name: 'toDepositorSharesBefore',
2779
+ type: 'u128',
2780
+ index: false,
2781
+ },
2782
+ {
2783
+ name: 'toDepositorSharesAfter',
2784
+ type: 'u128',
2785
+ index: false,
2786
+ },
2787
+ ],
2788
+ },
2789
+ ],
2790
+ errors: [
2791
+ {
2792
+ code: 6000,
2793
+ name: 'Default',
2794
+ msg: 'Default',
2795
+ },
2796
+ {
2797
+ code: 6001,
2798
+ name: 'InvalidVaultRebase',
2799
+ msg: 'InvalidVaultRebase',
2800
+ },
2801
+ {
2802
+ code: 6002,
2803
+ name: 'InvalidVaultSharesDetected',
2804
+ msg: 'InvalidVaultSharesDetected',
2805
+ },
2806
+ {
2807
+ code: 6003,
2808
+ name: 'CannotWithdrawBeforeRedeemPeriodEnd',
2809
+ msg: 'CannotWithdrawBeforeRedeemPeriodEnd',
2810
+ },
2811
+ {
2812
+ code: 6004,
2813
+ name: 'InvalidVaultWithdraw',
2814
+ msg: 'InvalidVaultWithdraw',
2815
+ },
2816
+ {
2817
+ code: 6005,
2818
+ name: 'InsufficientVaultShares',
2819
+ msg: 'InsufficientVaultShares',
2820
+ },
2821
+ {
2822
+ code: 6006,
2823
+ name: 'InvalidVaultWithdrawSize',
2824
+ msg: 'InvalidVaultWithdrawSize',
2825
+ },
2826
+ {
2827
+ code: 6007,
2828
+ name: 'InvalidVaultForNewDepositors',
2829
+ msg: 'InvalidVaultForNewDepositors',
2830
+ },
2831
+ {
2832
+ code: 6008,
2833
+ name: 'VaultWithdrawRequestInProgress',
2834
+ msg: 'VaultWithdrawRequestInProgress',
2835
+ },
2836
+ {
2837
+ code: 6009,
2838
+ name: 'VaultIsAtCapacity',
2839
+ msg: 'VaultIsAtCapacity',
2840
+ },
2841
+ {
2842
+ code: 6010,
2843
+ name: 'InvalidVaultDepositorInitialization',
2844
+ msg: 'InvalidVaultDepositorInitialization',
2845
+ },
2846
+ {
2847
+ code: 6011,
2848
+ name: 'DelegateNotAvailableForLiquidation',
2849
+ msg: 'DelegateNotAvailableForLiquidation',
2850
+ },
2851
+ {
2852
+ code: 6012,
2853
+ name: 'InvalidEquityValue',
2854
+ msg: 'InvalidEquityValue',
2855
+ },
2856
+ {
2857
+ code: 6013,
2858
+ name: 'VaultInLiquidation',
2859
+ msg: 'VaultInLiquidation',
2860
+ },
2861
+ {
2862
+ code: 6014,
2863
+ name: 'DriftError',
2864
+ msg: 'DriftError',
2865
+ },
2866
+ {
2867
+ code: 6015,
2868
+ name: 'InvalidVaultInitialization',
2869
+ msg: 'InvalidVaultInitialization',
2870
+ },
2871
+ {
2872
+ code: 6016,
2873
+ name: 'InvalidVaultUpdate',
2874
+ msg: 'InvalidVaultUpdate',
2875
+ },
2876
+ {
2877
+ code: 6017,
2878
+ name: 'PermissionedVault',
2879
+ msg: 'PermissionedVault',
2880
+ },
2881
+ {
2882
+ code: 6018,
2883
+ name: 'WithdrawInProgress',
2884
+ msg: 'WithdrawInProgress',
2885
+ },
2886
+ {
2887
+ code: 6019,
2888
+ name: 'SharesPercentTooLarge',
2889
+ msg: 'SharesPercentTooLarge',
2890
+ },
2891
+ {
2892
+ code: 6020,
2893
+ name: 'InvalidVaultDeposit',
2894
+ msg: 'InvalidVaultDeposit',
2895
+ },
2896
+ {
2897
+ code: 6021,
2898
+ name: 'OngoingLiquidation',
2899
+ msg: 'OngoingLiquidation',
2900
+ },
2901
+ {
2902
+ code: 6022,
2903
+ name: 'VaultProtocolMissing',
2904
+ msg: 'VaultProtocolMissing',
2905
+ },
2906
+ {
2907
+ code: 6023,
2908
+ name: 'InvalidTokenization',
2909
+ msg: 'InvalidTokenization',
2910
+ },
2911
+ ],
2912
+ };
2913
+ //# sourceMappingURL=vectis_insurance_drift_vaults.js.map