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