@neutral-trade/sdk 0.4.19 → 1.0.1

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.
@@ -1,4162 +0,0 @@
1
- import { AnchorProvider, IdlAccounts, Program } from "@coral-xyz/anchor";
2
- import { Connection, PublicKey, TransactionInstruction } from "@solana/web3.js";
3
- import { z } from "zod";
4
-
5
- //#region src/idl/ntbundle.d.ts
6
-
7
- /**
8
- * Program IDL in camelCase format in order to be used in JS/TS.
9
- *
10
- * Note that this is only a type helper and is not the actual IDL. The original
11
- * IDL can be found at `src/idl/ntbundle.json` (synced from `bundle-sc/target/idl/ntbundle.json`).
12
- */
13
- interface Ntbundle {
14
- address: 'BUNDDh4P5XviMm1f3gCvnq2qKx6TGosAGnoUK12e7cXU';
15
- metadata: {
16
- name: 'ntbundle';
17
- version: '0.1.0';
18
- spec: '0.1.0';
19
- description: 'Created with Anchor';
20
- };
21
- instructions: [{
22
- name: 'addStrategy';
23
- discriminator: [64, 123, 127, 227, 192, 234, 198, 20];
24
- accounts: [{
25
- name: 'manager';
26
- writable: true;
27
- signer: true;
28
- }, {
29
- name: 'strategyAccount';
30
- writable: true;
31
- pda: {
32
- seeds: [{
33
- kind: 'const';
34
- value: [83, 84, 82, 65, 84, 69, 71, 89];
35
- }, {
36
- kind: 'account';
37
- path: 'receiverAddress';
38
- }, {
39
- kind: 'account';
40
- path: 'bundleAccount';
41
- }];
42
- };
43
- }, {
44
- name: 'bundleAccount';
45
- writable: true;
46
- }, {
47
- name: 'receiverAddress';
48
- writable: true;
49
- }, {
50
- name: 'systemProgram';
51
- address: '11111111111111111111111111111111';
52
- }];
53
- args: [{
54
- name: 'allocationBps';
55
- type: 'u32';
56
- }];
57
- }, {
58
- name: 'applyFeesToUser';
59
- discriminator: [26, 41, 103, 167, 61, 147, 141, 30];
60
- accounts: [{
61
- name: 'keeper';
62
- writable: true;
63
- signer: true;
64
- }, {
65
- name: 'userBundleAccountOwner';
66
- writable: true;
67
- }, {
68
- name: 'userBundleAccount';
69
- writable: true;
70
- pda: {
71
- seeds: [{
72
- kind: 'const';
73
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
74
- }, {
75
- kind: 'account';
76
- path: 'userBundleAccountOwner';
77
- }, {
78
- kind: 'account';
79
- path: 'bundleAccount';
80
- }];
81
- };
82
- }, {
83
- name: 'bundleAccount';
84
- writable: true;
85
- }, {
86
- name: 'oracleData';
87
- writable: true;
88
- pda: {
89
- seeds: [{
90
- kind: 'const';
91
- value: [79, 82, 65, 67, 76, 69];
92
- }, {
93
- kind: 'account';
94
- path: 'bundleAccount';
95
- }];
96
- };
97
- }, {
98
- name: 'bundleAssetAuthority';
99
- writable: true;
100
- pda: {
101
- seeds: [{
102
- kind: 'const';
103
- value: [66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
104
- }, {
105
- kind: 'account';
106
- path: 'bundleAccount';
107
- }];
108
- };
109
- }];
110
- args: [];
111
- }, {
112
- name: 'changeBundleMasterAdmin';
113
- discriminator: [255, 41, 246, 82, 7, 81, 174, 112];
114
- accounts: [{
115
- name: 'admin';
116
- writable: true;
117
- signer: true;
118
- }, {
119
- name: 'bundleMasterAccount';
120
- writable: true;
121
- pda: {
122
- seeds: [{
123
- kind: 'const';
124
- value: [66, 85, 78, 68, 76, 69, 95, 77, 65, 83, 84, 69, 82];
125
- }];
126
- };
127
- }];
128
- args: [{
129
- name: 'newAdmin';
130
- type: 'pubkey';
131
- }];
132
- }, {
133
- name: 'changeManager';
134
- discriminator: [97, 44, 74, 213, 119, 243, 203, 8];
135
- accounts: [{
136
- name: 'manager';
137
- writable: true;
138
- signer: true;
139
- }, {
140
- name: 'bundleAccount';
141
- writable: true;
142
- }];
143
- args: [{
144
- name: 'newManager';
145
- type: 'pubkey';
146
- }];
147
- }, {
148
- name: 'clearUserFeeOverride';
149
- discriminator: [97, 227, 92, 191, 205, 0, 154, 77];
150
- accounts: [{
151
- name: 'manager';
152
- writable: true;
153
- signer: true;
154
- }, {
155
- name: 'userBundleAccountOwner';
156
- }, {
157
- name: 'userBundleAccount';
158
- writable: true;
159
- pda: {
160
- seeds: [{
161
- kind: 'const';
162
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
163
- }, {
164
- kind: 'account';
165
- path: 'userBundleAccountOwner';
166
- }, {
167
- kind: 'account';
168
- path: 'bundleAccount';
169
- }];
170
- };
171
- }, {
172
- name: 'bundleAccount';
173
- }];
174
- args: [{
175
- name: 'clearMask';
176
- type: 'u8';
177
- }];
178
- }, {
179
- name: 'clearUserWithdrawalTimingOverride';
180
- discriminator: [203, 96, 230, 216, 217, 104, 244, 74];
181
- accounts: [{
182
- name: 'manager';
183
- writable: true;
184
- signer: true;
185
- }, {
186
- name: 'userBundleAccountOwner';
187
- }, {
188
- name: 'userBundleAccount';
189
- writable: true;
190
- pda: {
191
- seeds: [{
192
- kind: 'const';
193
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
194
- }, {
195
- kind: 'account';
196
- path: 'userBundleAccountOwner';
197
- }, {
198
- kind: 'account';
199
- path: 'bundleAccount';
200
- }];
201
- };
202
- }, {
203
- name: 'bundleAccount';
204
- }];
205
- args: [{
206
- name: 'clearMask';
207
- type: 'u8';
208
- }];
209
- }, {
210
- name: 'closeUserBundleAccount';
211
- discriminator: [201, 195, 126, 228, 9, 173, 79, 215];
212
- accounts: [{
213
- name: 'authority';
214
- writable: true;
215
- signer: true;
216
- }, {
217
- name: 'userBundleAccount';
218
- writable: true;
219
- pda: {
220
- seeds: [{
221
- kind: 'const';
222
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
223
- }, {
224
- kind: 'account';
225
- path: 'authority';
226
- }, {
227
- kind: 'account';
228
- path: 'bundleAccount';
229
- }];
230
- };
231
- }, {
232
- name: 'bundleAccount';
233
- }];
234
- args: [];
235
- }, {
236
- name: 'distributeToReceivers';
237
- discriminator: [123, 169, 151, 143, 0, 82, 209, 145];
238
- accounts: [{
239
- name: 'keeper';
240
- writable: true;
241
- signer: true;
242
- }, {
243
- name: 'receiverAddress';
244
- writable: true;
245
- }, {
246
- name: 'bundleAssetAccount';
247
- writable: true;
248
- pda: {
249
- seeds: [{
250
- kind: 'account';
251
- path: 'bundleAssetAuthority';
252
- }, {
253
- kind: 'const';
254
- value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
255
- }, {
256
- kind: 'account';
257
- path: 'assetAddress';
258
- }];
259
- program: {
260
- kind: 'const';
261
- value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
262
- };
263
- };
264
- }, {
265
- name: 'receiverAta';
266
- writable: true;
267
- }, {
268
- name: 'assetAddress';
269
- }, {
270
- name: 'oracleData';
271
- writable: true;
272
- pda: {
273
- seeds: [{
274
- kind: 'const';
275
- value: [79, 82, 65, 67, 76, 69];
276
- }, {
277
- kind: 'account';
278
- path: 'bundleAccount';
279
- }];
280
- };
281
- }, {
282
- name: 'bundleAssetAuthority';
283
- writable: true;
284
- pda: {
285
- seeds: [{
286
- kind: 'const';
287
- value: [66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
288
- }, {
289
- kind: 'account';
290
- path: 'bundleAccount';
291
- }];
292
- };
293
- }, {
294
- name: 'tokenProgram';
295
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
296
- }, {
297
- name: 'bundleAccount';
298
- writable: true;
299
- }, {
300
- name: 'bundleTempData';
301
- writable: true;
302
- pda: {
303
- seeds: [{
304
- kind: 'const';
305
- value: [66, 85, 78, 68, 76, 69, 95, 84, 69, 77, 80, 95, 68, 65, 84, 65];
306
- }, {
307
- kind: 'account';
308
- path: 'bundleAccount';
309
- }];
310
- };
311
- }, {
312
- name: 'strategyAccount';
313
- writable: true;
314
- pda: {
315
- seeds: [{
316
- kind: 'const';
317
- value: [83, 84, 82, 65, 84, 69, 71, 89];
318
- }, {
319
- kind: 'account';
320
- path: 'receiverAddress';
321
- }, {
322
- kind: 'account';
323
- path: 'bundleAccount';
324
- }];
325
- };
326
- }];
327
- args: [];
328
- }, {
329
- name: 'enableStrategy';
330
- discriminator: [245, 37, 61, 122, 99, 92, 182, 30];
331
- accounts: [{
332
- name: 'manager';
333
- writable: true;
334
- signer: true;
335
- }, {
336
- name: 'strategyAccount';
337
- writable: true;
338
- pda: {
339
- seeds: [{
340
- kind: 'const';
341
- value: [83, 84, 82, 65, 84, 69, 71, 89];
342
- }, {
343
- kind: 'account';
344
- path: 'receiverAddress';
345
- }, {
346
- kind: 'account';
347
- path: 'bundleAccount';
348
- }];
349
- };
350
- }, {
351
- name: 'bundleAccount';
352
- writable: true;
353
- }, {
354
- name: 'receiverAddress';
355
- writable: true;
356
- }, {
357
- name: 'systemProgram';
358
- address: '11111111111111111111111111111111';
359
- }];
360
- args: [];
361
- }, {
362
- name: 'endDistribution';
363
- discriminator: [201, 74, 167, 103, 102, 125, 0, 236];
364
- accounts: [{
365
- name: 'keeper';
366
- writable: true;
367
- signer: true;
368
- }, {
369
- name: 'bundleAccount';
370
- writable: true;
371
- }, {
372
- name: 'bundleTempData';
373
- writable: true;
374
- pda: {
375
- seeds: [{
376
- kind: 'const';
377
- value: [66, 85, 78, 68, 76, 69, 95, 84, 69, 77, 80, 95, 68, 65, 84, 65];
378
- }, {
379
- kind: 'account';
380
- path: 'bundleAccount';
381
- }];
382
- };
383
- }, {
384
- name: 'oracleData';
385
- writable: true;
386
- pda: {
387
- seeds: [{
388
- kind: 'const';
389
- value: [79, 82, 65, 67, 76, 69];
390
- }, {
391
- kind: 'account';
392
- path: 'bundleAccount';
393
- }];
394
- };
395
- }];
396
- args: [];
397
- }, {
398
- name: 'initializeBundle';
399
- discriminator: [93, 76, 148, 51, 99, 41, 179, 234];
400
- accounts: [{
401
- name: 'creator';
402
- writable: true;
403
- signer: true;
404
- }, {
405
- name: 'bundleCreatorAccount';
406
- pda: {
407
- seeds: [{
408
- kind: 'const';
409
- value: [66, 85, 78, 68, 76, 69, 95, 67, 82, 69, 65, 84, 79, 82];
410
- }, {
411
- kind: 'account';
412
- path: 'creator';
413
- }];
414
- };
415
- }, {
416
- name: 'systemProgram';
417
- address: '11111111111111111111111111111111';
418
- }, {
419
- name: 'treasuryAccount';
420
- writable: true;
421
- }, {
422
- name: 'assetAddress';
423
- writable: true;
424
- }, {
425
- name: 'bundleAccount';
426
- writable: true;
427
- pda: {
428
- seeds: [{
429
- kind: 'const';
430
- value: [66, 85, 78, 68, 76, 69];
431
- }, {
432
- kind: 'arg';
433
- path: 'name';
434
- }];
435
- };
436
- }, {
437
- name: 'bundleTempData';
438
- writable: true;
439
- pda: {
440
- seeds: [{
441
- kind: 'const';
442
- value: [66, 85, 78, 68, 76, 69, 95, 84, 69, 77, 80, 95, 68, 65, 84, 65];
443
- }, {
444
- kind: 'account';
445
- path: 'bundleAccount';
446
- }];
447
- };
448
- }, {
449
- name: 'oracleData';
450
- writable: true;
451
- pda: {
452
- seeds: [{
453
- kind: 'const';
454
- value: [79, 82, 65, 67, 76, 69];
455
- }, {
456
- kind: 'account';
457
- path: 'bundleAccount';
458
- }];
459
- };
460
- }];
461
- args: [{
462
- name: 'name';
463
- type: {
464
- array: ['u8', 32];
465
- };
466
- }, {
467
- name: 'keeper';
468
- type: 'pubkey';
469
- }, {
470
- name: 'depositFee';
471
- type: 'u32';
472
- }, {
473
- name: 'withdrawalFee';
474
- type: 'u32';
475
- }, {
476
- name: 'performanceFee';
477
- type: 'u32';
478
- }, {
479
- name: 'managementFeeBps';
480
- type: 'u32';
481
- }, {
482
- name: 'oracleBuffer';
483
- type: 'u64';
484
- }, {
485
- name: 'maxDepositAmount';
486
- type: 'u64';
487
- }, {
488
- name: 'minDepositAmount';
489
- type: 'u64';
490
- }, {
491
- name: 'withdrawalDelay';
492
- type: 'u64';
493
- }, {
494
- name: 'withdrawalTMin';
495
- type: 'i64';
496
- }, {
497
- name: 'withdrawalTMax';
498
- type: 'i64';
499
- }, {
500
- name: 'withdrawalCurve';
501
- type: 'f32';
502
- }, {
503
- name: 'oracleMaxAge';
504
- type: 'i64';
505
- }, {
506
- name: 'oracleUpdateTimeLimit';
507
- type: 'i64';
508
- }, {
509
- name: 'withdrawalRedemptionRequestCutoffTs';
510
- type: 'i64';
511
- }, {
512
- name: 'withdrawalRedemptionUnlockCurrentCycleTs';
513
- type: 'i64';
514
- }, {
515
- name: 'withdrawalRedemptionUnlockNextCycleTs';
516
- type: 'i64';
517
- }, {
518
- name: 'permissionned';
519
- type: 'bool';
520
- }];
521
- }, {
522
- name: 'initializeBundleDepositor';
523
- discriminator: [126, 6, 242, 36, 22, 209, 35, 2];
524
- accounts: [{
525
- name: 'payer';
526
- writable: true;
527
- signer: true;
528
- }, {
529
- name: 'authority';
530
- writable: true;
531
- signer: true;
532
- }, {
533
- name: 'systemProgram';
534
- address: '11111111111111111111111111111111';
535
- }, {
536
- name: 'bundleAccount';
537
- writable: true;
538
- }, {
539
- name: 'userBundleAccount';
540
- docs: ['each user gets one UserBundleAccount account; it will be created if it doesn\'t exist.'];
541
- writable: true;
542
- pda: {
543
- seeds: [{
544
- kind: 'const';
545
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
546
- }, {
547
- kind: 'account';
548
- path: 'authority';
549
- }, {
550
- kind: 'account';
551
- path: 'bundleAccount';
552
- }];
553
- };
554
- }];
555
- args: [];
556
- }, {
557
- name: 'initializeBundleMasterAccount';
558
- discriminator: [125, 166, 190, 35, 73, 169, 140, 206];
559
- accounts: [{
560
- name: 'admin';
561
- writable: true;
562
- signer: true;
563
- }, {
564
- name: 'bundleMasterAccount';
565
- writable: true;
566
- pda: {
567
- seeds: [{
568
- kind: 'const';
569
- value: [66, 85, 78, 68, 76, 69, 95, 77, 65, 83, 84, 69, 82];
570
- }];
571
- };
572
- }, {
573
- name: 'systemProgram';
574
- address: '11111111111111111111111111111111';
575
- }];
576
- args: [];
577
- }, {
578
- name: 'initializePermissionedBundleDepositor';
579
- discriminator: [157, 162, 213, 42, 205, 201, 37, 255];
580
- accounts: [{
581
- name: 'payer';
582
- writable: true;
583
- signer: true;
584
- }, {
585
- name: 'authority';
586
- writable: true;
587
- }, {
588
- name: 'systemProgram';
589
- address: '11111111111111111111111111111111';
590
- }, {
591
- name: 'bundleAccount';
592
- writable: true;
593
- }, {
594
- name: 'userBundleAccount';
595
- docs: ['each user gets one UserBundleAccount account; it will be created if it doesn\'t exist.'];
596
- writable: true;
597
- pda: {
598
- seeds: [{
599
- kind: 'const';
600
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
601
- }, {
602
- kind: 'account';
603
- path: 'authority';
604
- }, {
605
- kind: 'account';
606
- path: 'bundleAccount';
607
- }];
608
- };
609
- }];
610
- args: [];
611
- }, {
612
- name: 'managerWithdraw';
613
- discriminator: [201, 248, 190, 143, 86, 43, 183, 254];
614
- accounts: [{
615
- name: 'manager';
616
- writable: true;
617
- signer: true;
618
- }, {
619
- name: 'managerTokenAccount';
620
- writable: true;
621
- }, {
622
- name: 'assetAddress';
623
- writable: true;
624
- }, {
625
- name: 'bundleAssetAccount';
626
- writable: true;
627
- pda: {
628
- seeds: [{
629
- kind: 'account';
630
- path: 'bundleAssetAuthority';
631
- }, {
632
- kind: 'const';
633
- value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
634
- }, {
635
- kind: 'account';
636
- path: 'assetAddress';
637
- }];
638
- program: {
639
- kind: 'const';
640
- value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
641
- };
642
- };
643
- }, {
644
- name: 'bundleAccount';
645
- writable: true;
646
- }, {
647
- name: 'oracleData';
648
- writable: true;
649
- pda: {
650
- seeds: [{
651
- kind: 'const';
652
- value: [79, 82, 65, 67, 76, 69];
653
- }, {
654
- kind: 'account';
655
- path: 'bundleAccount';
656
- }];
657
- };
658
- }, {
659
- name: 'bundleAssetAuthority';
660
- writable: true;
661
- pda: {
662
- seeds: [{
663
- kind: 'const';
664
- value: [66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
665
- }, {
666
- kind: 'account';
667
- path: 'bundleAccount';
668
- }];
669
- };
670
- }, {
671
- name: 'tokenProgram';
672
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
673
- }];
674
- args: [];
675
- }, {
676
- name: 'managerWithdrawWithSplit';
677
- discriminator: [225, 117, 84, 162, 37, 169, 153, 89];
678
- accounts: [{
679
- name: 'manager';
680
- writable: true;
681
- signer: true;
682
- }, {
683
- name: 'managerTokenAccount';
684
- writable: true;
685
- }, {
686
- name: 'partnerTokenAccount';
687
- writable: true;
688
- }, {
689
- name: 'assetAddress';
690
- writable: true;
691
- }, {
692
- name: 'bundleAssetAccount';
693
- writable: true;
694
- pda: {
695
- seeds: [{
696
- kind: 'account';
697
- path: 'bundleAssetAuthority';
698
- }, {
699
- kind: 'const';
700
- value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
701
- }, {
702
- kind: 'account';
703
- path: 'assetAddress';
704
- }];
705
- program: {
706
- kind: 'const';
707
- value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
708
- };
709
- };
710
- }, {
711
- name: 'bundleAccount';
712
- writable: true;
713
- }, {
714
- name: 'oracleData';
715
- writable: true;
716
- pda: {
717
- seeds: [{
718
- kind: 'const';
719
- value: [79, 82, 65, 67, 76, 69];
720
- }, {
721
- kind: 'account';
722
- path: 'bundleAccount';
723
- }];
724
- };
725
- }, {
726
- name: 'bundleAssetAuthority';
727
- writable: true;
728
- pda: {
729
- seeds: [{
730
- kind: 'const';
731
- value: [66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
732
- }, {
733
- kind: 'account';
734
- path: 'bundleAccount';
735
- }];
736
- };
737
- }, {
738
- name: 'tokenProgram';
739
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
740
- }];
741
- args: [{
742
- name: 'partnerPfeeBps';
743
- type: 'u32';
744
- }, {
745
- name: 'partnerMfeeBps';
746
- type: 'u32';
747
- }];
748
- }, {
749
- name: 'netPendingTransactions';
750
- discriminator: [44, 219, 50, 19, 246, 252, 37, 163];
751
- accounts: [{
752
- name: 'keeper';
753
- writable: true;
754
- signer: true;
755
- }, {
756
- name: 'bundleAccount';
757
- writable: true;
758
- }, {
759
- name: 'pendingDepositTokenAccount';
760
- writable: true;
761
- pda: {
762
- seeds: [{
763
- kind: 'account';
764
- path: 'pendingBundleAssetAuthority';
765
- }, {
766
- kind: 'const';
767
- value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
768
- }, {
769
- kind: 'account';
770
- path: 'assetAddress';
771
- }];
772
- program: {
773
- kind: 'const';
774
- value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
775
- };
776
- };
777
- }, {
778
- name: 'bundleAssetAccount';
779
- writable: true;
780
- pda: {
781
- seeds: [{
782
- kind: 'account';
783
- path: 'bundleAssetAuthority';
784
- }, {
785
- kind: 'const';
786
- value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
787
- }, {
788
- kind: 'account';
789
- path: 'assetAddress';
790
- }];
791
- program: {
792
- kind: 'const';
793
- value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
794
- };
795
- };
796
- }, {
797
- name: 'assetAddress';
798
- writable: true;
799
- }, {
800
- name: 'pendingBundleAssetAuthority';
801
- writable: true;
802
- pda: {
803
- seeds: [{
804
- kind: 'const';
805
- value: [80, 69, 78, 68, 73, 78, 71, 95, 66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
806
- }, {
807
- kind: 'account';
808
- path: 'bundleAccount';
809
- }];
810
- };
811
- }, {
812
- name: 'oracleData';
813
- writable: true;
814
- pda: {
815
- seeds: [{
816
- kind: 'const';
817
- value: [79, 82, 65, 67, 76, 69];
818
- }, {
819
- kind: 'account';
820
- path: 'bundleAccount';
821
- }];
822
- };
823
- }, {
824
- name: 'bundleTempData';
825
- writable: true;
826
- pda: {
827
- seeds: [{
828
- kind: 'const';
829
- value: [66, 85, 78, 68, 76, 69, 95, 84, 69, 77, 80, 95, 68, 65, 84, 65];
830
- }, {
831
- kind: 'account';
832
- path: 'bundleAccount';
833
- }];
834
- };
835
- }, {
836
- name: 'bundleAssetAuthority';
837
- writable: true;
838
- pda: {
839
- seeds: [{
840
- kind: 'const';
841
- value: [66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
842
- }, {
843
- kind: 'account';
844
- path: 'bundleAccount';
845
- }];
846
- };
847
- }, {
848
- name: 'tokenProgram';
849
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
850
- }];
851
- args: [];
852
- }, {
853
- name: 'pauseDepositsWithdrawals';
854
- discriminator: [106, 171, 198, 31, 183, 219, 159, 80];
855
- accounts: [{
856
- name: 'keeper';
857
- writable: true;
858
- signer: true;
859
- }, {
860
- name: 'bundleAccount';
861
- writable: true;
862
- }, {
863
- name: 'bundleTempData';
864
- writable: true;
865
- pda: {
866
- seeds: [{
867
- kind: 'const';
868
- value: [66, 85, 78, 68, 76, 69, 95, 84, 69, 77, 80, 95, 68, 65, 84, 65];
869
- }, {
870
- kind: 'account';
871
- path: 'bundleAccount';
872
- }];
873
- };
874
- }, {
875
- name: 'oracleData';
876
- writable: true;
877
- pda: {
878
- seeds: [{
879
- kind: 'const';
880
- value: [79, 82, 65, 67, 76, 69];
881
- }, {
882
- kind: 'account';
883
- path: 'bundleAccount';
884
- }];
885
- };
886
- }];
887
- args: [{
888
- name: 'pause';
889
- type: 'bool';
890
- }];
891
- }, {
892
- name: 'performRefill';
893
- discriminator: [241, 64, 6, 52, 58, 169, 15, 12];
894
- accounts: [{
895
- name: 'receiverAddress';
896
- writable: true;
897
- signer: true;
898
- }, {
899
- name: 'bundleAssetAccount';
900
- writable: true;
901
- pda: {
902
- seeds: [{
903
- kind: 'account';
904
- path: 'bundleAssetAuthority';
905
- }, {
906
- kind: 'const';
907
- value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
908
- }, {
909
- kind: 'account';
910
- path: 'assetAddress';
911
- }];
912
- program: {
913
- kind: 'const';
914
- value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
915
- };
916
- };
917
- }, {
918
- name: 'receiverAta';
919
- writable: true;
920
- }, {
921
- name: 'assetAddress';
922
- }, {
923
- name: 'bundleAccount';
924
- writable: true;
925
- }, {
926
- name: 'strategyAccount';
927
- writable: true;
928
- pda: {
929
- seeds: [{
930
- kind: 'const';
931
- value: [83, 84, 82, 65, 84, 69, 71, 89];
932
- }, {
933
- kind: 'account';
934
- path: 'receiverAddress';
935
- }, {
936
- kind: 'account';
937
- path: 'bundleAccount';
938
- }];
939
- };
940
- }, {
941
- name: 'oracleData';
942
- writable: true;
943
- pda: {
944
- seeds: [{
945
- kind: 'const';
946
- value: [79, 82, 65, 67, 76, 69];
947
- }, {
948
- kind: 'account';
949
- path: 'bundleAccount';
950
- }];
951
- };
952
- }, {
953
- name: 'bundleAssetAuthority';
954
- writable: true;
955
- pda: {
956
- seeds: [{
957
- kind: 'const';
958
- value: [66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
959
- }, {
960
- kind: 'account';
961
- path: 'bundleAccount';
962
- }];
963
- };
964
- }, {
965
- name: 'tokenProgram';
966
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
967
- }];
968
- args: [{
969
- name: 'refillAmount';
970
- type: 'u64';
971
- }];
972
- }, {
973
- name: 'processDeposit';
974
- discriminator: [136, 162, 64, 35, 84, 200, 254, 136];
975
- accounts: [{
976
- name: 'keeper';
977
- writable: true;
978
- signer: true;
979
- }, {
980
- name: 'userBundleAccount';
981
- writable: true;
982
- pda: {
983
- seeds: [{
984
- kind: 'const';
985
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
986
- }, {
987
- kind: 'account';
988
- path: 'userBundleAccountOwner';
989
- }, {
990
- kind: 'account';
991
- path: 'bundleAccount';
992
- }];
993
- };
994
- }, {
995
- name: 'pendingDepositTokenAccount';
996
- docs: ['the account holding the user\'s deposited asset before allocation.'];
997
- writable: true;
998
- pda: {
999
- seeds: [{
1000
- kind: 'account';
1001
- path: 'pendingBundleAssetAuthority';
1002
- }, {
1003
- kind: 'const';
1004
- value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
1005
- }, {
1006
- kind: 'account';
1007
- path: 'assetAddress';
1008
- }];
1009
- program: {
1010
- kind: 'const';
1011
- value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
1012
- };
1013
- };
1014
- }, {
1015
- name: 'userBundleAccountOwner';
1016
- docs: ['the owner of the pending request (for event purposes).'];
1017
- }, {
1018
- name: 'assetAddress';
1019
- writable: true;
1020
- }, {
1021
- name: 'bundleAssetAccount';
1022
- writable: true;
1023
- pda: {
1024
- seeds: [{
1025
- kind: 'account';
1026
- path: 'bundleAssetAuthority';
1027
- }, {
1028
- kind: 'const';
1029
- value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
1030
- }, {
1031
- kind: 'account';
1032
- path: 'assetAddress';
1033
- }];
1034
- program: {
1035
- kind: 'const';
1036
- value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
1037
- };
1038
- };
1039
- }, {
1040
- name: 'bundleAccount';
1041
- writable: true;
1042
- }, {
1043
- name: 'bundleTempData';
1044
- writable: true;
1045
- pda: {
1046
- seeds: [{
1047
- kind: 'const';
1048
- value: [66, 85, 78, 68, 76, 69, 95, 84, 69, 77, 80, 95, 68, 65, 84, 65];
1049
- }, {
1050
- kind: 'account';
1051
- path: 'bundleAccount';
1052
- }];
1053
- };
1054
- }, {
1055
- name: 'oracleData';
1056
- writable: true;
1057
- pda: {
1058
- seeds: [{
1059
- kind: 'const';
1060
- value: [79, 82, 65, 67, 76, 69];
1061
- }, {
1062
- kind: 'account';
1063
- path: 'bundleAccount';
1064
- }];
1065
- };
1066
- }, {
1067
- name: 'pendingBundleAssetAuthority';
1068
- writable: true;
1069
- pda: {
1070
- seeds: [{
1071
- kind: 'const';
1072
- value: [80, 69, 78, 68, 73, 78, 71, 95, 66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
1073
- }, {
1074
- kind: 'account';
1075
- path: 'bundleAccount';
1076
- }];
1077
- };
1078
- }, {
1079
- name: 'bundleAssetAuthority';
1080
- writable: true;
1081
- pda: {
1082
- seeds: [{
1083
- kind: 'const';
1084
- value: [66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
1085
- }, {
1086
- kind: 'account';
1087
- path: 'bundleAccount';
1088
- }];
1089
- };
1090
- }, {
1091
- name: 'tokenProgram';
1092
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
1093
- }, {
1094
- name: 'systemProgram';
1095
- address: '11111111111111111111111111111111';
1096
- }];
1097
- args: [];
1098
- }, {
1099
- name: 'processSwitch';
1100
- discriminator: [186, 170, 0, 66, 104, 81, 57, 195];
1101
- accounts: [{
1102
- name: 'keeper';
1103
- writable: true;
1104
- signer: true;
1105
- }, {
1106
- name: 'userBundleAccountOwner';
1107
- }, {
1108
- name: 'userTokenAccount';
1109
- writable: true;
1110
- }, {
1111
- name: 'assetAddress';
1112
- writable: true;
1113
- }, {
1114
- name: 'sourceBundleAssetAccount';
1115
- writable: true;
1116
- pda: {
1117
- seeds: [{
1118
- kind: 'account';
1119
- path: 'sourceBundleAssetAuthority';
1120
- }, {
1121
- kind: 'const';
1122
- value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
1123
- }, {
1124
- kind: 'account';
1125
- path: 'assetAddress';
1126
- }];
1127
- program: {
1128
- kind: 'const';
1129
- value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
1130
- };
1131
- };
1132
- }, {
1133
- name: 'sourceUserBundleAccount';
1134
- writable: true;
1135
- pda: {
1136
- seeds: [{
1137
- kind: 'const';
1138
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
1139
- }, {
1140
- kind: 'account';
1141
- path: 'userBundleAccountOwner';
1142
- }, {
1143
- kind: 'account';
1144
- path: 'sourceBundleAccount';
1145
- }];
1146
- };
1147
- }, {
1148
- name: 'sourceTreasuryAccount';
1149
- writable: true;
1150
- }, {
1151
- name: 'sourceBundleAssetAuthority';
1152
- writable: true;
1153
- pda: {
1154
- seeds: [{
1155
- kind: 'const';
1156
- value: [66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
1157
- }, {
1158
- kind: 'account';
1159
- path: 'sourceBundleAccount';
1160
- }];
1161
- };
1162
- }, {
1163
- name: 'sourceBundleAccount';
1164
- writable: true;
1165
- }, {
1166
- name: 'sourceBundleTempData';
1167
- writable: true;
1168
- pda: {
1169
- seeds: [{
1170
- kind: 'const';
1171
- value: [66, 85, 78, 68, 76, 69, 95, 84, 69, 77, 80, 95, 68, 65, 84, 65];
1172
- }, {
1173
- kind: 'account';
1174
- path: 'sourceBundleAccount';
1175
- }];
1176
- };
1177
- }, {
1178
- name: 'sourceOracleData';
1179
- writable: true;
1180
- pda: {
1181
- seeds: [{
1182
- kind: 'const';
1183
- value: [79, 82, 65, 67, 76, 69];
1184
- }, {
1185
- kind: 'account';
1186
- path: 'sourceBundleAccount';
1187
- }];
1188
- };
1189
- }, {
1190
- name: 'targetBundleAccount';
1191
- }, {
1192
- name: 'targetUserBundleAccount';
1193
- writable: true;
1194
- pda: {
1195
- seeds: [{
1196
- kind: 'const';
1197
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
1198
- }, {
1199
- kind: 'account';
1200
- path: 'userBundleAccountOwner';
1201
- }, {
1202
- kind: 'account';
1203
- path: 'targetBundleAccount';
1204
- }];
1205
- };
1206
- }, {
1207
- name: 'targetBundleTempData';
1208
- writable: true;
1209
- pda: {
1210
- seeds: [{
1211
- kind: 'const';
1212
- value: [66, 85, 78, 68, 76, 69, 95, 84, 69, 77, 80, 95, 68, 65, 84, 65];
1213
- }, {
1214
- kind: 'account';
1215
- path: 'targetBundleAccount';
1216
- }];
1217
- };
1218
- }, {
1219
- name: 'targetPendingDepositTokenAccount';
1220
- writable: true;
1221
- pda: {
1222
- seeds: [{
1223
- kind: 'account';
1224
- path: 'targetPendingBundleAssetAuthority';
1225
- }, {
1226
- kind: 'const';
1227
- value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
1228
- }, {
1229
- kind: 'account';
1230
- path: 'assetAddress';
1231
- }];
1232
- program: {
1233
- kind: 'const';
1234
- value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
1235
- };
1236
- };
1237
- }, {
1238
- name: 'targetPendingBundleAssetAuthority';
1239
- pda: {
1240
- seeds: [{
1241
- kind: 'const';
1242
- value: [80, 69, 78, 68, 73, 78, 71, 95, 66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
1243
- }, {
1244
- kind: 'account';
1245
- path: 'targetBundleAccount';
1246
- }];
1247
- };
1248
- }, {
1249
- name: 'targetOracleData';
1250
- pda: {
1251
- seeds: [{
1252
- kind: 'const';
1253
- value: [79, 82, 65, 67, 76, 69];
1254
- }, {
1255
- kind: 'account';
1256
- path: 'targetBundleAccount';
1257
- }];
1258
- };
1259
- }, {
1260
- name: 'targetTreasuryAccount';
1261
- writable: true;
1262
- }, {
1263
- name: 'tokenProgram';
1264
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
1265
- }, {
1266
- name: 'systemProgram';
1267
- address: '11111111111111111111111111111111';
1268
- }];
1269
- args: [];
1270
- }, {
1271
- name: 'processWithdrawal';
1272
- discriminator: [51, 97, 236, 17, 37, 33, 196, 64];
1273
- accounts: [{
1274
- name: 'keeper';
1275
- writable: true;
1276
- signer: true;
1277
- }, {
1278
- name: 'userBundleAccountOwner';
1279
- }, {
1280
- name: 'userTokenAccount';
1281
- writable: true;
1282
- }, {
1283
- name: 'assetAddress';
1284
- writable: true;
1285
- }, {
1286
- name: 'bundleAssetAccount';
1287
- writable: true;
1288
- pda: {
1289
- seeds: [{
1290
- kind: 'account';
1291
- path: 'bundleAssetAuthority';
1292
- }, {
1293
- kind: 'const';
1294
- value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
1295
- }, {
1296
- kind: 'account';
1297
- path: 'assetAddress';
1298
- }];
1299
- program: {
1300
- kind: 'const';
1301
- value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
1302
- };
1303
- };
1304
- }, {
1305
- name: 'pendingBundleAssetAuthority';
1306
- writable: true;
1307
- pda: {
1308
- seeds: [{
1309
- kind: 'const';
1310
- value: [80, 69, 78, 68, 73, 78, 71, 95, 66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
1311
- }, {
1312
- kind: 'account';
1313
- path: 'bundleAccount';
1314
- }];
1315
- };
1316
- }, {
1317
- name: 'userBundleAccount';
1318
- writable: true;
1319
- pda: {
1320
- seeds: [{
1321
- kind: 'const';
1322
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
1323
- }, {
1324
- kind: 'account';
1325
- path: 'userBundleAccountOwner';
1326
- }, {
1327
- kind: 'account';
1328
- path: 'bundleAccount';
1329
- }];
1330
- };
1331
- }, {
1332
- name: 'treasuryAccount';
1333
- writable: true;
1334
- }, {
1335
- name: 'bundleAssetAuthority';
1336
- writable: true;
1337
- pda: {
1338
- seeds: [{
1339
- kind: 'const';
1340
- value: [66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
1341
- }, {
1342
- kind: 'account';
1343
- path: 'bundleAccount';
1344
- }];
1345
- };
1346
- }, {
1347
- name: 'bundleAccount';
1348
- writable: true;
1349
- }, {
1350
- name: 'bundleTempData';
1351
- writable: true;
1352
- pda: {
1353
- seeds: [{
1354
- kind: 'const';
1355
- value: [66, 85, 78, 68, 76, 69, 95, 84, 69, 77, 80, 95, 68, 65, 84, 65];
1356
- }, {
1357
- kind: 'account';
1358
- path: 'bundleAccount';
1359
- }];
1360
- };
1361
- }, {
1362
- name: 'oracleData';
1363
- writable: true;
1364
- pda: {
1365
- seeds: [{
1366
- kind: 'const';
1367
- value: [79, 82, 65, 67, 76, 69];
1368
- }, {
1369
- kind: 'account';
1370
- path: 'bundleAccount';
1371
- }];
1372
- };
1373
- }, {
1374
- name: 'tokenProgram';
1375
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
1376
- }, {
1377
- name: 'systemProgram';
1378
- address: '11111111111111111111111111111111';
1379
- }];
1380
- args: [];
1381
- }, {
1382
- name: 'refundDeposit';
1383
- discriminator: [19, 19, 78, 50, 187, 10, 162, 229];
1384
- accounts: [{
1385
- name: 'keeper';
1386
- writable: true;
1387
- signer: true;
1388
- }, {
1389
- name: 'userBundleAccount';
1390
- writable: true;
1391
- pda: {
1392
- seeds: [{
1393
- kind: 'const';
1394
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
1395
- }, {
1396
- kind: 'account';
1397
- path: 'userBundleAccountOwner';
1398
- }, {
1399
- kind: 'account';
1400
- path: 'bundleAccount';
1401
- }];
1402
- };
1403
- }, {
1404
- name: 'userBundleAccountOwner';
1405
- docs: ['the owner of the pending request (for event purposes).'];
1406
- }, {
1407
- name: 'userTokenAccount';
1408
- writable: true;
1409
- }, {
1410
- name: 'assetAddress';
1411
- writable: true;
1412
- }, {
1413
- name: 'bundleAssetAccount';
1414
- writable: true;
1415
- pda: {
1416
- seeds: [{
1417
- kind: 'account';
1418
- path: 'bundleAssetAuthority';
1419
- }, {
1420
- kind: 'const';
1421
- value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
1422
- }, {
1423
- kind: 'account';
1424
- path: 'assetAddress';
1425
- }];
1426
- program: {
1427
- kind: 'const';
1428
- value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
1429
- };
1430
- };
1431
- }, {
1432
- name: 'bundleAssetAuthority';
1433
- writable: true;
1434
- pda: {
1435
- seeds: [{
1436
- kind: 'const';
1437
- value: [66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
1438
- }, {
1439
- kind: 'account';
1440
- path: 'bundleAccount';
1441
- }];
1442
- };
1443
- }, {
1444
- name: 'bundleAccount';
1445
- writable: true;
1446
- }, {
1447
- name: 'bundleTempData';
1448
- writable: true;
1449
- pda: {
1450
- seeds: [{
1451
- kind: 'const';
1452
- value: [66, 85, 78, 68, 76, 69, 95, 84, 69, 77, 80, 95, 68, 65, 84, 65];
1453
- }, {
1454
- kind: 'account';
1455
- path: 'bundleAccount';
1456
- }];
1457
- };
1458
- }, {
1459
- name: 'tokenProgram';
1460
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
1461
- }, {
1462
- name: 'systemProgram';
1463
- address: '11111111111111111111111111111111';
1464
- }];
1465
- args: [];
1466
- }, {
1467
- name: 'removeStrategy';
1468
- discriminator: [185, 238, 33, 91, 134, 210, 97, 26];
1469
- accounts: [{
1470
- name: 'manager';
1471
- writable: true;
1472
- signer: true;
1473
- }, {
1474
- name: 'strategyAccount';
1475
- writable: true;
1476
- pda: {
1477
- seeds: [{
1478
- kind: 'const';
1479
- value: [83, 84, 82, 65, 84, 69, 71, 89];
1480
- }, {
1481
- kind: 'account';
1482
- path: 'receiverAddress';
1483
- }, {
1484
- kind: 'account';
1485
- path: 'bundleAccount';
1486
- }];
1487
- };
1488
- }, {
1489
- name: 'bundleAccount';
1490
- writable: true;
1491
- }, {
1492
- name: 'receiverAddress';
1493
- writable: true;
1494
- }, {
1495
- name: 'systemProgram';
1496
- address: '11111111111111111111111111111111';
1497
- }];
1498
- args: [];
1499
- }, {
1500
- name: 'requestBundleSwitch';
1501
- discriminator: [66, 9, 104, 111, 227, 251, 51, 176];
1502
- accounts: [{
1503
- name: 'withdrawalRequest';
1504
- accounts: [{
1505
- name: 'user';
1506
- writable: true;
1507
- signer: true;
1508
- }, {
1509
- name: 'userBundleAccount';
1510
- writable: true;
1511
- pda: {
1512
- seeds: [{
1513
- kind: 'const';
1514
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
1515
- }, {
1516
- kind: 'account';
1517
- path: 'user';
1518
- }, {
1519
- kind: 'account';
1520
- path: 'bundleAccount';
1521
- }];
1522
- };
1523
- }, {
1524
- name: 'bundleAccount';
1525
- writable: true;
1526
- }, {
1527
- name: 'oracleData';
1528
- writable: true;
1529
- pda: {
1530
- seeds: [{
1531
- kind: 'const';
1532
- value: [79, 82, 65, 67, 76, 69];
1533
- }, {
1534
- kind: 'account';
1535
- path: 'bundleAccount';
1536
- }];
1537
- };
1538
- }, {
1539
- name: 'bundleTempData';
1540
- writable: true;
1541
- pda: {
1542
- seeds: [{
1543
- kind: 'const';
1544
- value: [66, 85, 78, 68, 76, 69, 95, 84, 69, 77, 80, 95, 68, 65, 84, 65];
1545
- }, {
1546
- kind: 'account';
1547
- path: 'bundleAccount';
1548
- }];
1549
- };
1550
- }, {
1551
- name: 'tokenProgram';
1552
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
1553
- }, {
1554
- name: 'systemProgram';
1555
- address: '11111111111111111111111111111111';
1556
- }, {
1557
- name: 'rent';
1558
- address: 'SysvarRent111111111111111111111111111111111';
1559
- }];
1560
- }, {
1561
- name: 'targetBundleAccount';
1562
- }, {
1563
- name: 'targetUserBundleAccount';
1564
- pda: {
1565
- seeds: [{
1566
- kind: 'const';
1567
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
1568
- }, {
1569
- kind: 'account';
1570
- path: 'withdrawal_request.user';
1571
- account: 'requestWithdrawal';
1572
- }, {
1573
- kind: 'account';
1574
- path: 'targetBundleAccount';
1575
- }];
1576
- };
1577
- }];
1578
- args: [{
1579
- name: 'sharesAmount';
1580
- type: 'u128';
1581
- }];
1582
- }, {
1583
- name: 'requestDeposit';
1584
- discriminator: [243, 202, 197, 215, 135, 97, 213, 109];
1585
- accounts: [{
1586
- name: 'user';
1587
- writable: true;
1588
- signer: true;
1589
- }, {
1590
- name: 'userTokenAccount';
1591
- docs: ['user token account (source of funds)'];
1592
- writable: true;
1593
- }, {
1594
- name: 'pendingDepositTokenAccount';
1595
- writable: true;
1596
- pda: {
1597
- seeds: [{
1598
- kind: 'account';
1599
- path: 'pendingBundleAssetAuthority';
1600
- }, {
1601
- kind: 'const';
1602
- value: [6, 221, 246, 225, 215, 101, 161, 147, 217, 203, 225, 70, 206, 235, 121, 172, 28, 180, 133, 237, 95, 91, 55, 145, 58, 140, 245, 133, 126, 255, 0, 169];
1603
- }, {
1604
- kind: 'account';
1605
- path: 'assetAddress';
1606
- }];
1607
- program: {
1608
- kind: 'const';
1609
- value: [140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142, 13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216, 219, 233, 248, 89];
1610
- };
1611
- };
1612
- }, {
1613
- name: 'treasuryAccount';
1614
- writable: true;
1615
- }, {
1616
- name: 'userBundleAccount';
1617
- writable: true;
1618
- pda: {
1619
- seeds: [{
1620
- kind: 'const';
1621
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
1622
- }, {
1623
- kind: 'account';
1624
- path: 'user';
1625
- }, {
1626
- kind: 'account';
1627
- path: 'bundleAccount';
1628
- }];
1629
- };
1630
- }, {
1631
- name: 'assetAddress';
1632
- writable: true;
1633
- }, {
1634
- name: 'oracleData';
1635
- writable: true;
1636
- pda: {
1637
- seeds: [{
1638
- kind: 'const';
1639
- value: [79, 82, 65, 67, 76, 69];
1640
- }, {
1641
- kind: 'account';
1642
- path: 'bundleAccount';
1643
- }];
1644
- };
1645
- }, {
1646
- name: 'bundleTempData';
1647
- writable: true;
1648
- pda: {
1649
- seeds: [{
1650
- kind: 'const';
1651
- value: [66, 85, 78, 68, 76, 69, 95, 84, 69, 77, 80, 95, 68, 65, 84, 65];
1652
- }, {
1653
- kind: 'account';
1654
- path: 'bundleAccount';
1655
- }];
1656
- };
1657
- }, {
1658
- name: 'bundleAccount';
1659
- writable: true;
1660
- }, {
1661
- name: 'pendingBundleAssetAuthority';
1662
- writable: true;
1663
- pda: {
1664
- seeds: [{
1665
- kind: 'const';
1666
- value: [80, 69, 78, 68, 73, 78, 71, 95, 66, 85, 78, 68, 76, 69, 95, 65, 83, 83, 69, 84, 95, 65, 85, 84, 72, 79, 82, 73, 84, 89];
1667
- }, {
1668
- kind: 'account';
1669
- path: 'bundleAccount';
1670
- }];
1671
- };
1672
- }, {
1673
- name: 'tokenProgram';
1674
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
1675
- }, {
1676
- name: 'systemProgram';
1677
- address: '11111111111111111111111111111111';
1678
- }];
1679
- args: [{
1680
- name: 'amount';
1681
- type: 'u64';
1682
- }];
1683
- }, {
1684
- name: 'requestWithdrawal';
1685
- discriminator: [251, 85, 121, 205, 56, 201, 12, 177];
1686
- accounts: [{
1687
- name: 'user';
1688
- writable: true;
1689
- signer: true;
1690
- }, {
1691
- name: 'userBundleAccount';
1692
- writable: true;
1693
- pda: {
1694
- seeds: [{
1695
- kind: 'const';
1696
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
1697
- }, {
1698
- kind: 'account';
1699
- path: 'user';
1700
- }, {
1701
- kind: 'account';
1702
- path: 'bundleAccount';
1703
- }];
1704
- };
1705
- }, {
1706
- name: 'bundleAccount';
1707
- writable: true;
1708
- }, {
1709
- name: 'oracleData';
1710
- writable: true;
1711
- pda: {
1712
- seeds: [{
1713
- kind: 'const';
1714
- value: [79, 82, 65, 67, 76, 69];
1715
- }, {
1716
- kind: 'account';
1717
- path: 'bundleAccount';
1718
- }];
1719
- };
1720
- }, {
1721
- name: 'bundleTempData';
1722
- writable: true;
1723
- pda: {
1724
- seeds: [{
1725
- kind: 'const';
1726
- value: [66, 85, 78, 68, 76, 69, 95, 84, 69, 77, 80, 95, 68, 65, 84, 65];
1727
- }, {
1728
- kind: 'account';
1729
- path: 'bundleAccount';
1730
- }];
1731
- };
1732
- }, {
1733
- name: 'tokenProgram';
1734
- address: 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA';
1735
- }, {
1736
- name: 'systemProgram';
1737
- address: '11111111111111111111111111111111';
1738
- }, {
1739
- name: 'rent';
1740
- address: 'SysvarRent111111111111111111111111111111111';
1741
- }];
1742
- args: [{
1743
- name: 'sharesAmount';
1744
- type: 'u128';
1745
- }];
1746
- }, {
1747
- name: 'setBundleCreator';
1748
- discriminator: [190, 144, 93, 89, 14, 138, 195, 166];
1749
- accounts: [{
1750
- name: 'admin';
1751
- writable: true;
1752
- signer: true;
1753
- }, {
1754
- name: 'bundleMasterAccount';
1755
- pda: {
1756
- seeds: [{
1757
- kind: 'const';
1758
- value: [66, 85, 78, 68, 76, 69, 95, 77, 65, 83, 84, 69, 82];
1759
- }];
1760
- };
1761
- }, {
1762
- name: 'creator';
1763
- docs: ['CHECK safe as only the pubkey is read'];
1764
- }, {
1765
- name: 'bundleCreatorAccount';
1766
- writable: true;
1767
- pda: {
1768
- seeds: [{
1769
- kind: 'const';
1770
- value: [66, 85, 78, 68, 76, 69, 95, 67, 82, 69, 65, 84, 79, 82];
1771
- }, {
1772
- kind: 'account';
1773
- path: 'creator';
1774
- }];
1775
- };
1776
- }, {
1777
- name: 'systemProgram';
1778
- address: '11111111111111111111111111111111';
1779
- }];
1780
- args: [{
1781
- name: 'allowed';
1782
- type: 'bool';
1783
- }];
1784
- }, {
1785
- name: 'setDelays';
1786
- discriminator: [18, 56, 143, 125, 147, 15, 199, 108];
1787
- accounts: [{
1788
- name: 'manager';
1789
- writable: true;
1790
- signer: true;
1791
- }, {
1792
- name: 'bundleAccount';
1793
- writable: true;
1794
- }];
1795
- args: [{
1796
- name: 'withdrawalDelay';
1797
- type: 'u64';
1798
- }, {
1799
- name: 'withdrawalTMin';
1800
- type: 'i64';
1801
- }, {
1802
- name: 'withdrawalTMax';
1803
- type: 'i64';
1804
- }, {
1805
- name: 'withdrawalCurve';
1806
- type: 'f32';
1807
- }];
1808
- }, {
1809
- name: 'setFees';
1810
- discriminator: [137, 178, 49, 58, 0, 245, 242, 190];
1811
- accounts: [{
1812
- name: 'manager';
1813
- writable: true;
1814
- signer: true;
1815
- }, {
1816
- name: 'bundleAccount';
1817
- writable: true;
1818
- }];
1819
- args: [{
1820
- name: 'treasury';
1821
- type: 'pubkey';
1822
- }, {
1823
- name: 'depositFee';
1824
- type: 'u32';
1825
- }, {
1826
- name: 'withdrawalFee';
1827
- type: 'u32';
1828
- }, {
1829
- name: 'performanceFee';
1830
- type: 'u32';
1831
- }, {
1832
- name: 'managementFeeBps';
1833
- type: 'u32';
1834
- }];
1835
- }, {
1836
- name: 'setKeeper';
1837
- discriminator: [102, 94, 23, 78, 157, 222, 243, 214];
1838
- accounts: [{
1839
- name: 'manager';
1840
- writable: true;
1841
- signer: true;
1842
- }, {
1843
- name: 'bundleAccount';
1844
- writable: true;
1845
- }];
1846
- args: [{
1847
- name: 'newkeeper';
1848
- type: 'pubkey';
1849
- }];
1850
- }, {
1851
- name: 'setMaxDepositAmount';
1852
- discriminator: [29, 66, 217, 12, 80, 248, 214, 9];
1853
- accounts: [{
1854
- name: 'manager';
1855
- writable: true;
1856
- signer: true;
1857
- }, {
1858
- name: 'bundleAccount';
1859
- writable: true;
1860
- }];
1861
- args: [{
1862
- name: 'maxDepositAmount';
1863
- type: 'u64';
1864
- }];
1865
- }, {
1866
- name: 'setMinDepositAmount';
1867
- discriminator: [224, 153, 215, 211, 233, 14, 124, 128];
1868
- accounts: [{
1869
- name: 'manager';
1870
- writable: true;
1871
- signer: true;
1872
- }, {
1873
- name: 'bundleAccount';
1874
- writable: true;
1875
- }];
1876
- args: [{
1877
- name: 'minDepositAmount';
1878
- type: 'u64';
1879
- }];
1880
- }, {
1881
- name: 'setOracleBuffer';
1882
- discriminator: [7, 196, 14, 82, 110, 244, 46, 33];
1883
- accounts: [{
1884
- name: 'manager';
1885
- writable: true;
1886
- signer: true;
1887
- }, {
1888
- name: 'bundleAccount';
1889
- writable: true;
1890
- }];
1891
- args: [{
1892
- name: 'oracleBuffer';
1893
- type: 'u64';
1894
- }];
1895
- }, {
1896
- name: 'setOracleMaxAge';
1897
- discriminator: [75, 127, 254, 84, 122, 23, 122, 82];
1898
- accounts: [{
1899
- name: 'manager';
1900
- writable: true;
1901
- signer: true;
1902
- }, {
1903
- name: 'bundleAccount';
1904
- writable: true;
1905
- }];
1906
- args: [{
1907
- name: 'oracleMaxAge';
1908
- type: 'i64';
1909
- }];
1910
- }, {
1911
- name: 'setOracleUpdateTimeLimit';
1912
- discriminator: [114, 2, 35, 146, 19, 99, 67, 202];
1913
- accounts: [{
1914
- name: 'manager';
1915
- writable: true;
1916
- signer: true;
1917
- }, {
1918
- name: 'bundleAccount';
1919
- writable: true;
1920
- }];
1921
- args: [{
1922
- name: 'oracleUpdateTimeLimit';
1923
- type: 'i64';
1924
- }];
1925
- }, {
1926
- name: 'setUserFeeOverride';
1927
- discriminator: [207, 40, 210, 198, 66, 33, 153, 209];
1928
- accounts: [{
1929
- name: 'manager';
1930
- writable: true;
1931
- signer: true;
1932
- }, {
1933
- name: 'userBundleAccountOwner';
1934
- }, {
1935
- name: 'userBundleAccount';
1936
- writable: true;
1937
- pda: {
1938
- seeds: [{
1939
- kind: 'const';
1940
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
1941
- }, {
1942
- kind: 'account';
1943
- path: 'userBundleAccountOwner';
1944
- }, {
1945
- kind: 'account';
1946
- path: 'bundleAccount';
1947
- }];
1948
- };
1949
- }, {
1950
- name: 'bundleAccount';
1951
- }];
1952
- args: [{
1953
- name: 'overrideMask';
1954
- type: 'u8';
1955
- }, {
1956
- name: 'customDepositFeeBps';
1957
- type: 'u32';
1958
- }, {
1959
- name: 'customWithdrawalFeeBps';
1960
- type: 'u32';
1961
- }, {
1962
- name: 'customPerformanceFeeBps';
1963
- type: 'u32';
1964
- }, {
1965
- name: 'customManagementFeeBps';
1966
- type: 'u32';
1967
- }];
1968
- }, {
1969
- name: 'setUserWithdrawalTimingOverride';
1970
- discriminator: [21, 31, 116, 121, 140, 237, 174, 244];
1971
- accounts: [{
1972
- name: 'manager';
1973
- writable: true;
1974
- signer: true;
1975
- }, {
1976
- name: 'userBundleAccountOwner';
1977
- }, {
1978
- name: 'userBundleAccount';
1979
- writable: true;
1980
- pda: {
1981
- seeds: [{
1982
- kind: 'const';
1983
- value: [85, 83, 69, 82, 95, 66, 85, 78, 68, 76, 69];
1984
- }, {
1985
- kind: 'account';
1986
- path: 'userBundleAccountOwner';
1987
- }, {
1988
- kind: 'account';
1989
- path: 'bundleAccount';
1990
- }];
1991
- };
1992
- }, {
1993
- name: 'bundleAccount';
1994
- }];
1995
- args: [{
1996
- name: 'overrideMask';
1997
- type: 'u8';
1998
- }, {
1999
- name: 'customWithdrawalDelay';
2000
- type: 'u64';
2001
- }, {
2002
- name: 'customWithdrawalTMin';
2003
- type: 'i64';
2004
- }, {
2005
- name: 'customWithdrawalTMax';
2006
- type: 'i64';
2007
- }, {
2008
- name: 'customWithdrawalCurve';
2009
- type: 'f32';
2010
- }];
2011
- }, {
2012
- name: 'setWithdrawalRedemptionSchedule';
2013
- discriminator: [134, 108, 237, 103, 185, 13, 177, 105];
2014
- accounts: [{
2015
- name: 'manager';
2016
- writable: true;
2017
- signer: true;
2018
- }, {
2019
- name: 'bundleAccount';
2020
- writable: true;
2021
- }];
2022
- args: [{
2023
- name: 'withdrawalRedemptionRequestCutoffTs';
2024
- type: 'i64';
2025
- }, {
2026
- name: 'withdrawalRedemptionUnlockCurrentCycleTs';
2027
- type: 'i64';
2028
- }, {
2029
- name: 'withdrawalRedemptionUnlockNextCycleTs';
2030
- type: 'i64';
2031
- }];
2032
- }, {
2033
- name: 'startDistribution';
2034
- discriminator: [118, 230, 215, 75, 83, 2, 163, 35];
2035
- accounts: [{
2036
- name: 'keeper';
2037
- writable: true;
2038
- signer: true;
2039
- }, {
2040
- name: 'bundleAccount';
2041
- writable: true;
2042
- }, {
2043
- name: 'bundleTempData';
2044
- writable: true;
2045
- pda: {
2046
- seeds: [{
2047
- kind: 'const';
2048
- value: [66, 85, 78, 68, 76, 69, 95, 84, 69, 77, 80, 95, 68, 65, 84, 65];
2049
- }, {
2050
- kind: 'account';
2051
- path: 'bundleAccount';
2052
- }];
2053
- };
2054
- }, {
2055
- name: 'oracleData';
2056
- writable: true;
2057
- pda: {
2058
- seeds: [{
2059
- kind: 'const';
2060
- value: [79, 82, 65, 67, 76, 69];
2061
- }, {
2062
- kind: 'account';
2063
- path: 'bundleAccount';
2064
- }];
2065
- };
2066
- }];
2067
- args: [];
2068
- }, {
2069
- name: 'updateAllocations';
2070
- discriminator: [229, 242, 146, 124, 44, 15, 130, 95];
2071
- accounts: [{
2072
- name: 'manager';
2073
- writable: true;
2074
- signer: true;
2075
- }, {
2076
- name: 'receiverAddress';
2077
- writable: true;
2078
- }, {
2079
- name: 'bundleAccount';
2080
- writable: true;
2081
- }, {
2082
- name: 'strategyAccount';
2083
- writable: true;
2084
- pda: {
2085
- seeds: [{
2086
- kind: 'const';
2087
- value: [83, 84, 82, 65, 84, 69, 71, 89];
2088
- }, {
2089
- kind: 'account';
2090
- path: 'receiverAddress';
2091
- }, {
2092
- kind: 'account';
2093
- path: 'bundleAccount';
2094
- }];
2095
- };
2096
- }];
2097
- args: [{
2098
- name: 'newAllocationBps';
2099
- type: 'u32';
2100
- }];
2101
- }, {
2102
- name: 'updateOracle';
2103
- discriminator: [112, 41, 209, 18, 248, 226, 252, 188];
2104
- accounts: [{
2105
- name: 'keeper';
2106
- writable: true;
2107
- signer: true;
2108
- }, {
2109
- name: 'bundleAccount';
2110
- writable: true;
2111
- }, {
2112
- name: 'bundleTempData';
2113
- writable: true;
2114
- pda: {
2115
- seeds: [{
2116
- kind: 'const';
2117
- value: [66, 85, 78, 68, 76, 69, 95, 84, 69, 77, 80, 95, 68, 65, 84, 65];
2118
- }, {
2119
- kind: 'account';
2120
- path: 'bundleAccount';
2121
- }];
2122
- };
2123
- }, {
2124
- name: 'oracleData';
2125
- writable: true;
2126
- pda: {
2127
- seeds: [{
2128
- kind: 'const';
2129
- value: [79, 82, 65, 67, 76, 69];
2130
- }, {
2131
- kind: 'account';
2132
- path: 'bundleAccount';
2133
- }];
2134
- };
2135
- }];
2136
- args: [{
2137
- name: 'newEquity';
2138
- type: 'u64';
2139
- }];
2140
- }];
2141
- accounts: [{
2142
- name: 'bundle';
2143
- discriminator: [15, 82, 167, 230, 37, 214, 82, 80];
2144
- }, {
2145
- name: 'bundleCreatorAccount';
2146
- discriminator: [210, 168, 93, 196, 184, 35, 210, 101];
2147
- }, {
2148
- name: 'bundleMasterAccount';
2149
- discriminator: [252, 50, 148, 252, 178, 231, 4, 149];
2150
- }, {
2151
- name: 'bundleTempData';
2152
- discriminator: [3, 137, 171, 33, 191, 15, 54, 4];
2153
- }, {
2154
- name: 'oracleData';
2155
- discriminator: [26, 131, 25, 110, 6, 141, 10, 37];
2156
- }, {
2157
- name: 'strategy';
2158
- discriminator: [174, 110, 39, 119, 82, 106, 169, 102];
2159
- }, {
2160
- name: 'userBundleAccount';
2161
- discriminator: [32, 181, 106, 26, 67, 130, 185, 241];
2162
- }];
2163
- events: [{
2164
- name: 'allocated';
2165
- discriminator: [146, 11, 194, 76, 4, 220, 226, 43];
2166
- }, {
2167
- name: 'allocationsUpdated';
2168
- discriminator: [97, 171, 21, 101, 243, 48, 182, 32];
2169
- }, {
2170
- name: 'assignedProfitShare';
2171
- discriminator: [13, 208, 181, 192, 192, 238, 120, 197];
2172
- }, {
2173
- name: 'authorizedReceiverAdded';
2174
- discriminator: [185, 19, 240, 219, 194, 25, 19, 234];
2175
- }, {
2176
- name: 'authorizedReceiverRemoved';
2177
- discriminator: [69, 73, 150, 51, 198, 98, 43, 0];
2178
- }, {
2179
- name: 'bundleCreatorAccountChanged';
2180
- discriminator: [82, 51, 169, 242, 101, 205, 39, 52];
2181
- }, {
2182
- name: 'bundleDepositorInitialized';
2183
- discriminator: [136, 231, 96, 201, 187, 244, 121, 42];
2184
- }, {
2185
- name: 'bundleMasterAccountInitialized';
2186
- discriminator: [238, 211, 137, 135, 255, 239, 90, 91];
2187
- }, {
2188
- name: 'bundleMasterAdminChanged';
2189
- discriminator: [220, 192, 90, 93, 19, 132, 73, 208];
2190
- }, {
2191
- name: 'bundleSwitchCompleted';
2192
- discriminator: [189, 237, 164, 90, 103, 174, 64, 73];
2193
- }, {
2194
- name: 'bundleSwitchFallbackToWallet';
2195
- discriminator: [214, 242, 67, 218, 119, 180, 28, 139];
2196
- }, {
2197
- name: 'bundleSwitchRequested';
2198
- discriminator: [88, 172, 46, 180, 196, 3, 226, 44];
2199
- }, {
2200
- name: 'changedCoreParams';
2201
- discriminator: [156, 119, 46, 221, 22, 121, 186, 53];
2202
- }, {
2203
- name: 'chargedFeesToUser';
2204
- discriminator: [201, 63, 172, 93, 230, 105, 127, 255];
2205
- }, {
2206
- name: 'delaysSet';
2207
- discriminator: [241, 35, 245, 242, 188, 53, 99, 208];
2208
- }, {
2209
- name: 'depositRequested';
2210
- discriminator: [35, 33, 229, 138, 116, 238, 192, 22];
2211
- }, {
2212
- name: 'depositedToDriftVault';
2213
- discriminator: [200, 86, 135, 159, 147, 246, 123, 85];
2214
- }, {
2215
- name: 'distributedToReceivers';
2216
- discriminator: [204, 43, 29, 187, 40, 60, 126, 14];
2217
- }, {
2218
- name: 'distributionEnded';
2219
- discriminator: [21, 180, 83, 66, 101, 235, 108, 208];
2220
- }, {
2221
- name: 'distributionStarted';
2222
- discriminator: [148, 231, 87, 211, 194, 167, 104, 6];
2223
- }, {
2224
- name: 'dustSharesBurned';
2225
- discriminator: [166, 218, 110, 236, 33, 135, 162, 139];
2226
- }, {
2227
- name: 'initializedNewVaultDepositor';
2228
- discriminator: [16, 182, 169, 250, 42, 81, 202, 173];
2229
- }, {
2230
- name: 'initializedReceivers';
2231
- discriminator: [52, 175, 118, 72, 108, 236, 162, 134];
2232
- }, {
2233
- name: 'initializedVault';
2234
- discriminator: [123, 23, 51, 180, 138, 156, 172, 91];
2235
- }, {
2236
- name: 'managerWithdrawal';
2237
- discriminator: [167, 6, 24, 193, 128, 74, 94, 207];
2238
- }, {
2239
- name: 'managerWithdrawalWithSplit';
2240
- discriminator: [147, 151, 147, 137, 189, 58, 26, 122];
2241
- }, {
2242
- name: 'maxDepositAmountSet';
2243
- discriminator: [204, 243, 42, 160, 116, 144, 207, 38];
2244
- }, {
2245
- name: 'minDepositAmountSet';
2246
- discriminator: [143, 114, 126, 18, 32, 207, 22, 19];
2247
- }, {
2248
- name: 'nettingCompleted';
2249
- discriminator: [176, 162, 4, 24, 91, 47, 115, 81];
2250
- }, {
2251
- name: 'newKeeperSet';
2252
- discriminator: [33, 68, 171, 11, 43, 129, 192, 45];
2253
- }, {
2254
- name: 'newManagerSet';
2255
- discriminator: [215, 213, 93, 251, 202, 98, 253, 29];
2256
- }, {
2257
- name: 'oracleBufferSet';
2258
- discriminator: [188, 151, 124, 251, 253, 205, 187, 32];
2259
- }, {
2260
- name: 'oracleMaxAgeSet';
2261
- discriminator: [51, 17, 80, 99, 8, 112, 166, 44];
2262
- }, {
2263
- name: 'oracleUpdateTimeLimitSet';
2264
- discriminator: [196, 182, 75, 225, 80, 5, 111, 103];
2265
- }, {
2266
- name: 'oracleUpdated';
2267
- discriminator: [138, 9, 51, 219, 228, 198, 11, 147];
2268
- }, {
2269
- name: 'pausedDepositsWithdrawals';
2270
- discriminator: [131, 139, 248, 233, 29, 255, 148, 98];
2271
- }, {
2272
- name: 'redeemed';
2273
- discriminator: [14, 29, 183, 71, 31, 165, 107, 38];
2274
- }, {
2275
- name: 'refilled';
2276
- discriminator: [103, 127, 43, 0, 232, 50, 198, 85];
2277
- }, {
2278
- name: 'refundedDeposit';
2279
- discriminator: [193, 61, 203, 180, 250, 38, 151, 31];
2280
- }, {
2281
- name: 'requestedWithdrawalToDriftVault';
2282
- discriminator: [143, 146, 104, 155, 23, 243, 14, 231];
2283
- }, {
2284
- name: 'strategyAdded';
2285
- discriminator: [248, 59, 8, 90, 242, 168, 247, 204];
2286
- }, {
2287
- name: 'strategyEnabled';
2288
- discriminator: [105, 24, 77, 30, 163, 227, 107, 102];
2289
- }, {
2290
- name: 'strategyRemoved';
2291
- discriminator: [118, 162, 92, 185, 73, 29, 245, 144];
2292
- }, {
2293
- name: 'userBundleAccountClosed';
2294
- discriminator: [111, 102, 134, 54, 238, 23, 157, 183];
2295
- }, {
2296
- name: 'userFeeOverrideCleared';
2297
- discriminator: [109, 200, 134, 162, 195, 197, 177, 189];
2298
- }, {
2299
- name: 'userFeeOverrideSet';
2300
- discriminator: [194, 56, 240, 83, 158, 247, 78, 66];
2301
- }, {
2302
- name: 'userWithdrawalTimingOverrideCleared';
2303
- discriminator: [78, 111, 250, 12, 64, 54, 226, 251];
2304
- }, {
2305
- name: 'userWithdrawalTimingOverrideSet';
2306
- discriminator: [119, 165, 226, 212, 49, 249, 115, 145];
2307
- }, {
2308
- name: 'vaultNeutralFeeIncrementerSet';
2309
- discriminator: [7, 53, 169, 104, 118, 22, 134, 207];
2310
- }, {
2311
- name: 'withdrawalRedemptionScheduleSet';
2312
- discriminator: [245, 195, 40, 76, 237, 247, 150, 107];
2313
- }, {
2314
- name: 'withdrawalRequested';
2315
- discriminator: [75, 207, 21, 12, 160, 102, 150, 55];
2316
- }, {
2317
- name: 'withdrawnFromDriftVault';
2318
- discriminator: [249, 177, 58, 24, 88, 115, 105, 193];
2319
- }];
2320
- errors: [{
2321
- code: 6000;
2322
- name: 'insufficientFunds';
2323
- msg: 'Insufficient funds to process withdrawal';
2324
- }, {
2325
- code: 6001;
2326
- name: 'allocationAmountZero';
2327
- msg: 'Allocation amount must be > 0';
2328
- }, {
2329
- code: 6002;
2330
- name: 'redemptionAmountExceeded';
2331
- msg: 'Redemption exceeds bundle balance';
2332
- }, {
2333
- code: 6003;
2334
- name: 'refillAmountInvalid';
2335
- msg: 'Refill amount must be > 0';
2336
- }, {
2337
- code: 6004;
2338
- name: 'unauthorizedKeeperAction';
2339
- msg: 'Not bundle keeper';
2340
- }, {
2341
- code: 6005;
2342
- name: 'unauthorizedManagerAction';
2343
- msg: 'Not bundle manager';
2344
- }, {
2345
- code: 6006;
2346
- name: 'unauthorizedAdminAction';
2347
- msg: 'Not bundle admin';
2348
- }, {
2349
- code: 6007;
2350
- name: 'unauthorizedBundleCreator';
2351
- msg: 'Not whitelisted bundle creator';
2352
- }, {
2353
- code: 6008;
2354
- name: 'callerNotNeutralFeeIncrementer';
2355
- msg: 'Not neutral fee incrementer';
2356
- }, {
2357
- code: 6009;
2358
- name: 'amountMustBeBelowMax';
2359
- msg: 'Amount above max limit';
2360
- }, {
2361
- code: 6010;
2362
- name: 'invalidNeutralFeeIncrementer';
2363
- msg: 'Invalid fee incrementer';
2364
- }, {
2365
- code: 6011;
2366
- name: 'invalidReceiver';
2367
- msg: 'Invalid receiver address';
2368
- }, {
2369
- code: 6012;
2370
- name: 'mathError';
2371
- msg: 'Math error';
2372
- }, {
2373
- code: 6013;
2374
- name: 'invalidAllocations';
2375
- msg: 'Invalid allocations';
2376
- }, {
2377
- code: 6014;
2378
- name: 'mustBeInWhitelist';
2379
- msg: 'Not in whitelist';
2380
- }, {
2381
- code: 6015;
2382
- name: 'distributionAlreadyStarted';
2383
- msg: 'Distribution already started';
2384
- }, {
2385
- code: 6016;
2386
- name: 'distributionNotStarted';
2387
- msg: 'Distribution not started';
2388
- }, {
2389
- code: 6017;
2390
- name: 'leftToDistributeNotZero';
2391
- msg: 'Distribution amount not zero';
2392
- }, {
2393
- code: 6018;
2394
- name: 'receiverAlreadyAllocated';
2395
- msg: 'Receiver already allocated';
2396
- }, {
2397
- code: 6019;
2398
- name: 'rawTransferReceiver';
2399
- msg: 'Not a raw transfer receiver';
2400
- }, {
2401
- code: 6020;
2402
- name: 'invalidTwapPeriod';
2403
- msg: 'Invalid twap period';
2404
- }, {
2405
- code: 6021;
2406
- name: 'refillAmountExceeded';
2407
- msg: 'Refill amount exceeded';
2408
- }, {
2409
- code: 6022;
2410
- name: 'podTokenTotalSupplyZero';
2411
- msg: 'Pod token total supply is zero';
2412
- }, {
2413
- code: 6023;
2414
- name: 'allocationBpsGreaterThanGlobalAllocationBps';
2415
- msg: 'Allocation bps greater than global allocation bps';
2416
- }, {
2417
- code: 6024;
2418
- name: 'equityOutOfBufferBound';
2419
- msg: 'Equity out of buffer bound';
2420
- }, {
2421
- code: 6025;
2422
- name: 'redemptionAmountZero';
2423
- msg: 'Redemption amount must be > 0';
2424
- }, {
2425
- code: 6026;
2426
- name: 'pendingDepositExists';
2427
- msg: 'Pending deposit exists';
2428
- }, {
2429
- code: 6027;
2430
- name: 'insufficientSharesBalance';
2431
- msg: 'Insufficient Shares balance';
2432
- }, {
2433
- code: 6028;
2434
- name: 'pendingWithdrawalExists';
2435
- msg: 'Pending withdrawal exists';
2436
- }, {
2437
- code: 6029;
2438
- name: 'pendingDepositOrWithdrawalExists';
2439
- msg: 'Pending deposit or withdrawal exists';
2440
- }, {
2441
- code: 6030;
2442
- name: 'noPendingWithdrawal';
2443
- msg: 'No pending withdrawal';
2444
- }, {
2445
- code: 6031;
2446
- name: 'withdrawalAlreadyProcessed';
2447
- msg: 'Withdrawal already processed';
2448
- }, {
2449
- code: 6032;
2450
- name: 'pendingDepositAmountZero';
2451
- msg: 'Pending deposit amount is zero';
2452
- }, {
2453
- code: 6033;
2454
- name: 'insufficientBundleBalance';
2455
- msg: 'Insufficient bundle balance';
2456
- }, {
2457
- code: 6034;
2458
- name: 'noPendingTransactions';
2459
- msg: 'No pending transactions';
2460
- }, {
2461
- code: 6035;
2462
- name: 'depositsExtraInPendingsNotZero';
2463
- msg: 'Deposits extra in pendings not zero';
2464
- }, {
2465
- code: 6036;
2466
- name: 'pendingTransactionsExist';
2467
- msg: 'Pending transactions exist';
2468
- }, {
2469
- code: 6037;
2470
- name: 'managerSharesZero';
2471
- msg: 'Manager shares is zero';
2472
- }, {
2473
- code: 6038;
2474
- name: 'pausedDepositsWithdrawals';
2475
- msg: 'Paused deposits withdrawals';
2476
- }, {
2477
- code: 6039;
2478
- name: 'unpausedDepositsWithdrawals';
2479
- msg: 'Unpaused deposits withdrawals';
2480
- }, {
2481
- code: 6040;
2482
- name: 'nettingNotDone';
2483
- msg: 'Netting not done';
2484
- }, {
2485
- code: 6041;
2486
- name: 'nettingAlreadyDone';
2487
- msg: 'Netting already done';
2488
- }, {
2489
- code: 6042;
2490
- name: 'oracleNotUpdated';
2491
- msg: 'Oracle not updated';
2492
- }, {
2493
- code: 6043;
2494
- name: 'maxDepositAmountExceeded';
2495
- msg: 'Max deposit amount exceeded';
2496
- }, {
2497
- code: 6044;
2498
- name: 'totalAssetExceedNewMaxDepositAmount';
2499
- msg: 'Total asset exceed new max deposit amount';
2500
- }, {
2501
- code: 6045;
2502
- name: 'allocationBpsIsZero';
2503
- msg: 'Allocation bps is zero';
2504
- }, {
2505
- code: 6046;
2506
- name: 'depositAmountZero';
2507
- msg: 'Deposit amount is zero';
2508
- }, {
2509
- code: 6047;
2510
- name: 'invalidWithdrawalDelay';
2511
- msg: 'Invalid withdrawal delay';
2512
- }, {
2513
- code: 6048;
2514
- name: 'invalidWithdrawalCooldownPeriod';
2515
- msg: 'Invalid withdrawal cooldown period';
2516
- }, {
2517
- code: 6049;
2518
- name: 'invalidOracleBuffer';
2519
- msg: 'Invalid oracle buffer';
2520
- }, {
2521
- code: 6050;
2522
- name: 'excessivePerformanceFee';
2523
- msg: 'Excessive performance fee';
2524
- }, {
2525
- code: 6051;
2526
- name: 'excessiveManagementFee';
2527
- msg: 'Excessive management fee';
2528
- }, {
2529
- code: 6052;
2530
- name: 'excessiveDepositFee';
2531
- msg: 'Excessive deposit fee';
2532
- }, {
2533
- code: 6053;
2534
- name: 'excessiveWithdrawFee';
2535
- msg: 'Excessive withdraw fee';
2536
- }, {
2537
- code: 6054;
2538
- name: 'withdrawalDelayNotMet';
2539
- msg: 'Withdrawal delay not met';
2540
- }, {
2541
- code: 6055;
2542
- name: 'invalidAssetPrecision';
2543
- msg: 'Invalid asset precision';
2544
- }, {
2545
- code: 6056;
2546
- name: 'invalidAssetAddress';
2547
- msg: 'Invalid asset address';
2548
- }, {
2549
- code: 6057;
2550
- name: 'invalidPermissionnedDepositor';
2551
- msg: 'Invalid permissionned depositor';
2552
- }, {
2553
- code: 6058;
2554
- name: 'payerNotAuthority';
2555
- msg: 'Payer is not the authority';
2556
- }, {
2557
- code: 6059;
2558
- name: 'strategyAlreadyEnabled';
2559
- msg: 'Strategy is already enabled';
2560
- }, {
2561
- code: 6060;
2562
- name: 'strategyDisabled';
2563
- msg: 'Strategy is disabled';
2564
- }, {
2565
- code: 6061;
2566
- name: 'invalidWithdrawalAmount';
2567
- msg: 'Invalid withdrawal amount';
2568
- }, {
2569
- code: 6062;
2570
- name: 'bundleNotPermissionned';
2571
- msg: 'Not permissionned';
2572
- }, {
2573
- code: 6063;
2574
- name: 'bundleIsPermissionned';
2575
- msg: 'Bundle is permissionned, use initialize_permissioned_bundle_depositor';
2576
- }, {
2577
- code: 6064;
2578
- name: 'tooManyAllocatedReceivers';
2579
- msg: 'Too many allocated receivers';
2580
- }, {
2581
- code: 6065;
2582
- name: 'oracleUpdateTooFrequent';
2583
- msg: 'Oracle update too frequent';
2584
- }, {
2585
- code: 6066;
2586
- name: 'userBundleAccountNotEmpty';
2587
- msg: 'User bundle account not empty';
2588
- }, {
2589
- code: 6067;
2590
- name: 'minDepositAmountNotMet';
2591
- msg: 'Min deposit amount not met';
2592
- }, {
2593
- code: 6068;
2594
- name: 'invalidOracleMaxAge';
2595
- msg: 'Invalid oracle max age';
2596
- }, {
2597
- code: 6069;
2598
- name: 'invalidOracleUpdateTimeLimit';
2599
- msg: 'Invalid oracle update time limit';
2600
- }, {
2601
- code: 6070;
2602
- name: 'invalidWithdrawalRedemptionSchedule';
2603
- msg: 'Invalid withdrawal redemption schedule';
2604
- }, {
2605
- code: 6071;
2606
- name: 'invalidUserFeeConfig';
2607
- msg: 'Invalid user fee configuration';
2608
- }, {
2609
- code: 6072;
2610
- name: 'emptyUserFeeClearRequest';
2611
- msg: 'Empty user fee clear request';
2612
- }, {
2613
- code: 6073;
2614
- name: 'noUserFeeOverrideToClear';
2615
- msg: 'No user fee override to clear';
2616
- }, {
2617
- code: 6074;
2618
- name: 'invalidUserWithdrawalTimingConfig';
2619
- msg: 'Invalid user withdrawal timing configuration';
2620
- }, {
2621
- code: 6075;
2622
- name: 'emptyUserWithdrawalTimingClearRequest';
2623
- msg: 'Empty user withdrawal timing clear request';
2624
- }, {
2625
- code: 6076;
2626
- name: 'noUserWithdrawalTimingOverrideToClear';
2627
- msg: 'No user withdrawal timing override to clear';
2628
- }, {
2629
- code: 6077;
2630
- name: 'switchTargetSameAsSource';
2631
- msg: 'Switch target cannot be source bundle';
2632
- }, {
2633
- code: 6078;
2634
- name: 'switchAssetMintMismatch';
2635
- msg: 'Switch asset mint mismatch';
2636
- }, {
2637
- code: 6079;
2638
- name: 'switchAlreadyActive';
2639
- msg: 'Switch already active';
2640
- }, {
2641
- code: 6080;
2642
- name: 'noPendingSwitch';
2643
- msg: 'No pending switch';
2644
- }, {
2645
- code: 6081;
2646
- name: 'switchTargetAccountsMissing';
2647
- msg: 'Switch target accounts missing';
2648
- }, {
2649
- code: 6082;
2650
- name: 'switchTargetAccountMismatch';
2651
- msg: 'Switch target account mismatch';
2652
- }, {
2653
- code: 6083;
2654
- name: 'invalidFeeSplit';
2655
- msg: 'Invalid fee split';
2656
- }];
2657
- types: [{
2658
- name: 'allocated';
2659
- type: {
2660
- kind: 'struct';
2661
- fields: [{
2662
- name: 'from';
2663
- type: 'pubkey';
2664
- }, {
2665
- name: 'to';
2666
- type: 'pubkey';
2667
- }, {
2668
- name: 'amount';
2669
- type: 'u64';
2670
- }, {
2671
- name: 'timestamp';
2672
- type: 'i64';
2673
- }, {
2674
- name: 'bundleAccountKey';
2675
- type: 'pubkey';
2676
- }, {
2677
- name: 'netAmount';
2678
- type: 'u64';
2679
- }, {
2680
- name: 'sharePrice';
2681
- type: 'u128';
2682
- }, {
2683
- name: 'userSharesBefore';
2684
- type: 'u128';
2685
- }, {
2686
- name: 'userSharesAfter';
2687
- type: 'u128';
2688
- }, {
2689
- name: 'totalShares';
2690
- type: 'u128';
2691
- }];
2692
- };
2693
- }, {
2694
- name: 'allocationsUpdated';
2695
- type: {
2696
- kind: 'struct';
2697
- fields: [{
2698
- name: 'receiverAddress';
2699
- type: 'pubkey';
2700
- }, {
2701
- name: 'allocationBps';
2702
- type: 'u32';
2703
- }];
2704
- };
2705
- }, {
2706
- name: 'assignedProfitShare';
2707
- type: {
2708
- kind: 'struct';
2709
- fields: [{
2710
- name: 'amount';
2711
- type: 'u128';
2712
- }];
2713
- };
2714
- }, {
2715
- name: 'authorizedReceiverAdded';
2716
- type: {
2717
- kind: 'struct';
2718
- fields: [{
2719
- name: 'allowed';
2720
- type: 'bool';
2721
- }];
2722
- };
2723
- }, {
2724
- name: 'authorizedReceiverRemoved';
2725
- type: {
2726
- kind: 'struct';
2727
- fields: [{
2728
- name: 'allowed';
2729
- type: 'bool';
2730
- }];
2731
- };
2732
- }, {
2733
- name: 'bundle';
2734
- type: {
2735
- kind: 'struct';
2736
- fields: [{
2737
- name: 'name';
2738
- type: {
2739
- array: ['u8', 32];
2740
- };
2741
- }, {
2742
- name: 'manager';
2743
- type: 'pubkey';
2744
- }, {
2745
- name: 'keeper';
2746
- type: 'pubkey';
2747
- }, {
2748
- name: 'treasuryAccount';
2749
- type: 'pubkey';
2750
- }, {
2751
- name: 'allocatedReceivers';
2752
- type: {
2753
- vec: 'pubkey';
2754
- };
2755
- }, {
2756
- name: 'bundleUnderlyingBalance';
2757
- type: 'u64';
2758
- }, {
2759
- name: 'maxDepositAmount';
2760
- type: 'u64';
2761
- }, {
2762
- name: 'withdrawalDelay';
2763
- type: 'u64';
2764
- }, {
2765
- name: 'performanceFee';
2766
- type: 'u32';
2767
- }, {
2768
- name: 'managementFeeBps';
2769
- type: 'u32';
2770
- }, {
2771
- name: 'depositFee';
2772
- type: 'u32';
2773
- }, {
2774
- name: 'withdrawalFee';
2775
- type: 'u32';
2776
- }, {
2777
- name: 'managerPfeeShares';
2778
- type: 'u128';
2779
- }, {
2780
- name: 'currentAllocationBps';
2781
- type: 'u32';
2782
- }, {
2783
- name: 'oracleBuffer';
2784
- type: 'u64';
2785
- }, {
2786
- name: 'totalShares';
2787
- type: 'u128';
2788
- }, {
2789
- name: 'assetPrecision';
2790
- type: 'u64';
2791
- }, {
2792
- name: 'assetAddress';
2793
- type: 'pubkey';
2794
- }, {
2795
- name: 'assetDecimals';
2796
- type: 'u8';
2797
- }, {
2798
- name: 'withdrawalTMin';
2799
- type: 'i64';
2800
- }, {
2801
- name: 'withdrawalTMax';
2802
- type: 'i64';
2803
- }, {
2804
- name: 'withdrawalCurve';
2805
- type: 'f32';
2806
- }, {
2807
- name: 'permissionned';
2808
- type: 'bool';
2809
- }, {
2810
- name: 'managerMfeeShares';
2811
- type: 'u128';
2812
- }, {
2813
- name: 'minDepositAmount';
2814
- type: 'u64';
2815
- }, {
2816
- name: 'oracleUpdateTimeLimit';
2817
- type: 'i64';
2818
- }, {
2819
- name: 'oracleMaxAge';
2820
- type: 'i64';
2821
- }, {
2822
- name: 'withdrawalRedemptionRequestCutoffTs';
2823
- type: 'i64';
2824
- }, {
2825
- name: 'withdrawalRedemptionUnlockCurrentCycleTs';
2826
- type: 'i64';
2827
- }, {
2828
- name: 'withdrawalRedemptionUnlockNextCycleTs';
2829
- type: 'i64';
2830
- }, {
2831
- name: 'padding';
2832
- type: {
2833
- array: ['u8', 207];
2834
- };
2835
- }];
2836
- };
2837
- }, {
2838
- name: 'bundleCreatorAccount';
2839
- type: {
2840
- kind: 'struct';
2841
- fields: [{
2842
- name: 'allowed';
2843
- type: 'bool';
2844
- }, {
2845
- name: 'padding';
2846
- type: {
2847
- array: ['u8', 64];
2848
- };
2849
- }];
2850
- };
2851
- }, {
2852
- name: 'bundleCreatorAccountChanged';
2853
- type: {
2854
- kind: 'struct';
2855
- fields: [{
2856
- name: 'creator';
2857
- type: 'pubkey';
2858
- }, {
2859
- name: 'allowed';
2860
- type: 'bool';
2861
- }];
2862
- };
2863
- }, {
2864
- name: 'bundleDepositorInitialized';
2865
- type: {
2866
- kind: 'struct';
2867
- fields: [{
2868
- name: 'bundleDepositor';
2869
- type: 'pubkey';
2870
- }];
2871
- };
2872
- }, {
2873
- name: 'bundleMasterAccount';
2874
- type: {
2875
- kind: 'struct';
2876
- fields: [{
2877
- name: 'admin';
2878
- type: 'pubkey';
2879
- }, {
2880
- name: 'padding';
2881
- type: {
2882
- array: ['u8', 96];
2883
- };
2884
- }];
2885
- };
2886
- }, {
2887
- name: 'bundleMasterAccountInitialized';
2888
- type: {
2889
- kind: 'struct';
2890
- fields: [{
2891
- name: 'admin';
2892
- type: 'pubkey';
2893
- }];
2894
- };
2895
- }, {
2896
- name: 'bundleMasterAdminChanged';
2897
- type: {
2898
- kind: 'struct';
2899
- fields: [{
2900
- name: 'newAdmin';
2901
- type: 'pubkey';
2902
- }];
2903
- };
2904
- }, {
2905
- name: 'bundleSwitchCompleted';
2906
- type: {
2907
- kind: 'struct';
2908
- fields: [{
2909
- name: 'user';
2910
- type: 'pubkey';
2911
- }, {
2912
- name: 'sourceBundle';
2913
- type: 'pubkey';
2914
- }, {
2915
- name: 'targetBundle';
2916
- type: 'pubkey';
2917
- }, {
2918
- name: 'sharesRedeemed';
2919
- type: 'u128';
2920
- }, {
2921
- name: 'grossRedemption';
2922
- type: 'u64';
2923
- }, {
2924
- name: 'netToDestination';
2925
- type: 'u64';
2926
- }, {
2927
- name: 'netCreditedToDestination';
2928
- type: 'u64';
2929
- }, {
2930
- name: 'withdrawalFeeA';
2931
- type: 'u64';
2932
- }, {
2933
- name: 'depositFeeB';
2934
- type: 'u64';
2935
- }, {
2936
- name: 'sharePrice';
2937
- type: 'u128';
2938
- }, {
2939
- name: 'userSharesBefore';
2940
- type: 'u128';
2941
- }, {
2942
- name: 'userSharesAfter';
2943
- type: 'u128';
2944
- }, {
2945
- name: 'totalSharesBefore';
2946
- type: 'u128';
2947
- }, {
2948
- name: 'totalSharesAfter';
2949
- type: 'u128';
2950
- }, {
2951
- name: 'timestamp';
2952
- type: 'i64';
2953
- }];
2954
- };
2955
- }, {
2956
- name: 'bundleSwitchFallbackToWallet';
2957
- type: {
2958
- kind: 'struct';
2959
- fields: [{
2960
- name: 'user';
2961
- type: 'pubkey';
2962
- }, {
2963
- name: 'sourceBundle';
2964
- type: 'pubkey';
2965
- }, {
2966
- name: 'targetBundle';
2967
- type: 'pubkey';
2968
- }, {
2969
- name: 'sharesRedeemed';
2970
- type: 'u128';
2971
- }, {
2972
- name: 'grossRedemption';
2973
- type: 'u64';
2974
- }, {
2975
- name: 'netToWallet';
2976
- type: 'u64';
2977
- }, {
2978
- name: 'withdrawalFeeA';
2979
- type: 'u64';
2980
- }, {
2981
- name: 'reason';
2982
- type: 'u8';
2983
- }, {
2984
- name: 'timestamp';
2985
- type: 'i64';
2986
- }];
2987
- };
2988
- }, {
2989
- name: 'bundleSwitchRequested';
2990
- type: {
2991
- kind: 'struct';
2992
- fields: [{
2993
- name: 'user';
2994
- type: 'pubkey';
2995
- }, {
2996
- name: 'sourceBundle';
2997
- type: 'pubkey';
2998
- }, {
2999
- name: 'targetBundle';
3000
- type: 'pubkey';
3001
- }, {
3002
- name: 'sharesAmount';
3003
- type: 'u128';
3004
- }, {
3005
- name: 'estimatedGrossRedemption';
3006
- type: 'u64';
3007
- }, {
3008
- name: 'estimatedNetToDestination';
3009
- type: 'u64';
3010
- }, {
3011
- name: 'estimatedDestinationDepositFee';
3012
- type: 'u64';
3013
- }, {
3014
- name: 'estimatedDestinationPendingDeposit';
3015
- type: 'u64';
3016
- }, {
3017
- name: 'cooldownEndTimestamp';
3018
- type: 'i64';
3019
- }, {
3020
- name: 'timestamp';
3021
- type: 'i64';
3022
- }];
3023
- };
3024
- }, {
3025
- name: 'bundleTempData';
3026
- type: {
3027
- kind: 'struct';
3028
- fields: [{
3029
- name: 'cumulativePendingDeposits';
3030
- type: 'u64';
3031
- }, {
3032
- name: 'pendingDepositsCounter';
3033
- type: 'u64';
3034
- }, {
3035
- name: 'pendingWithdrawalsCounter';
3036
- type: 'u64';
3037
- }, {
3038
- name: 'pendingLockedWithdrawalsCounter';
3039
- type: 'u64';
3040
- }, {
3041
- name: 'lastTotalSharesMinted';
3042
- type: 'u128';
3043
- }, {
3044
- name: 'lastNettingTimestamp';
3045
- type: 'i64';
3046
- }, {
3047
- name: 'isNettingDone';
3048
- type: 'bool';
3049
- }, {
3050
- name: 'distributionBaseAmount';
3051
- type: 'u64';
3052
- }, {
3053
- name: 'isDistributionStarted';
3054
- type: 'bool';
3055
- }, {
3056
- name: 'pausedDepositsWithdrawals';
3057
- type: 'bool';
3058
- }, {
3059
- name: 'leftToDistribute';
3060
- type: 'u64';
3061
- }, {
3062
- name: 'allocatedShares';
3063
- type: 'u128';
3064
- }, {
3065
- name: 'padding';
3066
- type: {
3067
- array: ['u8', 168];
3068
- };
3069
- }];
3070
- };
3071
- }, {
3072
- name: 'changedCoreParams';
3073
- type: {
3074
- kind: 'struct';
3075
- fields: [{
3076
- name: 'treasury';
3077
- type: 'pubkey';
3078
- }, {
3079
- name: 'depositFee';
3080
- type: 'u32';
3081
- }, {
3082
- name: 'withdrawalFee';
3083
- type: 'u32';
3084
- }, {
3085
- name: 'performanceFee';
3086
- type: 'u32';
3087
- }, {
3088
- name: 'managementFeeBps';
3089
- type: 'u32';
3090
- }];
3091
- };
3092
- }, {
3093
- name: 'chargedFeesToUser';
3094
- type: {
3095
- kind: 'struct';
3096
- fields: [{
3097
- name: 'totalFeeShares';
3098
- type: 'u128';
3099
- }, {
3100
- name: 'totalFeeValue';
3101
- type: 'u64';
3102
- }, {
3103
- name: 'managementFeeShares';
3104
- type: 'u128';
3105
- }, {
3106
- name: 'performanceFeeShares';
3107
- type: 'u128';
3108
- }, {
3109
- name: 'sharePrice';
3110
- type: 'u128';
3111
- }, {
3112
- name: 'bundleAccountKey';
3113
- type: 'pubkey';
3114
- }];
3115
- };
3116
- }, {
3117
- name: 'delaysSet';
3118
- type: {
3119
- kind: 'struct';
3120
- fields: [{
3121
- name: 'withdrawalDelay';
3122
- type: 'u64';
3123
- }, {
3124
- name: 'withdrawalTMin';
3125
- type: 'i64';
3126
- }, {
3127
- name: 'withdrawalTMax';
3128
- type: 'i64';
3129
- }, {
3130
- name: 'withdrawalCurve';
3131
- type: 'f32';
3132
- }];
3133
- };
3134
- }, {
3135
- name: 'depositRequested';
3136
- type: {
3137
- kind: 'struct';
3138
- fields: [{
3139
- name: 'user';
3140
- type: 'pubkey';
3141
- }, {
3142
- name: 'amount';
3143
- type: 'u64';
3144
- }, {
3145
- name: 'timestamp';
3146
- type: 'i64';
3147
- }, {
3148
- name: 'bundleAccountKey';
3149
- type: 'pubkey';
3150
- }, {
3151
- name: 'toppingUp';
3152
- type: 'bool';
3153
- }, {
3154
- name: 'grossAmount';
3155
- type: 'u64';
3156
- }, {
3157
- name: 'feeAmount';
3158
- type: 'u64';
3159
- }, {
3160
- name: 'netAmount';
3161
- type: 'u64';
3162
- }, {
3163
- name: 'assetMint';
3164
- type: 'pubkey';
3165
- }];
3166
- };
3167
- }, {
3168
- name: 'depositedToDriftVault';
3169
- type: {
3170
- kind: 'struct';
3171
- fields: [{
3172
- name: 'amount';
3173
- type: 'u64';
3174
- }, {
3175
- name: 'from';
3176
- type: 'pubkey';
3177
- }, {
3178
- name: 'to';
3179
- type: 'pubkey';
3180
- }, {
3181
- name: 'timestamp';
3182
- type: 'i64';
3183
- }];
3184
- };
3185
- }, {
3186
- name: 'distributedToReceivers';
3187
- type: {
3188
- kind: 'struct';
3189
- fields: [{
3190
- name: 'amount';
3191
- type: 'u64';
3192
- }, {
3193
- name: 'from';
3194
- type: 'pubkey';
3195
- }, {
3196
- name: 'receiver';
3197
- type: 'pubkey';
3198
- }, {
3199
- name: 'timestamp';
3200
- type: 'i64';
3201
- }];
3202
- };
3203
- }, {
3204
- name: 'distributionEnded';
3205
- type: {
3206
- kind: 'struct';
3207
- fields: [{
3208
- name: 'amount';
3209
- type: 'u64';
3210
- }, {
3211
- name: 'timestamp';
3212
- type: 'i64';
3213
- }];
3214
- };
3215
- }, {
3216
- name: 'distributionStarted';
3217
- type: {
3218
- kind: 'struct';
3219
- fields: [{
3220
- name: 'amount';
3221
- type: 'u64';
3222
- }, {
3223
- name: 'timestamp';
3224
- type: 'i64';
3225
- }];
3226
- };
3227
- }, {
3228
- name: 'dustSharesBurned';
3229
- type: {
3230
- kind: 'struct';
3231
- fields: [{
3232
- name: 'amount';
3233
- type: 'u128';
3234
- }, {
3235
- name: 'timestamp';
3236
- type: 'i64';
3237
- }, {
3238
- name: 'bundleAccountKey';
3239
- type: 'pubkey';
3240
- }];
3241
- };
3242
- }, {
3243
- name: 'initializedNewVaultDepositor';
3244
- type: {
3245
- kind: 'struct';
3246
- fields: [{
3247
- name: 'vault';
3248
- type: 'pubkey';
3249
- }, {
3250
- name: 'vaultDepositor';
3251
- type: 'pubkey';
3252
- }, {
3253
- name: 'keeper';
3254
- type: 'pubkey';
3255
- }];
3256
- };
3257
- }, {
3258
- name: 'initializedReceivers';
3259
- type: {
3260
- kind: 'struct';
3261
- fields: [{
3262
- name: 'manager';
3263
- type: 'pubkey';
3264
- }];
3265
- };
3266
- }, {
3267
- name: 'initializedVault';
3268
- type: {
3269
- kind: 'struct';
3270
- fields: [{
3271
- name: 'manager';
3272
- type: 'pubkey';
3273
- }];
3274
- };
3275
- }, {
3276
- name: 'managerWithdrawal';
3277
- type: {
3278
- kind: 'struct';
3279
- fields: [{
3280
- name: 'managerShares';
3281
- type: 'u128';
3282
- }, {
3283
- name: 'redemptionAmount';
3284
- type: 'u64';
3285
- }];
3286
- };
3287
- }, {
3288
- name: 'managerWithdrawalWithSplit';
3289
- type: {
3290
- kind: 'struct';
3291
- fields: [{
3292
- name: 'managerPfeeShares';
3293
- type: 'u128';
3294
- }, {
3295
- name: 'managerMfeeShares';
3296
- type: 'u128';
3297
- }, {
3298
- name: 'partnerPfeeShares';
3299
- type: 'u128';
3300
- }, {
3301
- name: 'partnerMfeeShares';
3302
- type: 'u128';
3303
- }, {
3304
- name: 'managerRedemptionAmount';
3305
- type: 'u64';
3306
- }, {
3307
- name: 'partnerRedemptionAmount';
3308
- type: 'u64';
3309
- }];
3310
- };
3311
- }, {
3312
- name: 'maxDepositAmountSet';
3313
- type: {
3314
- kind: 'struct';
3315
- fields: [{
3316
- name: 'maxDepositAmount';
3317
- type: 'u64';
3318
- }];
3319
- };
3320
- }, {
3321
- name: 'minDepositAmountSet';
3322
- type: {
3323
- kind: 'struct';
3324
- fields: [{
3325
- name: 'minDepositAmount';
3326
- type: 'u64';
3327
- }, {
3328
- name: 'bundleAccountKey';
3329
- type: 'pubkey';
3330
- }];
3331
- };
3332
- }, {
3333
- name: 'nettingCompleted';
3334
- type: {
3335
- kind: 'struct';
3336
- fields: [{
3337
- name: 'timestamp';
3338
- type: 'i64';
3339
- }];
3340
- };
3341
- }, {
3342
- name: 'newKeeperSet';
3343
- type: {
3344
- kind: 'struct';
3345
- fields: [{
3346
- name: 'keeper';
3347
- type: 'pubkey';
3348
- }];
3349
- };
3350
- }, {
3351
- name: 'newManagerSet';
3352
- type: {
3353
- kind: 'struct';
3354
- fields: [{
3355
- name: 'manager';
3356
- type: 'pubkey';
3357
- }];
3358
- };
3359
- }, {
3360
- name: 'oracleBufferSet';
3361
- type: {
3362
- kind: 'struct';
3363
- fields: [{
3364
- name: 'oracleBuffer';
3365
- type: 'u64';
3366
- }];
3367
- };
3368
- }, {
3369
- name: 'oracleData';
3370
- type: {
3371
- kind: 'struct';
3372
- fields: [{
3373
- name: 'averageExternalEquity';
3374
- type: 'u64';
3375
- }, {
3376
- name: 'lastUpdateTime';
3377
- type: 'i64';
3378
- }, {
3379
- name: 'padding';
3380
- type: {
3381
- array: ['u8', 64];
3382
- };
3383
- }];
3384
- };
3385
- }, {
3386
- name: 'oracleMaxAgeSet';
3387
- type: {
3388
- kind: 'struct';
3389
- fields: [{
3390
- name: 'oracleMaxAge';
3391
- type: 'i64';
3392
- }];
3393
- };
3394
- }, {
3395
- name: 'oracleUpdateTimeLimitSet';
3396
- type: {
3397
- kind: 'struct';
3398
- fields: [{
3399
- name: 'oracleUpdateTimeLimit';
3400
- type: 'i64';
3401
- }];
3402
- };
3403
- }, {
3404
- name: 'oracleUpdated';
3405
- type: {
3406
- kind: 'struct';
3407
- fields: [{
3408
- name: 'averageExternalEquity';
3409
- type: 'u64';
3410
- }];
3411
- };
3412
- }, {
3413
- name: 'pausedDepositsWithdrawals';
3414
- type: {
3415
- kind: 'struct';
3416
- fields: [{
3417
- name: 'paused';
3418
- type: 'bool';
3419
- }, {
3420
- name: 'bundleAccountKey';
3421
- type: 'pubkey';
3422
- }];
3423
- };
3424
- }, {
3425
- name: 'redeemed';
3426
- type: {
3427
- kind: 'struct';
3428
- fields: [{
3429
- name: 'from';
3430
- type: 'pubkey';
3431
- }, {
3432
- name: 'to';
3433
- type: 'pubkey';
3434
- }, {
3435
- name: 'netAmount';
3436
- type: 'u64';
3437
- }, {
3438
- name: 'feeAmount';
3439
- type: 'u64';
3440
- }, {
3441
- name: 'timestamp';
3442
- type: 'i64';
3443
- }, {
3444
- name: 'bundleAccountKey';
3445
- type: 'pubkey';
3446
- }, {
3447
- name: 'grossAmount';
3448
- type: 'u64';
3449
- }, {
3450
- name: 'sharePrice';
3451
- type: 'u128';
3452
- }, {
3453
- name: 'userSharesBefore';
3454
- type: 'u128';
3455
- }, {
3456
- name: 'userSharesAfter';
3457
- type: 'u128';
3458
- }, {
3459
- name: 'totalSharesBefore';
3460
- type: 'u128';
3461
- }, {
3462
- name: 'totalSharesAfter';
3463
- type: 'u128';
3464
- }];
3465
- };
3466
- }, {
3467
- name: 'refilled';
3468
- type: {
3469
- kind: 'struct';
3470
- fields: [{
3471
- name: 'from';
3472
- type: 'pubkey';
3473
- }, {
3474
- name: 'refillValue';
3475
- type: 'u64';
3476
- }, {
3477
- name: 'timestamp';
3478
- type: 'i64';
3479
- }];
3480
- };
3481
- }, {
3482
- name: 'refundedDeposit';
3483
- type: {
3484
- kind: 'struct';
3485
- fields: [{
3486
- name: 'user';
3487
- type: 'pubkey';
3488
- }, {
3489
- name: 'amount';
3490
- type: 'u64';
3491
- }, {
3492
- name: 'timestamp';
3493
- type: 'i64';
3494
- }, {
3495
- name: 'bundleAccountKey';
3496
- type: 'pubkey';
3497
- }];
3498
- };
3499
- }, {
3500
- name: 'requestedWithdrawalToDriftVault';
3501
- type: {
3502
- kind: 'struct';
3503
- fields: [{
3504
- name: 'amount';
3505
- type: 'u64';
3506
- }, {
3507
- name: 'from';
3508
- type: 'pubkey';
3509
- }, {
3510
- name: 'to';
3511
- type: 'pubkey';
3512
- }, {
3513
- name: 'timestamp';
3514
- type: 'i64';
3515
- }];
3516
- };
3517
- }, {
3518
- name: 'strategy';
3519
- type: {
3520
- kind: 'struct';
3521
- fields: [{
3522
- name: 'receiverAddress';
3523
- type: 'pubkey';
3524
- }, {
3525
- name: 'allocationBps';
3526
- type: 'u32';
3527
- }, {
3528
- name: 'allowed';
3529
- type: 'bool';
3530
- }, {
3531
- name: 'padding';
3532
- type: {
3533
- array: ['u8', 96];
3534
- };
3535
- }];
3536
- };
3537
- }, {
3538
- name: 'strategyAdded';
3539
- type: {
3540
- kind: 'struct';
3541
- fields: [{
3542
- name: 'receiverAddress';
3543
- type: 'pubkey';
3544
- }, {
3545
- name: 'allocationBps';
3546
- type: 'u32';
3547
- }];
3548
- };
3549
- }, {
3550
- name: 'strategyEnabled';
3551
- type: {
3552
- kind: 'struct';
3553
- fields: [{
3554
- name: 'receiverAddress';
3555
- type: 'pubkey';
3556
- }];
3557
- };
3558
- }, {
3559
- name: 'strategyRemoved';
3560
- type: {
3561
- kind: 'struct';
3562
- fields: [{
3563
- name: 'receiverAddress';
3564
- type: 'pubkey';
3565
- }];
3566
- };
3567
- }, {
3568
- name: 'userBundleAccount';
3569
- type: {
3570
- kind: 'struct';
3571
- fields: [{
3572
- name: 'owner';
3573
- type: 'pubkey';
3574
- }, {
3575
- name: 'lastDepositTimestamp';
3576
- type: 'i64';
3577
- }, {
3578
- name: 'shares';
3579
- type: 'u128';
3580
- }, {
3581
- name: 'pendingDeposit';
3582
- type: 'u64';
3583
- }, {
3584
- name: 'pendingShares';
3585
- type: 'u128';
3586
- }, {
3587
- name: 'estimatedPendingWithdrawalValue';
3588
- type: 'u64';
3589
- }, {
3590
- name: 'withdrawalAvailableTimestamp';
3591
- type: 'i64';
3592
- }, {
3593
- name: 'lastWithdrawalProcessTimestamp';
3594
- type: 'i64';
3595
- }, {
3596
- name: 'lastHighWaterMark';
3597
- type: 'u128';
3598
- }, {
3599
- name: 'hwmPerShare';
3600
- type: 'u128';
3601
- }, {
3602
- name: 'lastManagementFeeTimestamp';
3603
- type: 'i64';
3604
- }, {
3605
- name: 'netDeposits';
3606
- type: 'i128';
3607
- }, {
3608
- name: 'totalFeeCharged';
3609
- type: 'u64';
3610
- }, {
3611
- name: 'customDepositFeeBps';
3612
- type: 'u32';
3613
- }, {
3614
- name: 'customWithdrawalFeeBps';
3615
- type: 'u32';
3616
- }, {
3617
- name: 'customPerformanceFeeBps';
3618
- type: 'u32';
3619
- }, {
3620
- name: 'customManagementFeeBps';
3621
- type: 'u32';
3622
- }, {
3623
- name: 'feeOverrideFlags';
3624
- type: 'u8';
3625
- }, {
3626
- name: 'customWithdrawalDelay';
3627
- type: 'u64';
3628
- }, {
3629
- name: 'customWithdrawalTMin';
3630
- type: 'i64';
3631
- }, {
3632
- name: 'customWithdrawalTMax';
3633
- type: 'i64';
3634
- }, {
3635
- name: 'customWithdrawalCurve';
3636
- type: 'f32';
3637
- }, {
3638
- name: 'withdrawalTimingOverrideFlags';
3639
- type: 'u8';
3640
- }, {
3641
- name: 'switchActive';
3642
- type: 'bool';
3643
- }, {
3644
- name: 'switchTargetBundle';
3645
- type: 'pubkey';
3646
- }, {
3647
- name: 'switchCreatedAt';
3648
- type: 'i64';
3649
- }, {
3650
- name: 'padding';
3651
- type: {
3652
- array: ['u8', 177];
3653
- };
3654
- }];
3655
- };
3656
- }, {
3657
- name: 'userBundleAccountClosed';
3658
- type: {
3659
- kind: 'struct';
3660
- fields: [{
3661
- name: 'user';
3662
- type: 'pubkey';
3663
- }, {
3664
- name: 'bundleAccountKey';
3665
- type: 'pubkey';
3666
- }, {
3667
- name: 'userBundleAccountKey';
3668
- type: 'pubkey';
3669
- }];
3670
- };
3671
- }, {
3672
- name: 'userFeeOverrideCleared';
3673
- type: {
3674
- kind: 'struct';
3675
- fields: [{
3676
- name: 'manager';
3677
- type: 'pubkey';
3678
- }, {
3679
- name: 'user';
3680
- type: 'pubkey';
3681
- }, {
3682
- name: 'bundleAccountKey';
3683
- type: 'pubkey';
3684
- }, {
3685
- name: 'clearMask';
3686
- type: 'u8';
3687
- }, {
3688
- name: 'previousFlags';
3689
- type: 'u8';
3690
- }, {
3691
- name: 'newFlags';
3692
- type: 'u8';
3693
- }, {
3694
- name: 'timestamp';
3695
- type: 'i64';
3696
- }];
3697
- };
3698
- }, {
3699
- name: 'userFeeOverrideSet';
3700
- type: {
3701
- kind: 'struct';
3702
- fields: [{
3703
- name: 'manager';
3704
- type: 'pubkey';
3705
- }, {
3706
- name: 'user';
3707
- type: 'pubkey';
3708
- }, {
3709
- name: 'bundleAccountKey';
3710
- type: 'pubkey';
3711
- }, {
3712
- name: 'overrideMask';
3713
- type: 'u8';
3714
- }, {
3715
- name: 'previousFlags';
3716
- type: 'u8';
3717
- }, {
3718
- name: 'newFlags';
3719
- type: 'u8';
3720
- }, {
3721
- name: 'customDepositFeeBps';
3722
- type: 'u32';
3723
- }, {
3724
- name: 'customWithdrawalFeeBps';
3725
- type: 'u32';
3726
- }, {
3727
- name: 'customPerformanceFeeBps';
3728
- type: 'u32';
3729
- }, {
3730
- name: 'customManagementFeeBps';
3731
- type: 'u32';
3732
- }, {
3733
- name: 'timestamp';
3734
- type: 'i64';
3735
- }];
3736
- };
3737
- }, {
3738
- name: 'userWithdrawalTimingOverrideCleared';
3739
- type: {
3740
- kind: 'struct';
3741
- fields: [{
3742
- name: 'manager';
3743
- type: 'pubkey';
3744
- }, {
3745
- name: 'user';
3746
- type: 'pubkey';
3747
- }, {
3748
- name: 'bundleAccountKey';
3749
- type: 'pubkey';
3750
- }, {
3751
- name: 'clearMask';
3752
- type: 'u8';
3753
- }, {
3754
- name: 'previousFlags';
3755
- type: 'u8';
3756
- }, {
3757
- name: 'newFlags';
3758
- type: 'u8';
3759
- }, {
3760
- name: 'timestamp';
3761
- type: 'i64';
3762
- }];
3763
- };
3764
- }, {
3765
- name: 'userWithdrawalTimingOverrideSet';
3766
- type: {
3767
- kind: 'struct';
3768
- fields: [{
3769
- name: 'manager';
3770
- type: 'pubkey';
3771
- }, {
3772
- name: 'user';
3773
- type: 'pubkey';
3774
- }, {
3775
- name: 'bundleAccountKey';
3776
- type: 'pubkey';
3777
- }, {
3778
- name: 'overrideMask';
3779
- type: 'u8';
3780
- }, {
3781
- name: 'previousFlags';
3782
- type: 'u8';
3783
- }, {
3784
- name: 'newFlags';
3785
- type: 'u8';
3786
- }, {
3787
- name: 'customWithdrawalDelay';
3788
- type: 'u64';
3789
- }, {
3790
- name: 'customWithdrawalTMin';
3791
- type: 'i64';
3792
- }, {
3793
- name: 'customWithdrawalTMax';
3794
- type: 'i64';
3795
- }, {
3796
- name: 'customWithdrawalCurve';
3797
- type: 'f32';
3798
- }, {
3799
- name: 'timestamp';
3800
- type: 'i64';
3801
- }];
3802
- };
3803
- }, {
3804
- name: 'vaultNeutralFeeIncrementerSet';
3805
- type: {
3806
- kind: 'struct';
3807
- fields: [{
3808
- name: 'neutralFeeIncrementer';
3809
- type: 'pubkey';
3810
- }];
3811
- };
3812
- }, {
3813
- name: 'withdrawalRedemptionScheduleSet';
3814
- type: {
3815
- kind: 'struct';
3816
- fields: [{
3817
- name: 'withdrawalRedemptionRequestCutoffTs';
3818
- type: 'i64';
3819
- }, {
3820
- name: 'withdrawalRedemptionUnlockCurrentCycleTs';
3821
- type: 'i64';
3822
- }, {
3823
- name: 'withdrawalRedemptionUnlockNextCycleTs';
3824
- type: 'i64';
3825
- }];
3826
- };
3827
- }, {
3828
- name: 'withdrawalRequested';
3829
- type: {
3830
- kind: 'struct';
3831
- fields: [{
3832
- name: 'user';
3833
- type: 'pubkey';
3834
- }, {
3835
- name: 'amount';
3836
- type: 'u128';
3837
- }, {
3838
- name: 'timestamp';
3839
- type: 'i64';
3840
- }, {
3841
- name: 'cooldownPeriod';
3842
- type: 'i64';
3843
- }, {
3844
- name: 'estimatedPendingWithdrawalValue';
3845
- type: 'u64';
3846
- }, {
3847
- name: 'bundleAccountKey';
3848
- type: 'pubkey';
3849
- }, {
3850
- name: 'cooldownEndTimestamp';
3851
- type: 'i64';
3852
- }, {
3853
- name: 'estimatedNetAmount';
3854
- type: 'u64';
3855
- }];
3856
- };
3857
- }, {
3858
- name: 'withdrawnFromDriftVault';
3859
- type: {
3860
- kind: 'struct';
3861
- fields: [{
3862
- name: 'amount';
3863
- type: 'u64';
3864
- }, {
3865
- name: 'from';
3866
- type: 'pubkey';
3867
- }, {
3868
- name: 'to';
3869
- type: 'pubkey';
3870
- }, {
3871
- name: 'timestamp';
3872
- type: 'i64';
3873
- }];
3874
- };
3875
- }];
3876
- }
3877
- //#endregion
3878
- //#region src/constants/programs.d.ts
3879
- type BundleProgram = Program<Ntbundle>;
3880
- type BundleProvider = AnchorProvider;
3881
- type BundleCluster = 'mainnet' | 'devnet';
3882
- declare const DEFAULT_BUNDLE_PROGRAM_ID_MAINNET = "BUNDDh4P5XviMm1f3gCvnq2qKx6TGosAGnoUK12e7cXU";
3883
- /**
3884
- * Secondary mainnet ntbundle program id (used when a vault sets `bundleProgramId` to this value).
3885
- * Kept in sync with `sdk/src/registry/vaults.json` (e.g. vaultId 69 JLP Delta Neutral).
3886
- */
3887
- declare const BUNDLE_PROGRAM_ID_V2_MAINNET = "BUNDeH5A4c47bcEoAjBhN3sCjLgYnRsmt9ibMztqVkC9";
3888
- declare const DEFAULT_BUNDLE_PROGRAM_ID_DEVNET = "CcR9whVnaW3STx6LLYotwy5JJXmnC8KDjtRotA3NCL8v";
3889
- declare function getDefaultBundleProgramIdByCluster(cluster?: BundleCluster): string;
3890
- declare const ALLOWLISTED_BUNDLE_PROGRAM_IDS_BY_CLUSTER: Record<BundleCluster, readonly string[]>;
3891
- declare function isAllowlistedBundleProgramId(programId: string, cluster: BundleCluster): boolean;
3892
- declare function assertAllowlistedBundleProgramId(programId: string, cluster: BundleCluster): void;
3893
- declare function createAllowlistedBundleProgram(provider: AnchorProvider, programId: string, cluster: BundleCluster): BundleProgram;
3894
- /**
3895
- * Create Bundle Program client for a specific program id.
3896
- */
3897
- declare function createBundleProgramById(provider: AnchorProvider, programId: string): Program<Ntbundle>;
3898
- //#endregion
3899
- //#region src/types/tokens.d.ts
3900
- declare enum SupportedChain {
3901
- Solana = "Solana",
3902
- Hyperliquid = "Hyperliquid",
3903
- }
3904
- declare enum SupportedToken {
3905
- USDC = "USDC",
3906
- USDT = "USDT",
3907
- USDE = "USDE",
3908
- SOL = "SOL",
3909
- WBTC = "WBTC",
3910
- WETH = "WETH",
3911
- JLP = "JLP",
3912
- }
3913
- interface Token {
3914
- name: string;
3915
- symbol: string;
3916
- onChain: { [chain in SupportedChain]: {
3917
- address: string;
3918
- decimals: number;
3919
- } | null };
3920
- }
3921
- declare const tokens: { [name in SupportedToken]: Token };
3922
- /**
3923
- * Solana mint address for a supported token, keyed by bundle cluster.
3924
- * Devnet USDC uses the team mock mint; other tokens use mainnet table until devnet overrides exist.
3925
- */
3926
- declare function getSolanaTokenMint(token: SupportedToken, cluster?: BundleCluster): string;
3927
- /** SPL decimals for `token` (same on mainnet vs devnet for current overrides). */
3928
- declare function getSolanaTokenDecimals(token: SupportedToken): number;
3929
- //#endregion
3930
- //#region src/types/bundle-types.d.ts
3931
- type UserBundleAccount = IdlAccounts<Ntbundle>['userBundleAccount'];
3932
- type UserBundleTempData = IdlAccounts<Ntbundle>['bundleTempData'];
3933
- type OracleData = IdlAccounts<Ntbundle>['oracleData'];
3934
- type BundleAccount = IdlAccounts<Ntbundle>['bundle'];
3935
- //#endregion
3936
- //#region src/types/vault-types.d.ts
3937
- declare enum VaultType {
3938
- Drift = "Drift",
3939
- Bundle = "Bundle",
3940
- Hyperliquid = "Hyperliquid",
3941
- Kamino = "Kamino",
3942
- }
3943
- declare enum VaultCategory {
3944
- marketNeutral = "Market Neutral",
3945
- directional = "Directional",
3946
- etf = "Index",
3947
- bet = "Bet",
3948
- savings = "Savings",
3949
- privateCredit = "Private Credit",
3950
- airdropFarming = "Airdrop Farming",
3951
- yieldEnhancement = "Yield Enhancement",
3952
- fundOfFund = "Master Vault",
3953
- }
3954
- /** Raw vault entry from registry JSON */
3955
- interface VaultRegistryEntry {
3956
- vaultId: number;
3957
- name: string;
3958
- subname?: string;
3959
- type: VaultType;
3960
- category: VaultCategory;
3961
- vaultAddress: string;
3962
- depositToken: SupportedToken;
3963
- /** Optional Drift program ID (only for Drift vaults with non-default program) */
3964
- driftProgramId?: string;
3965
- /** Optional Bundle program ID. If omitted, SDK uses cluster default bundle program ID. */
3966
- bundleProgramId?: string;
3967
- /** Points: eTVL multiplier (default 1) */
3968
- pointsMultiplier?: number;
3969
- /** Points: include in points calculation (default true) */
3970
- pointsEnabled?: boolean;
3971
- }
3972
- /** Vault registry as a record keyed by vaultId */
3973
- type VaultRegistry = Record<number, VaultRegistryEntry>;
3974
- //#endregion
3975
- //#region src/types/index.d.ts
3976
- interface VaultBalanceData {
3977
- balanceToken: number;
3978
- balanceUsd: number;
3979
- netEarnings: number;
3980
- netEarningsUsd: number;
3981
- totalDeposit: number;
3982
- totalDepositUsd: number;
3983
- pendingDeposit?: number;
3984
- requestWithdrawToken?: number;
3985
- highWaterMark?: number;
3986
- /** Total profit share fee paid by the user */
3987
- feesPaid?: number;
3988
- pendingProfitShareFee?: number;
3989
- /** Unpaid / accrued fees in deposit token; null if not applicable. Bundle: mgmt+perf estimate; Drift: pending profit share. */
3990
- pendingFee: number | null;
3991
- pendingFeeUsd: number | null;
3992
- spotPrice: number;
3993
- /** User's vault shares (raw number, not divided by decimals) */
3994
- vaultShares?: number;
3995
- /** User's net deposits in token amount (already divided by decimals) */
3996
- netDeposit?: number;
3997
- asset: SupportedToken;
3998
- }
3999
- type UserBalanceResult = Record<number, VaultBalanceData | null>;
4000
- //#endregion
4001
- //#region src/constants/vaults.d.ts
4002
- /**
4003
- * Get Bundle Program ID for a vault config
4004
- * Uses registry value if present, otherwise falls back to cluster default.
4005
- */
4006
- declare function getBundleProgramId(vault: VaultRegistryEntry, cluster?: BundleCluster): string | undefined;
4007
- /** Mainnet registry (default; backward compatible). */
4008
- declare const vaults: VaultRegistry;
4009
- /** Devnet-only vault registry (fixtures / local testing). */
4010
- declare const vaultsDevnet: VaultRegistry;
4011
- declare function getVaultRegistry(cluster: BundleCluster): VaultRegistry;
4012
- declare function isValidVaultAddress(address: string, cluster?: BundleCluster): boolean;
4013
- declare function getVaultByAddress(address: string, cluster?: BundleCluster): VaultRegistryEntry | undefined;
4014
- declare function getVaultById(vaultId: number, cluster?: BundleCluster): VaultRegistryEntry | undefined;
4015
- //#endregion
4016
- //#region src/NeutralTrade.d.ts
4017
- interface NeutralTradeConfig {
4018
- rpcUrl: string;
4019
- /**
4020
- * Optional WebSocket RPC for account subscriptions.
4021
- * HTTP JSON-RPC always uses `rpcUrl`; when set, avoids deriving WS from the HTTP proxy URL.
4022
- */
4023
- wsRpcUrl?: string;
4024
- /** Bundle program cluster selector. Defaults to 'mainnet'. */
4025
- bundleCluster?: BundleCluster;
4026
- /** Optional fallback prices map. Prices are fetched from Pyth Network first; fallback is used only if Pyth returns incomplete data */
4027
- fallbackPrices?: Partial<Record<SupportedToken, number>>;
4028
- }
4029
- declare class NeutralTrade {
4030
- readonly connection: Connection;
4031
- readonly bundlePrograms: NeutralTradeCoreContext['bundlePrograms'];
4032
- readonly bundleCluster: BundleCluster;
4033
- /** Built-in vault configurations for the selected cluster. */
4034
- readonly vaults: VaultRegistry;
4035
- /** Price map for deposit tokens */
4036
- readonly priceMap: Map<SupportedToken, number>;
4037
- protected constructor(core: NeutralTradeCoreContext, bundleCluster: BundleCluster);
4038
- protected static initCore(config: NeutralTradeConfig): Promise<NeutralTradeCoreContext>;
4039
- static create(config: NeutralTradeConfig): Promise<NeutralTrade>;
4040
- /**
4041
- * Get user balance for Bundle vaults only.
4042
- * Drift vault IDs are ignored (no keys in the result).
4043
- */
4044
- getUserBalanceByVaultIds({
4045
- vaultIds,
4046
- userAddress
4047
- }: {
4048
- vaultIds: number[];
4049
- userAddress: string;
4050
- }): Promise<UserBalanceResult>;
4051
- /**
4052
- * Build deposit instructions (`initializeBundleDepositor` when needed, then `requestDeposit`).
4053
- * Uses the built-in vault registry only.
4054
- */
4055
- buildDepositInstructions({
4056
- vaultId,
4057
- userAddress,
4058
- amountRaw
4059
- }: {
4060
- vaultId: number;
4061
- userAddress: string;
4062
- /** Smallest token units (decimal string), same scale as SPL `amount`. */
4063
- amountRaw: string;
4064
- }): Promise<TransactionInstruction[]>;
4065
- /**
4066
- * Build request-withdraw instruction. Uses the built-in vault registry only.
4067
- */
4068
- buildRequestWithdrawInstruction({
4069
- vaultId,
4070
- userAddress,
4071
- amountRaw
4072
- }: {
4073
- vaultId: number;
4074
- userAddress: string;
4075
- /** Smallest token units (decimal string) to request withdrawing. */
4076
- amountRaw: string;
4077
- }): Promise<TransactionInstruction>;
4078
- }
4079
- //#endregion
4080
- //#region src/utils/bundle-instructions-core.d.ts
4081
- interface BuildBundleDepositInstructionsCoreParams {
4082
- bundleProgram: Program<Ntbundle>;
4083
- bundleCluster?: BundleCluster;
4084
- vault: VaultRegistryEntry;
4085
- user: PublicKey;
4086
- /** Smallest token units (decimal string), same scale as SPL token `amount`. */
4087
- amountRaw: string;
4088
- }
4089
- interface BuildBundleRequestWithdrawInstructionCoreParams {
4090
- bundleProgram: Program<Ntbundle>;
4091
- bundleCluster?: BundleCluster;
4092
- vault: VaultRegistryEntry;
4093
- user: PublicKey;
4094
- /** Smallest token units (decimal string) to request withdrawing. */
4095
- amountRaw: string;
4096
- }
4097
- interface BuildBundleRequestSwitchInstructionCoreParams {
4098
- bundleProgram: Program<Ntbundle>;
4099
- bundleCluster?: BundleCluster;
4100
- sourceVault: VaultRegistryEntry;
4101
- targetVault: VaultRegistryEntry;
4102
- user: PublicKey;
4103
- /** Smallest token units (decimal string) to switch out of the source vault. */
4104
- amountRaw: string;
4105
- }
4106
- /**
4107
- * `initializeBundleDepositor` (when missing) + `requestDeposit`. Fetches bundle + user bundle internally.
4108
- * @internal
4109
- */
4110
- declare function buildBundleDepositInstructionsWithVault({
4111
- bundleProgram,
4112
- bundleCluster,
4113
- vault,
4114
- user,
4115
- amountRaw
4116
- }: BuildBundleDepositInstructionsCoreParams): Promise<TransactionInstruction[]>;
4117
- /**
4118
- * `requestWithdrawal` only. Fetches bundle, oracle, and user bundle internally.
4119
- * @internal
4120
- */
4121
- declare function buildBundleRequestWithdrawInstructionWithVault({
4122
- bundleProgram,
4123
- bundleCluster,
4124
- vault,
4125
- user,
4126
- amountRaw
4127
- }: BuildBundleRequestWithdrawInstructionCoreParams): Promise<TransactionInstruction>;
4128
- /**
4129
- * `initializeBundleDepositor` on target (when missing) + `requestBundleSwitch`.
4130
- * Fetches source bundle, oracle, user bundle, and target bundle internally.
4131
- * @internal
4132
- */
4133
- declare function buildBundleRequestSwitchInstructionWithVault({
4134
- bundleProgram,
4135
- bundleCluster,
4136
- sourceVault,
4137
- targetVault,
4138
- user,
4139
- amountRaw
4140
- }: BuildBundleRequestSwitchInstructionCoreParams): Promise<TransactionInstruction[]>;
4141
- //#endregion
4142
- //#region src/neutral-trade-core.d.ts
4143
- interface NeutralTradeCoreContext {
4144
- connection: Connection;
4145
- bundlePrograms: Record<string, ReturnType<typeof createAllowlistedBundleProgram>>;
4146
- vaults: ReturnType<typeof getVaultRegistry>;
4147
- priceMap: Map<SupportedToken, number>;
4148
- }
4149
- declare function initNeutralTradeCore(config: NeutralTradeConfig): Promise<NeutralTradeCoreContext>;
4150
- declare function buildDepositInstructionsForVaultId(core: NeutralTradeCoreContext, cluster: BundleCluster, params: {
4151
- vaultId: number;
4152
- userAddress: string;
4153
- amountRaw: string;
4154
- }): Promise<TransactionInstruction[]>;
4155
- declare function buildRequestWithdrawInstructionForVaultId(core: NeutralTradeCoreContext, cluster: BundleCluster, params: {
4156
- vaultId: number;
4157
- userAddress: string;
4158
- amountRaw: string;
4159
- }): Promise<TransactionInstruction>;
4160
- declare function getBundleProgramForVault(core: NeutralTradeCoreContext, vaultId: number, cluster: BundleCluster): ReturnType<typeof createAllowlistedBundleProgram>;
4161
- //#endregion
4162
- export { UserBundleTempData as A, BundleProgram as B, VaultCategory as C, BundleAccount as D, VaultType as E, getSolanaTokenMint as F, createAllowlistedBundleProgram as G, DEFAULT_BUNDLE_PROGRAM_ID_DEVNET as H, tokens as I, isAllowlistedBundleProgramId as J, createBundleProgramById as K, ALLOWLISTED_BUNDLE_PROGRAM_IDS_BY_CLUSTER as L, SupportedToken as M, Token as N, OracleData as O, getSolanaTokenDecimals as P, BUNDLE_PROGRAM_ID_V2_MAINNET as R, VaultBalanceData as S, VaultRegistryEntry as T, DEFAULT_BUNDLE_PROGRAM_ID_MAINNET as U, BundleProvider as V, assertAllowlistedBundleProgramId as W, getVaultRegistry as _, initNeutralTradeCore as a, vaultsDevnet as b, BuildBundleRequestWithdrawInstructionCoreParams as c, buildBundleRequestWithdrawInstructionWithVault as d, NeutralTrade as f, getVaultById as g, getVaultByAddress as h, getBundleProgramForVault as i, SupportedChain as j, UserBundleAccount as k, buildBundleDepositInstructionsWithVault as l, getBundleProgramId as m, buildDepositInstructionsForVaultId as n, BuildBundleDepositInstructionsCoreParams as o, NeutralTradeConfig as p, getDefaultBundleProgramIdByCluster as q, buildRequestWithdrawInstructionForVaultId as r, BuildBundleRequestSwitchInstructionCoreParams as s, NeutralTradeCoreContext as t, buildBundleRequestSwitchInstructionWithVault as u, isValidVaultAddress as v, VaultRegistry as w, UserBalanceResult as x, vaults as y, BundleCluster as z };