@huma-finance/shared 0.0.63-beta.757 → 0.0.63

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.
@@ -8,7 +8,7 @@ export type Huma = {
8
8
  address: 'EVQ4s1b6N1vmWFDv8PRNc77kufBP8HcrSNWXQAhRsJq9';
9
9
  metadata: {
10
10
  name: 'huma';
11
- version: '0.1.0';
11
+ version: '2.2.0';
12
12
  spec: '0.1.0';
13
13
  description: 'Created with Anchor';
14
14
  };
@@ -356,6 +356,7 @@ export type Huma = {
356
356
  'Records a new redemption request.',
357
357
  '',
358
358
  '# Arguments',
359
+ '* `lender` - The lender whose shares are being requested for redemption.',
359
360
  '* `shares` - The number of shares the lender wants to redeem.',
360
361
  '',
361
362
  '# Access Control',
@@ -364,7 +365,7 @@ export type Huma = {
364
365
  discriminator: [72, 203, 201, 17, 75, 60, 157, 47];
365
366
  accounts: [
366
367
  {
367
- name: 'lender';
368
+ name: 'signer';
368
369
  signer: true;
369
370
  },
370
371
  {
@@ -472,7 +473,7 @@ export type Huma = {
472
473
  path: 'trancheMint';
473
474
  },
474
475
  {
475
- kind: 'account';
476
+ kind: 'arg';
476
477
  path: 'lender';
477
478
  }
478
479
  ];
@@ -568,12 +569,134 @@ export type Huma = {
568
569
  }
569
570
  ];
570
571
  args: [
572
+ {
573
+ name: 'lender';
574
+ type: 'pubkey';
575
+ },
571
576
  {
572
577
  name: 'shares';
573
578
  type: 'u128';
574
579
  }
575
580
  ];
576
581
  },
582
+ {
583
+ name: 'addYieldDistributingLender';
584
+ docs: [
585
+ 'Adds an approved lender as a yield distributing lender.',
586
+ '',
587
+ '',
588
+ '# Arguments',
589
+ '* `lender` - The lender address.',
590
+ '',
591
+ '# Access Control',
592
+ 'Only pool operators can call this instruction.'
593
+ ];
594
+ discriminator: [33, 123, 56, 23, 130, 142, 148, 129];
595
+ accounts: [
596
+ {
597
+ name: 'poolOperator';
598
+ writable: true;
599
+ signer: true;
600
+ },
601
+ {
602
+ name: 'poolConfig';
603
+ pda: {
604
+ seeds: [
605
+ {
606
+ kind: 'const';
607
+ value: [112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103];
608
+ },
609
+ {
610
+ kind: 'account';
611
+ path: 'pool_config.pool_id';
612
+ account: 'poolConfig';
613
+ }
614
+ ];
615
+ };
616
+ },
617
+ {
618
+ name: 'poolState';
619
+ writable: true;
620
+ pda: {
621
+ seeds: [
622
+ {
623
+ kind: 'const';
624
+ value: [112, 111, 111, 108, 95, 115, 116, 97, 116, 101];
625
+ },
626
+ {
627
+ kind: 'account';
628
+ path: 'poolConfig';
629
+ }
630
+ ];
631
+ };
632
+ },
633
+ {
634
+ name: 'trancheMint';
635
+ },
636
+ {
637
+ name: 'approvedLender';
638
+ },
639
+ {
640
+ name: 'poolOperatorConfig';
641
+ },
642
+ {
643
+ name: 'yieldDistributingLenderConfig';
644
+ writable: true;
645
+ pda: {
646
+ seeds: [
647
+ {
648
+ kind: 'const';
649
+ value: [
650
+ 121,
651
+ 105,
652
+ 101,
653
+ 108,
654
+ 100,
655
+ 95,
656
+ 100,
657
+ 105,
658
+ 115,
659
+ 116,
660
+ 114,
661
+ 105,
662
+ 98,
663
+ 117,
664
+ 116,
665
+ 105,
666
+ 110,
667
+ 103,
668
+ 95,
669
+ 108,
670
+ 101,
671
+ 110,
672
+ 100,
673
+ 101,
674
+ 114
675
+ ];
676
+ },
677
+ {
678
+ kind: 'account';
679
+ path: 'trancheMint';
680
+ },
681
+ {
682
+ kind: 'arg';
683
+ path: 'lender';
684
+ }
685
+ ];
686
+ };
687
+ },
688
+ {
689
+ name: 'systemProgram';
690
+ address: '11111111111111111111111111111111';
691
+ }
692
+ ];
693
+ args: [
694
+ {
695
+ name: 'lender';
696
+ type: 'pubkey';
697
+ }
698
+ ];
699
+ },
577
700
  {
578
701
  name: 'approveCredit';
579
702
  docs: [
@@ -4709,6 +4832,42 @@ export type Huma = {
4709
4832
  ];
4710
4833
  args: [];
4711
4834
  },
4835
+ {
4836
+ name: 'reallocPoolConfig';
4837
+ discriminator: [23, 125, 97, 240, 16, 108, 85, 88];
4838
+ accounts: [
4839
+ {
4840
+ name: 'signer';
4841
+ writable: true;
4842
+ signer: true;
4843
+ },
4844
+ {
4845
+ name: 'humaConfig';
4846
+ pda: {
4847
+ seeds: [
4848
+ {
4849
+ kind: 'const';
4850
+ value: [104, 117, 109, 97, 95, 99, 111, 110, 102, 105, 103];
4851
+ },
4852
+ {
4853
+ kind: 'account';
4854
+ path: 'huma_config.id';
4855
+ account: 'humaConfig';
4856
+ }
4857
+ ];
4858
+ };
4859
+ },
4860
+ {
4861
+ name: 'poolConfig';
4862
+ writable: true;
4863
+ },
4864
+ {
4865
+ name: 'systemProgram';
4866
+ address: '11111111111111111111111111111111';
4867
+ }
4868
+ ];
4869
+ args: [];
4870
+ },
4712
4871
  {
4713
4872
  name: 'refreshCredit';
4714
4873
  docs: [
@@ -4832,7 +4991,7 @@ export type Huma = {
4832
4991
  'The capital that the lender has contributed will continue to work as normal.',
4833
4992
  '',
4834
4993
  '# Dev Notes',
4835
- 'It is intentional not to delete depositRecord for the lender so that they do not',
4994
+ 'It is intentional not to delete `DepositRecord` for the lender so that they do not',
4836
4995
  'lose existing investment. They can request redemption post removal as a lender.',
4837
4996
  'Because of lockup period and pool liquidity constraints, we cannot automatically',
4838
4997
  'disburse the investment by this lender.',
@@ -4922,6 +5081,53 @@ export type Huma = {
4922
5081
  }
4923
5082
  ];
4924
5083
  };
5084
+ },
5085
+ {
5086
+ name: 'yieldDistributingLenderConfig';
5087
+ writable: true;
5088
+ optional: true;
5089
+ pda: {
5090
+ seeds: [
5091
+ {
5092
+ kind: 'const';
5093
+ value: [
5094
+ 121,
5095
+ 105,
5096
+ 101,
5097
+ 108,
5098
+ 100,
5099
+ 95,
5100
+ 100,
5101
+ 105,
5102
+ 115,
5103
+ 116,
5104
+ 114,
5105
+ 105,
5106
+ 98,
5107
+ 117,
5108
+ 116,
5109
+ 105,
5110
+ 110,
5111
+ 103,
5112
+ 95,
5113
+ 108,
5114
+ 101,
5115
+ 110,
5116
+ 100,
5117
+ 101,
5118
+ 114
5119
+ ];
5120
+ },
5121
+ {
5122
+ kind: 'account';
5123
+ path: 'trancheMint';
5124
+ },
5125
+ {
5126
+ kind: 'arg';
5127
+ path: 'lender';
5128
+ }
5129
+ ];
5130
+ };
4925
5131
  }
4926
5132
  ];
4927
5133
  args: [
@@ -5146,81 +5352,190 @@ export type Huma = {
5146
5352
  ];
5147
5353
  },
5148
5354
  {
5149
- name: 'setAdminRnr';
5355
+ name: 'removeYieldDistributingLender';
5150
5356
  docs: [
5151
- 'Sets pool admin rewards and responsibility settings.',
5357
+ 'Marks a lender as ineligible for yield distribution.',
5152
5358
  '',
5153
5359
  '# Arguments',
5154
- '* `admin_rnr` - The new admin R&R settings.',
5360
+ '* `lender` - The lender address.',
5155
5361
  '',
5156
5362
  '# Access Control',
5157
- 'Only the pool owner and the Huma owner can call this instruction.'
5363
+ 'Only pool operators can call this instruction.'
5158
5364
  ];
5159
- discriminator: [18, 166, 239, 157, 122, 242, 254, 152];
5365
+ discriminator: [140, 153, 125, 9, 100, 99, 177, 200];
5160
5366
  accounts: [
5161
5367
  {
5162
- name: 'signer';
5368
+ name: 'poolOperator';
5369
+ writable: true;
5163
5370
  signer: true;
5164
5371
  },
5165
5372
  {
5166
- name: 'humaConfig';
5373
+ name: 'poolConfig';
5167
5374
  pda: {
5168
5375
  seeds: [
5169
5376
  {
5170
5377
  kind: 'const';
5171
- value: [104, 117, 109, 97, 95, 99, 111, 110, 102, 105, 103];
5378
+ value: [112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103];
5172
5379
  },
5173
5380
  {
5174
5381
  kind: 'account';
5175
- path: 'huma_config.id';
5176
- account: 'humaConfig';
5382
+ path: 'pool_config.pool_id';
5383
+ account: 'poolConfig';
5177
5384
  }
5178
5385
  ];
5179
5386
  };
5180
- relations: ['poolConfig'];
5181
5387
  },
5182
5388
  {
5183
- name: 'poolConfig';
5184
- writable: true;
5389
+ name: 'poolState';
5185
5390
  pda: {
5186
5391
  seeds: [
5187
5392
  {
5188
5393
  kind: 'const';
5189
- value: [112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103];
5394
+ value: [112, 111, 111, 108, 95, 115, 116, 97, 116, 101];
5190
5395
  },
5191
5396
  {
5192
5397
  kind: 'account';
5193
- path: 'pool_config.pool_id';
5194
- account: 'poolConfig';
5398
+ path: 'poolConfig';
5195
5399
  }
5196
5400
  ];
5197
5401
  };
5198
- }
5199
- ];
5200
- args: [
5201
- {
5202
- name: 'adminRnr';
5203
- type: {
5204
- defined: {
5205
- name: 'adminRnR';
5206
- };
5207
- };
5208
- }
5209
- ];
5210
- },
5211
- {
5212
- name: 'setEvaluationAgent';
5213
- docs: [
5214
- 'Sets the Evaluation Agent of the pool.',
5215
- '',
5216
- '# Arguments',
5217
- '* `new_ea` - The address of the new Evaluation Agent.',
5218
- '',
5219
- '# Access Control',
5220
- 'Only the pool owner and the Huma owner can call this instruction.'
5221
- ];
5222
- discriminator: [56, 217, 142, 95, 203, 7, 37, 66];
5223
- accounts: [
5402
+ },
5403
+ {
5404
+ name: 'trancheMint';
5405
+ },
5406
+ {
5407
+ name: 'poolOperatorConfig';
5408
+ },
5409
+ {
5410
+ name: 'yieldDistributingLenderConfig';
5411
+ writable: true;
5412
+ pda: {
5413
+ seeds: [
5414
+ {
5415
+ kind: 'const';
5416
+ value: [
5417
+ 121,
5418
+ 105,
5419
+ 101,
5420
+ 108,
5421
+ 100,
5422
+ 95,
5423
+ 100,
5424
+ 105,
5425
+ 115,
5426
+ 116,
5427
+ 114,
5428
+ 105,
5429
+ 98,
5430
+ 117,
5431
+ 116,
5432
+ 105,
5433
+ 110,
5434
+ 103,
5435
+ 95,
5436
+ 108,
5437
+ 101,
5438
+ 110,
5439
+ 100,
5440
+ 101,
5441
+ 114
5442
+ ];
5443
+ },
5444
+ {
5445
+ kind: 'account';
5446
+ path: 'trancheMint';
5447
+ },
5448
+ {
5449
+ kind: 'arg';
5450
+ path: 'lender';
5451
+ }
5452
+ ];
5453
+ };
5454
+ }
5455
+ ];
5456
+ args: [
5457
+ {
5458
+ name: 'lender';
5459
+ type: 'pubkey';
5460
+ }
5461
+ ];
5462
+ },
5463
+ {
5464
+ name: 'setAdminRnr';
5465
+ docs: [
5466
+ 'Sets pool admin rewards and responsibility settings.',
5467
+ '',
5468
+ '# Arguments',
5469
+ '* `admin_rnr` - The new admin R&R settings.',
5470
+ '',
5471
+ '# Access Control',
5472
+ 'Only the pool owner and the Huma owner can call this instruction.'
5473
+ ];
5474
+ discriminator: [18, 166, 239, 157, 122, 242, 254, 152];
5475
+ accounts: [
5476
+ {
5477
+ name: 'signer';
5478
+ signer: true;
5479
+ },
5480
+ {
5481
+ name: 'humaConfig';
5482
+ pda: {
5483
+ seeds: [
5484
+ {
5485
+ kind: 'const';
5486
+ value: [104, 117, 109, 97, 95, 99, 111, 110, 102, 105, 103];
5487
+ },
5488
+ {
5489
+ kind: 'account';
5490
+ path: 'huma_config.id';
5491
+ account: 'humaConfig';
5492
+ }
5493
+ ];
5494
+ };
5495
+ relations: ['poolConfig'];
5496
+ },
5497
+ {
5498
+ name: 'poolConfig';
5499
+ writable: true;
5500
+ pda: {
5501
+ seeds: [
5502
+ {
5503
+ kind: 'const';
5504
+ value: [112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103];
5505
+ },
5506
+ {
5507
+ kind: 'account';
5508
+ path: 'pool_config.pool_id';
5509
+ account: 'poolConfig';
5510
+ }
5511
+ ];
5512
+ };
5513
+ }
5514
+ ];
5515
+ args: [
5516
+ {
5517
+ name: 'adminRnr';
5518
+ type: {
5519
+ defined: {
5520
+ name: 'adminRnR';
5521
+ };
5522
+ };
5523
+ }
5524
+ ];
5525
+ },
5526
+ {
5527
+ name: 'setEvaluationAgent';
5528
+ docs: [
5529
+ 'Sets the Evaluation Agent of the pool.',
5530
+ '',
5531
+ '# Arguments',
5532
+ '* `new_ea` - The address of the new Evaluation Agent.',
5533
+ '',
5534
+ '# Access Control',
5535
+ 'Only the pool owner and the Huma owner can call this instruction.'
5536
+ ];
5537
+ discriminator: [56, 217, 142, 95, 203, 7, 37, 66];
5538
+ accounts: [
5224
5539
  {
5225
5540
  name: 'signer';
5226
5541
  signer: true;
@@ -7512,6 +7827,165 @@ export type Huma = {
7512
7827
  type: 'u128';
7513
7828
  }
7514
7829
  ];
7830
+ },
7831
+ {
7832
+ name: 'withdrawYields';
7833
+ docs: [
7834
+ 'Withdraws the yield accrued by the lender.',
7835
+ '',
7836
+ '# Access Control',
7837
+ 'Only yield distributing lenders can call this instruction.'
7838
+ ];
7839
+ discriminator: [248, 111, 218, 8, 55, 252, 196, 181];
7840
+ accounts: [
7841
+ {
7842
+ name: 'lender';
7843
+ signer: true;
7844
+ },
7845
+ {
7846
+ name: 'humaConfig';
7847
+ pda: {
7848
+ seeds: [
7849
+ {
7850
+ kind: 'const';
7851
+ value: [104, 117, 109, 97, 95, 99, 111, 110, 102, 105, 103];
7852
+ },
7853
+ {
7854
+ kind: 'account';
7855
+ path: 'huma_config.id';
7856
+ account: 'humaConfig';
7857
+ }
7858
+ ];
7859
+ };
7860
+ relations: ['poolConfig'];
7861
+ },
7862
+ {
7863
+ name: 'poolConfig';
7864
+ pda: {
7865
+ seeds: [
7866
+ {
7867
+ kind: 'const';
7868
+ value: [112, 111, 111, 108, 95, 99, 111, 110, 102, 105, 103];
7869
+ },
7870
+ {
7871
+ kind: 'account';
7872
+ path: 'pool_config.pool_id';
7873
+ account: 'poolConfig';
7874
+ }
7875
+ ];
7876
+ };
7877
+ },
7878
+ {
7879
+ name: 'poolState';
7880
+ writable: true;
7881
+ pda: {
7882
+ seeds: [
7883
+ {
7884
+ kind: 'const';
7885
+ value: [112, 111, 111, 108, 95, 115, 116, 97, 116, 101];
7886
+ },
7887
+ {
7888
+ kind: 'account';
7889
+ path: 'poolConfig';
7890
+ }
7891
+ ];
7892
+ };
7893
+ },
7894
+ {
7895
+ name: 'yieldDistributingLender';
7896
+ },
7897
+ {
7898
+ name: 'lenderState';
7899
+ writable: true;
7900
+ pda: {
7901
+ seeds: [
7902
+ {
7903
+ kind: 'const';
7904
+ value: [
7905
+ 108,
7906
+ 101,
7907
+ 110,
7908
+ 100,
7909
+ 101,
7910
+ 114,
7911
+ 95,
7912
+ 115,
7913
+ 116,
7914
+ 97,
7915
+ 116,
7916
+ 101
7917
+ ];
7918
+ },
7919
+ {
7920
+ kind: 'account';
7921
+ path: 'trancheMint';
7922
+ },
7923
+ {
7924
+ kind: 'account';
7925
+ path: 'lender';
7926
+ }
7927
+ ];
7928
+ };
7929
+ },
7930
+ {
7931
+ name: 'poolAuthority';
7932
+ pda: {
7933
+ seeds: [
7934
+ {
7935
+ kind: 'const';
7936
+ value: [
7937
+ 112,
7938
+ 111,
7939
+ 111,
7940
+ 108,
7941
+ 95,
7942
+ 97,
7943
+ 117,
7944
+ 116,
7945
+ 104,
7946
+ 111,
7947
+ 114,
7948
+ 105,
7949
+ 116,
7950
+ 121
7951
+ ];
7952
+ },
7953
+ {
7954
+ kind: 'account';
7955
+ path: 'poolConfig';
7956
+ }
7957
+ ];
7958
+ };
7959
+ },
7960
+ {
7961
+ name: 'underlyingMint';
7962
+ relations: ['poolConfig'];
7963
+ },
7964
+ {
7965
+ name: 'poolUnderlyingToken';
7966
+ writable: true;
7967
+ },
7968
+ {
7969
+ name: 'lenderUnderlyingToken';
7970
+ writable: true;
7971
+ },
7972
+ {
7973
+ name: 'trancheMint';
7974
+ writable: true;
7975
+ },
7976
+ {
7977
+ name: 'lenderTrancheToken';
7978
+ writable: true;
7979
+ },
7980
+ {
7981
+ name: 'underlyingTokenProgram';
7982
+ },
7983
+ {
7984
+ name: 'trancheTokenProgram';
7985
+ address: 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb';
7986
+ }
7987
+ ];
7988
+ args: [];
7515
7989
  }
7516
7990
  ];
7517
7991
  accounts: [
@@ -7566,6 +8040,10 @@ export type Huma = {
7566
8040
  {
7567
8041
  name: 'trancheState';
7568
8042
  discriminator: [212, 231, 254, 24, 238, 63, 92, 105];
8043
+ },
8044
+ {
8045
+ name: 'yieldDistributingLender';
8046
+ discriminator: [179, 145, 84, 62, 168, 249, 253, 29];
7569
8047
  }
7570
8048
  ];
7571
8049
  events: [
@@ -7733,6 +8211,10 @@ export type Huma = {
7733
8211
  name: 'poolClosedEvent';
7734
8212
  discriminator: [76, 55, 28, 161, 130, 142, 226, 133];
7735
8213
  },
8214
+ {
8215
+ name: 'poolConfigReallocatedEvent';
8216
+ discriminator: [90, 254, 193, 102, 77, 252, 10, 50];
8217
+ },
7736
8218
  {
7737
8219
  name: 'poolCreatedEvent';
7738
8220
  discriminator: [25, 94, 75, 47, 112, 99, 53, 63];
@@ -7825,6 +8307,14 @@ export type Huma = {
7825
8307
  name: 'remainingPeriodsExtendedEvent';
7826
8308
  discriminator: [19, 250, 33, 106, 8, 220, 78, 241];
7827
8309
  },
8310
+ {
8311
+ name: 'yieldDistributingLenderAddedEvent';
8312
+ discriminator: [198, 65, 87, 191, 19, 49, 27, 80];
8313
+ },
8314
+ {
8315
+ name: 'yieldDistributingLenderRemovedEvent';
8316
+ discriminator: [97, 210, 181, 37, 25, 43, 227, 77];
8317
+ },
7828
8318
  {
7829
8319
  name: 'yieldTrackerRefreshedEvent';
7830
8320
  discriminator: [48, 100, 71, 36, 117, 201, 145, 140];
@@ -7832,6 +8322,10 @@ export type Huma = {
7832
8322
  {
7833
8323
  name: 'yieldUpdatedEvent';
7834
8324
  discriminator: [177, 90, 108, 19, 131, 243, 44, 244];
8325
+ },
8326
+ {
8327
+ name: 'yieldsWithdrawnEvent';
8328
+ discriminator: [151, 129, 132, 11, 52, 147, 28, 227];
7835
8329
  }
7836
8330
  ];
7837
8331
  errors: [
@@ -7919,6 +8413,14 @@ export type Huma = {
7919
8413
  code: 6214;
7920
8414
  name: 'authorizedInitialDepositorRequired';
7921
8415
  },
8416
+ {
8417
+ code: 6215;
8418
+ name: 'lenderOrSentinelRequired';
8419
+ },
8420
+ {
8421
+ code: 6216;
8422
+ name: 'yieldDistributingLenderRequired';
8423
+ },
7922
8424
  {
7923
8425
  code: 6301;
7924
8426
  name: 'protocolFeeHigherThanUpperLimit';
@@ -8015,6 +8517,14 @@ export type Huma = {
8015
8517
  code: 6418;
8016
8518
  name: 'poolNameTooLong';
8017
8519
  },
8520
+ {
8521
+ code: 6419;
8522
+ name: 'invalidPoolConfig';
8523
+ },
8524
+ {
8525
+ code: 6420;
8526
+ name: 'insufficientBalanceForYieldWithdrawal';
8527
+ },
8018
8528
  {
8019
8529
  code: 6501;
8020
8530
  name: 'previousAssetsNotWithdrawn';
@@ -8035,6 +8545,14 @@ export type Huma = {
8035
8545
  code: 6505;
8036
8546
  name: 'epochClosedTooEarly';
8037
8547
  },
8548
+ {
8549
+ code: 6506;
8550
+ name: 'insufficientAuthorizationForAutoRedemption';
8551
+ },
8552
+ {
8553
+ code: 6507;
8554
+ name: 'redemptionCancellationDisabled';
8555
+ },
8038
8556
  {
8039
8557
  code: 6601;
8040
8558
  name: 'zeroPayPeriodsProvided';
@@ -9406,7 +9924,8 @@ export type Huma = {
9406
9924
  '* `max_senior_junior_ratio` - The upper bound of senior-to-junior ratio allowed.',
9407
9925
  '* `fixed_senior_yield_bps` - The fixed yield for senior tranche. Either this or tranches_risk_adjustment_bps is non-zero.',
9408
9926
  '* `tranches_risk_adjustment_bps` - Percentage of yield to be shifted from senior to junior. Either this or fixed_senior_yield_bps is non-zero.',
9409
- '* `withdrawal_lockup_period_days` - How long a lender has to wait after the last deposit before they can withdraw.'
9927
+ '* `withdrawal_lockup_period_days` - How long a lender has to wait after the last deposit before they can withdraw.',
9928
+ "* `auto_redemption_after_lockup` - When enabled, lenders' shares are automatically redeemed after the lockup period."
9410
9929
  ];
9411
9930
  type: {
9412
9931
  kind: 'struct';
@@ -9430,6 +9949,10 @@ export type Huma = {
9430
9949
  {
9431
9950
  name: 'withdrawalLockupPeriodDays';
9432
9951
  type: 'u16';
9952
+ },
9953
+ {
9954
+ name: 'autoRedemptionAfterLockup';
9955
+ type: 'bool';
9433
9956
  }
9434
9957
  ];
9435
9958
  };
@@ -10393,6 +10916,40 @@ export type Huma = {
10393
10916
  name: 'feeStructure';
10394
10917
  };
10395
10918
  };
10919
+ },
10920
+ {
10921
+ name: 'padding';
10922
+ type: {
10923
+ array: ['u8', 160];
10924
+ };
10925
+ }
10926
+ ];
10927
+ };
10928
+ },
10929
+ {
10930
+ name: 'poolConfigReallocatedEvent';
10931
+ docs: [
10932
+ 'The pool config has been reallocated.',
10933
+ '',
10934
+ '# Fields',
10935
+ '* `pool_config` - The address of the pool config account.',
10936
+ '* `account_span` - The size of the pool config account.',
10937
+ '* `lamports_diff` - The increased rent.'
10938
+ ];
10939
+ type: {
10940
+ kind: 'struct';
10941
+ fields: [
10942
+ {
10943
+ name: 'poolConfig';
10944
+ type: 'pubkey';
10945
+ },
10946
+ {
10947
+ name: 'accountSpan';
10948
+ type: 'u64';
10949
+ },
10950
+ {
10951
+ name: 'lamportsDiff';
10952
+ type: 'u64';
10396
10953
  }
10397
10954
  ];
10398
10955
  };
@@ -11576,6 +12133,68 @@ export type Huma = {
11576
12133
  ];
11577
12134
  };
11578
12135
  },
12136
+ {
12137
+ name: 'yieldDistributingLender';
12138
+ docs: [
12139
+ 'Designation of whether a lender is eligible for yield distribution. A lender with this',
12140
+ 'designation has the option to withdraw their yield generated from the pool.'
12141
+ ];
12142
+ type: {
12143
+ kind: 'struct';
12144
+ fields: [
12145
+ {
12146
+ name: 'bump';
12147
+ type: 'u8';
12148
+ }
12149
+ ];
12150
+ };
12151
+ },
12152
+ {
12153
+ name: 'yieldDistributingLenderAddedEvent';
12154
+ docs: [
12155
+ 'A lender has been designated as eligible for yield distribution.',
12156
+ '',
12157
+ '# Fields',
12158
+ '* `tranche` - The tranche mint key.',
12159
+ '* `lender` - The address of the lender with the designation.'
12160
+ ];
12161
+ type: {
12162
+ kind: 'struct';
12163
+ fields: [
12164
+ {
12165
+ name: 'tranche';
12166
+ type: 'pubkey';
12167
+ },
12168
+ {
12169
+ name: 'lender';
12170
+ type: 'pubkey';
12171
+ }
12172
+ ];
12173
+ };
12174
+ },
12175
+ {
12176
+ name: 'yieldDistributingLenderRemovedEvent';
12177
+ docs: [
12178
+ 'A lender has been designated as no longer eligible for yield distribution.',
12179
+ '',
12180
+ '# Fields',
12181
+ '* `tranche` - The tranche mint key.',
12182
+ '* `lender` - The address of the lender whose designation is being removed.'
12183
+ ];
12184
+ type: {
12185
+ kind: 'struct';
12186
+ fields: [
12187
+ {
12188
+ name: 'tranche';
12189
+ type: 'pubkey';
12190
+ },
12191
+ {
12192
+ name: 'lender';
12193
+ type: 'pubkey';
12194
+ }
12195
+ ];
12196
+ };
12197
+ },
11579
12198
  {
11580
12199
  name: 'yieldTrackerRefreshedEvent';
11581
12200
  docs: [
@@ -11636,6 +12255,39 @@ export type Huma = {
11636
12255
  }
11637
12256
  ];
11638
12257
  };
12258
+ },
12259
+ {
12260
+ name: 'yieldsWithdrawnEvent';
12261
+ docs: [
12262
+ 'A lender has withdrawn their yield.',
12263
+ '',
12264
+ '# Fields',
12265
+ '* `tranche` - The tranche mint key.',
12266
+ '* `lender` - The lender withdrawing yield.',
12267
+ '* `yields` - The amount of yield being withdrawn.',
12268
+ '* `shares_burned` - The number of shares burned.'
12269
+ ];
12270
+ type: {
12271
+ kind: 'struct';
12272
+ fields: [
12273
+ {
12274
+ name: 'tranche';
12275
+ type: 'pubkey';
12276
+ },
12277
+ {
12278
+ name: 'lender';
12279
+ type: 'pubkey';
12280
+ },
12281
+ {
12282
+ name: 'yields';
12283
+ type: 'u128';
12284
+ },
12285
+ {
12286
+ name: 'sharesBurned';
12287
+ type: 'u128';
12288
+ }
12289
+ ];
12290
+ };
11639
12291
  }
11640
12292
  ];
11641
12293
  constants: [
@@ -11803,6 +12455,11 @@ export type Huma = {
11803
12455
  name: 'trancheStateSeed';
11804
12456
  type: 'bytes';
11805
12457
  value: '[116, 114, 97, 110, 99, 104, 101, 95, 115, 116, 97, 116, 101]';
12458
+ },
12459
+ {
12460
+ name: 'yieldDistributingLenderSeed';
12461
+ type: 'bytes';
12462
+ value: '[121, 105, 101, 108, 100, 95, 100, 105, 115, 116, 114, 105, 98, 117, 116, 105, 110, 103, 95, 108, 101, 110, 100, 101, 114]';
11806
12463
  }
11807
12464
  ];
11808
12465
  };