@meteora-ag/dynamic-bonding-curve-sdk 1.4.8 → 1.4.10-rc.0

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.
package/dist/index.d.cts CHANGED
@@ -13,7 +13,7 @@ type DynamicBondingCurve = {
13
13
  address: 'dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN';
14
14
  metadata: {
15
15
  name: 'dynamicBondingCurve';
16
- version: '0.1.7';
16
+ version: '0.1.8';
17
17
  spec: '0.1.0';
18
18
  description: 'Created with Anchor';
19
19
  };
@@ -64,7 +64,6 @@ type DynamicBondingCurve = {
64
64
  {
65
65
  name: 'creator';
66
66
  signer: true;
67
- relations: ['pool'];
68
67
  },
69
68
  {
70
69
  name: 'tokenBaseProgram';
@@ -119,8 +118,8 @@ type DynamicBondingCurve = {
119
118
  ];
120
119
  },
121
120
  {
122
- name: 'claimPoolCreationFee';
123
- discriminator: [246, 51, 18, 222, 80, 42, 236, 205];
121
+ name: 'claimLegacyPoolCreationFee';
122
+ discriminator: [96, 11, 187, 225, 54, 117, 161, 134];
124
123
  accounts: [
125
124
  {
126
125
  name: 'pool';
@@ -131,10 +130,9 @@ type DynamicBondingCurve = {
131
130
  docs: ['Claim fee operator'];
132
131
  },
133
132
  {
134
- name: 'operator';
133
+ name: 'signer';
135
134
  docs: ['Operator'];
136
135
  signer: true;
137
- relations: ['claimFeeOperator'];
138
136
  },
139
137
  {
140
138
  name: 'treasury';
@@ -180,6 +178,61 @@ type DynamicBondingCurve = {
180
178
  ];
181
179
  args: [];
182
180
  },
181
+ {
182
+ name: 'claimPartnerPoolCreationFee';
183
+ discriminator: [250, 238, 26, 4, 139, 10, 101, 248];
184
+ accounts: [
185
+ {
186
+ name: 'config';
187
+ relations: ['pool'];
188
+ },
189
+ {
190
+ name: 'pool';
191
+ writable: true;
192
+ },
193
+ {
194
+ name: 'feeClaimer';
195
+ signer: true;
196
+ },
197
+ {
198
+ name: 'feeReceiver';
199
+ writable: true;
200
+ },
201
+ {
202
+ name: 'eventAuthority';
203
+ pda: {
204
+ seeds: [
205
+ {
206
+ kind: 'const';
207
+ value: [
208
+ 95,
209
+ 95,
210
+ 101,
211
+ 118,
212
+ 101,
213
+ 110,
214
+ 116,
215
+ 95,
216
+ 97,
217
+ 117,
218
+ 116,
219
+ 104,
220
+ 111,
221
+ 114,
222
+ 105,
223
+ 116,
224
+ 121
225
+ ];
226
+ }
227
+ ];
228
+ };
229
+ },
230
+ {
231
+ name: 'program';
232
+ }
233
+ ];
234
+ args: [];
235
+ },
183
236
  {
184
237
  name: 'claimProtocolFee';
185
238
  discriminator: [165, 228, 133, 48, 99, 249, 255, 33];
@@ -405,10 +458,9 @@ type DynamicBondingCurve = {
405
458
  docs: ['Claim fee operator'];
406
459
  },
407
460
  {
408
- name: 'operator';
409
- docs: ['Operator'];
461
+ name: 'signer';
462
+ docs: ['Signer'];
410
463
  signer: true;
411
- relations: ['claimFeeOperator'];
412
464
  },
413
465
  {
414
466
  name: 'tokenBaseProgram';
@@ -453,6 +505,67 @@ type DynamicBondingCurve = {
453
505
  ];
454
506
  args: [];
455
507
  },
508
+ {
509
+ name: 'claimProtocolPoolCreationFee';
510
+ discriminator: [114, 205, 83, 188, 240, 153, 25, 54];
511
+ accounts: [
512
+ {
513
+ name: 'config';
514
+ relations: ['pool'];
515
+ },
516
+ {
517
+ name: 'pool';
518
+ writable: true;
519
+ },
520
+ {
521
+ name: 'claimFeeOperator';
522
+ docs: ['Claim fee operator'];
523
+ },
524
+ {
525
+ name: 'signer';
526
+ docs: ['Operator'];
527
+ signer: true;
528
+ },
529
+ {
530
+ name: 'treasury';
531
+ writable: true;
532
+ address: '4EWqcx3aNZmMetCnxwLYwyNjan6XLGp3Ca2W316vrSjv';
533
+ },
534
+ {
535
+ name: 'eventAuthority';
536
+ pda: {
537
+ seeds: [
538
+ {
539
+ kind: 'const';
540
+ value: [
541
+ 95,
542
+ 95,
543
+ 101,
544
+ 118,
545
+ 101,
546
+ 110,
547
+ 116,
548
+ 95,
549
+ 97,
550
+ 117,
551
+ 116,
552
+ 104,
553
+ 111,
554
+ 114,
555
+ 105,
556
+ 116,
557
+ 121
558
+ ];
559
+ }
560
+ ];
561
+ };
562
+ },
563
+ {
564
+ name: 'program';
565
+ }
566
+ ];
567
+ args: [];
568
+ },
456
569
  {
457
570
  name: 'claimTradingFee';
458
571
  discriminator: [8, 236, 89, 49, 152, 125, 177, 81];
@@ -504,7 +617,6 @@ type DynamicBondingCurve = {
504
617
  {
505
618
  name: 'feeClaimer';
506
619
  signer: true;
507
- relations: ['config'];
508
620
  },
509
621
  {
510
622
  name: 'tokenBaseProgram';
@@ -559,8 +671,8 @@ type DynamicBondingCurve = {
559
671
  ];
560
672
  },
561
673
  {
562
- name: 'closeClaimFeeOperator';
563
- discriminator: [38, 134, 82, 216, 95, 124, 17, 99];
674
+ name: 'closeClaimProtocolFeeOperator';
675
+ discriminator: [8, 41, 87, 35, 80, 48, 121, 26];
564
676
  accounts: [
565
677
  {
566
678
  name: 'claimFeeOperator';
@@ -571,7 +683,7 @@ type DynamicBondingCurve = {
571
683
  writable: true;
572
684
  },
573
685
  {
574
- name: 'admin';
686
+ name: 'signer';
575
687
  signer: true;
576
688
  },
577
689
  {
@@ -610,9 +722,8 @@ type DynamicBondingCurve = {
610
722
  args: [];
611
723
  },
612
724
  {
613
- name: 'createClaimFeeOperator';
614
- docs: ['ADMIN FUNCTIONS_ ///'];
615
- discriminator: [169, 62, 207, 107, 58, 187, 162, 109];
725
+ name: 'createClaimProtocolFeeOperator';
726
+ discriminator: [51, 19, 150, 252, 105, 157, 48, 91];
616
727
  accounts: [
617
728
  {
618
729
  name: 'claimFeeOperator';
@@ -646,7 +757,11 @@ type DynamicBondingCurve = {
646
757
  name: 'operator';
647
758
  },
648
759
  {
649
- name: 'admin';
760
+ name: 'signer';
761
+ signer: true;
762
+ },
763
+ {
764
+ name: 'payer';
650
765
  writable: true;
651
766
  signer: true;
652
767
  },
@@ -1003,7 +1118,6 @@ type DynamicBondingCurve = {
1003
1118
  {
1004
1119
  name: 'creator';
1005
1120
  signer: true;
1006
- relations: ['virtualPool'];
1007
1121
  },
1008
1122
  {
1009
1123
  name: 'payer';
@@ -1095,7 +1209,6 @@ type DynamicBondingCurve = {
1095
1209
  {
1096
1210
  name: 'creator';
1097
1211
  signer: true;
1098
- relations: ['virtualPool'];
1099
1212
  },
1100
1213
  {
1101
1214
  name: 'tokenQuoteProgram';
@@ -2001,6 +2114,7 @@ type DynamicBondingCurve = {
2001
2114
  {
2002
2115
  name: 'firstPositionNftMint';
2003
2116
  writable: true;
2117
+ signer: true;
2004
2118
  },
2005
2119
  {
2006
2120
  name: 'firstPositionNftAccount';
@@ -2013,6 +2127,7 @@ type DynamicBondingCurve = {
2013
2127
  {
2014
2128
  name: 'secondPositionNftMint';
2015
2129
  writable: true;
2130
+ signer: true;
2016
2131
  optional: true;
2017
2132
  },
2018
2133
  {
@@ -2244,7 +2359,6 @@ type DynamicBondingCurve = {
2244
2359
  {
2245
2360
  name: 'feeClaimer';
2246
2361
  signer: true;
2247
- relations: ['config'];
2248
2362
  },
2249
2363
  {
2250
2364
  name: 'tokenQuoteProgram';
@@ -2403,6 +2517,15 @@ type DynamicBondingCurve = {
2403
2517
  docs: ['The mint of token'];
2404
2518
  relations: ['config'];
2405
2519
  },
2520
+ {
2521
+ name: 'claimFeeOperator';
2522
+ docs: ['Claim fee operator'];
2523
+ },
2524
+ {
2525
+ name: 'signer';
2526
+ docs: ['Signer'];
2527
+ signer: true;
2528
+ },
2406
2529
  {
2407
2530
  name: 'tokenQuoteProgram';
2408
2531
  docs: ['Token b program'];
@@ -2680,7 +2803,6 @@ type DynamicBondingCurve = {
2680
2803
  {
2681
2804
  name: 'creator';
2682
2805
  signer: true;
2683
- relations: ['virtualPool'];
2684
2806
  },
2685
2807
  {
2686
2808
  name: 'newCreator';
@@ -2720,27 +2842,6 @@ type DynamicBondingCurve = {
2720
2842
  ];
2721
2843
  args: [];
2722
2844
  },
2723
- {
2724
- name: 'withdrawLamportsFromPoolAuthority';
2725
- discriminator: [20, 185, 242, 240, 129, 24, 212, 194];
2726
- accounts: [
2727
- {
2728
- name: 'poolAuthority';
2729
- writable: true;
2730
- address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
2731
- },
2732
- {
2733
- name: 'receiver';
2734
- writable: true;
2735
- address: '4EWqcx3aNZmMetCnxwLYwyNjan6XLGp3Ca2W316vrSjv';
2736
- },
2737
- {
2738
- name: 'systemProgram';
2739
- address: '11111111111111111111111111111111';
2740
- }
2741
- ];
2742
- args: [];
2743
- },
2744
2845
  {
2745
2846
  name: 'withdrawLeftover';
2746
2847
  discriminator: [20, 198, 202, 237, 235, 243, 183, 66];
@@ -3034,6 +3135,10 @@ type DynamicBondingCurve = {
3034
3135
  name: 'evtInitializePool';
3035
3136
  discriminator: [228, 50, 246, 85, 203, 66, 134, 37];
3036
3137
  },
3138
+ {
3139
+ name: 'evtPartnerClaimPoolCreationFee';
3140
+ discriminator: [174, 223, 44, 150, 145, 98, 89, 195];
3141
+ },
3037
3142
  {
3038
3143
  name: 'evtPartnerMetadata';
3039
3144
  discriminator: [200, 127, 6, 55, 13, 32, 8, 150];
@@ -3330,6 +3435,31 @@ type DynamicBondingCurve = {
3330
3435
  code: 6050;
3331
3436
  name: 'accountInvariantViolation';
3332
3437
  msg: 'Account invariant violation';
3438
+ },
3439
+ {
3440
+ code: 6051;
3441
+ name: 'invalidPoolCreationFee';
3442
+ msg: 'Invalid pool creation fee';
3443
+ },
3444
+ {
3445
+ code: 6052;
3446
+ name: 'poolCreationFeeHasBeenClaimed';
3447
+ msg: 'Pool creation fee has been claimed';
3448
+ },
3449
+ {
3450
+ code: 6053;
3451
+ name: 'unauthorized';
3452
+ msg: 'Not permit to do this action';
3453
+ },
3454
+ {
3455
+ code: 6054;
3456
+ name: 'zeroPoolCreationFee';
3457
+ msg: 'Pool creation fee is zero';
3458
+ },
3459
+ {
3460
+ code: 6055;
3461
+ name: 'invalidMigrationLockedLiquidity';
3462
+ msg: 'Invalid migration locked liquidity';
3333
3463
  }
3334
3464
  ];
3335
3465
  types: [
@@ -3500,19 +3630,19 @@ type DynamicBondingCurve = {
3500
3630
  type: 'u8';
3501
3631
  },
3502
3632
  {
3503
- name: 'partnerLpPercentage';
3633
+ name: 'partnerLiquidityPercentage';
3504
3634
  type: 'u8';
3505
3635
  },
3506
3636
  {
3507
- name: 'partnerLockedLpPercentage';
3637
+ name: 'partnerPermanentLockedLiquidityPercentage';
3508
3638
  type: 'u8';
3509
3639
  },
3510
3640
  {
3511
- name: 'creatorLpPercentage';
3641
+ name: 'creatorLiquidityPercentage';
3512
3642
  type: 'u8';
3513
3643
  },
3514
3644
  {
3515
- name: 'creatorLockedLpPercentage';
3645
+ name: 'creatorPermanentLockedLiquidityPercentage';
3516
3646
  type: 'u8';
3517
3647
  },
3518
3648
  {
@@ -3569,11 +3699,32 @@ type DynamicBondingCurve = {
3569
3699
  };
3570
3700
  };
3571
3701
  },
3702
+ {
3703
+ name: 'poolCreationFee';
3704
+ docs: ['pool creation fee in SOL lamports value'];
3705
+ type: 'u64';
3706
+ },
3707
+ {
3708
+ name: 'partnerLiquidityVestingInfo';
3709
+ type: {
3710
+ defined: {
3711
+ name: 'liquidityVestingInfoParams';
3712
+ };
3713
+ };
3714
+ },
3715
+ {
3716
+ name: 'creatorLiquidityVestingInfo';
3717
+ type: {
3718
+ defined: {
3719
+ name: 'liquidityVestingInfoParams';
3720
+ };
3721
+ };
3722
+ },
3572
3723
  {
3573
3724
  name: 'padding';
3574
3725
  docs: ['padding for future use'];
3575
3726
  type: {
3576
- array: ['u64', 7];
3727
+ array: ['u8', 22];
3577
3728
  };
3578
3729
  },
3579
3730
  {
@@ -3763,7 +3914,7 @@ type DynamicBondingCurve = {
3763
3914
  type: 'pubkey';
3764
3915
  },
3765
3916
  {
3766
- name: 'treasury';
3917
+ name: 'receiver';
3767
3918
  type: 'pubkey';
3768
3919
  },
3769
3920
  {
@@ -3894,19 +4045,19 @@ type DynamicBondingCurve = {
3894
4045
  type: 'u8';
3895
4046
  },
3896
4047
  {
3897
- name: 'partnerLockedLpPercentage';
4048
+ name: 'partnerPermanentLockedLiquidityPercentage';
3898
4049
  type: 'u8';
3899
4050
  },
3900
4051
  {
3901
- name: 'partnerLpPercentage';
4052
+ name: 'partnerLiquidityPercentage';
3902
4053
  type: 'u8';
3903
4054
  },
3904
4055
  {
3905
- name: 'creatorLockedLpPercentage';
4056
+ name: 'creatorPermanentLockedLiquidityPercentage';
3906
4057
  type: 'u8';
3907
4058
  },
3908
4059
  {
3909
- name: 'creatorLpPercentage';
4060
+ name: 'creatorLiquidityPercentage';
3910
4061
  type: 'u8';
3911
4062
  },
3912
4063
  {
@@ -4078,6 +4229,26 @@ type DynamicBondingCurve = {
4078
4229
  ];
4079
4230
  };
4080
4231
  },
4232
+ {
4233
+ name: 'evtPartnerClaimPoolCreationFee';
4234
+ type: {
4235
+ kind: 'struct';
4236
+ fields: [
4237
+ {
4238
+ name: 'pool';
4239
+ type: 'pubkey';
4240
+ },
4241
+ {
4242
+ name: 'partner';
4243
+ type: 'pubkey';
4244
+ },
4245
+ {
4246
+ name: 'creationFee';
4247
+ type: 'u64';
4248
+ }
4249
+ ];
4250
+ };
4251
+ },
4081
4252
  {
4082
4253
  name: 'evtPartnerMetadata';
4083
4254
  docs: ['Create partner metadata'];
@@ -4376,6 +4547,76 @@ type DynamicBondingCurve = {
4376
4547
  ];
4377
4548
  };
4378
4549
  },
4550
+ {
4551
+ name: 'liquidityVestingInfo';
4552
+ serialization: 'bytemuck';
4553
+ repr: {
4554
+ kind: 'c';
4555
+ };
4556
+ type: {
4557
+ kind: 'struct';
4558
+ fields: [
4559
+ {
4560
+ name: 'isInitialized';
4561
+ type: 'u8';
4562
+ },
4563
+ {
4564
+ name: 'vestingPercentage';
4565
+ type: 'u8';
4566
+ },
4567
+ {
4568
+ name: 'padding';
4569
+ type: {
4570
+ array: ['u8', 2];
4571
+ };
4572
+ },
4573
+ {
4574
+ name: 'bpsPerPeriod';
4575
+ type: 'u16';
4576
+ },
4577
+ {
4578
+ name: 'numberOfPeriods';
4579
+ type: 'u16';
4580
+ },
4581
+ {
4582
+ name: 'frequency';
4583
+ type: 'u32';
4584
+ },
4585
+ {
4586
+ name: 'cliffDurationFromMigrationTime';
4587
+ type: 'u32';
4588
+ }
4589
+ ];
4590
+ };
4591
+ },
4592
+ {
4593
+ name: 'liquidityVestingInfoParams';
4594
+ type: {
4595
+ kind: 'struct';
4596
+ fields: [
4597
+ {
4598
+ name: 'vestingPercentage';
4599
+ type: 'u8';
4600
+ },
4601
+ {
4602
+ name: 'bpsPerPeriod';
4603
+ type: 'u16';
4604
+ },
4605
+ {
4606
+ name: 'numberOfPeriods';
4607
+ type: 'u16';
4608
+ },
4609
+ {
4610
+ name: 'cliffDurationFromMigrationTime';
4611
+ type: 'u32';
4612
+ },
4613
+ {
4614
+ name: 'frequency';
4615
+ type: 'u32';
4616
+ }
4617
+ ];
4618
+ };
4619
+ },
4379
4620
  {
4380
4621
  name: 'lockEscrow';
4381
4622
  docs: ['State of lock escrow account'];
@@ -4502,7 +4743,7 @@ type DynamicBondingCurve = {
4502
4743
  {
4503
4744
  name: 'padding0';
4504
4745
  docs: [
4505
- '!!! BE CAREFUL to use tomestone field, previous is pool creator'
4746
+ '!!! BE CAREFUL to use tombstone field, previous is pool creator'
4506
4747
  ];
4507
4748
  type: {
4508
4749
  array: ['u8', 32];
@@ -4519,23 +4760,23 @@ type DynamicBondingCurve = {
4519
4760
  type: 'pubkey';
4520
4761
  },
4521
4762
  {
4522
- name: 'partnerLockedLp';
4523
- docs: ['partner locked lp'];
4763
+ name: 'partnerLockedLiquidity';
4764
+ docs: ['partner locked liquidity'];
4524
4765
  type: 'u64';
4525
4766
  },
4526
4767
  {
4527
- name: 'partnerLp';
4528
- docs: ['partner lp'];
4768
+ name: 'partnerLiquidity';
4769
+ docs: ['partner liquidity'];
4529
4770
  type: 'u64';
4530
4771
  },
4531
4772
  {
4532
- name: 'creatorLockedLp';
4533
- docs: ['creator locked lp'];
4773
+ name: 'creatorLockedLiquidity';
4774
+ docs: ['creator locked liquidity'];
4534
4775
  type: 'u64';
4535
4776
  },
4536
4777
  {
4537
- name: 'creatorLp';
4538
- docs: ['creator lp'];
4778
+ name: 'creatorLiquidity';
4779
+ docs: ['creator liquidity'];
4539
4780
  type: 'u64';
4540
4781
  },
4541
4782
  {
@@ -4545,25 +4786,29 @@ type DynamicBondingCurve = {
4545
4786
  },
4546
4787
  {
4547
4788
  name: 'creatorLockedStatus';
4548
- docs: ['flag to check whether lp is locked for creator'];
4789
+ docs: [
4790
+ 'flag to check whether liquidity token is locked for creator'
4791
+ ];
4549
4792
  type: 'u8';
4550
4793
  },
4551
4794
  {
4552
4795
  name: 'partnerLockedStatus';
4553
- docs: ['flag to check whether lp is locked for partner'];
4796
+ docs: [
4797
+ 'flag to check whether liquidity token is locked for partner'
4798
+ ];
4554
4799
  type: 'u8';
4555
4800
  },
4556
4801
  {
4557
4802
  name: 'creatorClaimStatus';
4558
4803
  docs: [
4559
- 'flag to check whether creator has claimed lp token'
4804
+ 'flag to check whether creator has claimed liquidity token'
4560
4805
  ];
4561
4806
  type: 'u8';
4562
4807
  },
4563
4808
  {
4564
4809
  name: 'partnerClaimStatus';
4565
4810
  docs: [
4566
- 'flag to check whether partner has claimed lp token'
4811
+ 'flag to check whether partner has claimed liquidity token'
4567
4812
  ];
4568
4813
  type: 'u8';
4569
4814
  },
@@ -4684,6 +4929,36 @@ type DynamicBondingCurve = {
4684
4929
  };
4685
4930
  };
4686
4931
  },
4932
+ {
4933
+ name: 'partnerLiquidityVestingInfo';
4934
+ type: {
4935
+ defined: {
4936
+ name: 'liquidityVestingInfo';
4937
+ };
4938
+ };
4939
+ },
4940
+ {
4941
+ name: 'creatorLiquidityVestingInfo';
4942
+ type: {
4943
+ defined: {
4944
+ name: 'liquidityVestingInfo';
4945
+ };
4946
+ };
4947
+ },
4948
+ {
4949
+ name: 'padding0';
4950
+ docs: ['Padding for future use'];
4951
+ type: {
4952
+ array: ['u8', 14];
4953
+ };
4954
+ },
4955
+ {
4956
+ name: 'padding1';
4957
+ docs: [
4958
+ 'Previously was protocol and referral fee percent. Beware of tombstone.'
4959
+ ];
4960
+ type: 'u16';
4961
+ },
4687
4962
  {
4688
4963
  name: 'collectFeeMode';
4689
4964
  docs: ['Collect fee mode'];
@@ -4720,23 +4995,23 @@ type DynamicBondingCurve = {
4720
4995
  type: 'u8';
4721
4996
  },
4722
4997
  {
4723
- name: 'partnerLockedLpPercentage';
4724
- docs: ['partner locked lp percentage'];
4998
+ name: 'partnerPermanentLockedLiquidityPercentage';
4999
+ docs: ['partner locked liquidity percentage'];
4725
5000
  type: 'u8';
4726
5001
  },
4727
5002
  {
4728
- name: 'partnerLpPercentage';
4729
- docs: ['partner lp percentage'];
5003
+ name: 'partnerLiquidityPercentage';
5004
+ docs: ['partner liquidity percentage'];
4730
5005
  type: 'u8';
4731
5006
  },
4732
5007
  {
4733
- name: 'creatorLockedLpPercentage';
5008
+ name: 'creatorPermanentLockedLiquidityPercentage';
4734
5009
  docs: ['creator post migration fee percentage'];
4735
5010
  type: 'u8';
4736
5011
  },
4737
5012
  {
4738
- name: 'creatorLpPercentage';
4739
- docs: ['creator lp percentage'];
5013
+ name: 'creatorLiquidityPercentage';
5014
+ docs: ['creator liquidity percentage'];
4740
5015
  type: 'u8';
4741
5016
  },
4742
5017
  {
@@ -4772,8 +5047,7 @@ type DynamicBondingCurve = {
4772
5047
  type: 'u8';
4773
5048
  },
4774
5049
  {
4775
- name: 'padding0';
4776
- docs: ['padding 0'];
5050
+ name: 'padding2';
4777
5051
  type: {
4778
5052
  array: ['u8', 7];
4779
5053
  };
@@ -4836,9 +5110,14 @@ type DynamicBondingCurve = {
4836
5110
  name: 'padding1';
4837
5111
  docs: ['padding 1'];
4838
5112
  type: {
4839
- array: ['u8', 12];
5113
+ array: ['u8', 4];
4840
5114
  };
4841
5115
  },
5116
+ {
5117
+ name: 'poolCreationFee';
5118
+ docs: ['pool creation fee in lamports value'];
5119
+ type: 'u64';
5120
+ },
4842
5121
  {
4843
5122
  name: 'padding2';
4844
5123
  docs: ['padding 2'];
@@ -4946,26 +5225,6 @@ type DynamicBondingCurve = {
4946
5225
  name: 'dynamicFeeConfig';
4947
5226
  };
4948
5227
  };
4949
- },
4950
- {
4951
- name: 'padding0';
4952
- type: {
4953
- array: ['u64', 5];
4954
- };
4955
- },
4956
- {
4957
- name: 'padding1';
4958
- type: {
4959
- array: ['u8', 6];
4960
- };
4961
- },
4962
- {
4963
- name: 'protocolFeePercent';
4964
- type: 'u8';
4965
- },
4966
- {
4967
- name: 'referralFeePercent';
4968
- type: 'u8';
4969
5228
  }
4970
5229
  ];
4971
5230
  };
@@ -5285,14 +5544,21 @@ type DynamicBondingCurve = {
5285
5544
  docs: ['creator quote fee'];
5286
5545
  type: 'u64';
5287
5546
  },
5547
+ {
5548
+ name: 'legacyCreationFeeBits';
5549
+ docs: ['legacy creation fee bits, we dont use this now'];
5550
+ type: 'u8';
5551
+ },
5288
5552
  {
5289
5553
  name: 'creationFeeBits';
5554
+ docs: ['pool creation fee claim status'];
5290
5555
  type: 'u8';
5291
5556
  },
5292
5557
  {
5293
5558
  name: 'padding0';
5559
+ docs: ['Padding for further use'];
5294
5560
  type: {
5295
- array: ['u8', 7];
5561
+ array: ['u8', 6];
5296
5562
  };
5297
5563
  },
5298
5564
  {
@@ -5397,7 +5663,7 @@ declare class DynamicBondingCurveProgram {
5397
5663
  }
5398
5664
 
5399
5665
  type DynamicCurveProgram = Program<DynamicBondingCurve>;
5400
- type CreateConfigAccounts = Accounts<DynamicBondingCurve['instructions']['6']>['createConfig'];
5666
+ type CreateConfigAccounts = Accounts<DynamicBondingCurve['instructions']['8']>['createConfig'];
5401
5667
  type ConfigParameters = IdlTypes<DynamicBondingCurve>['configParameters'];
5402
5668
  type LockedVestingParameters = IdlTypes<DynamicBondingCurve>['lockedVestingParams'];
5403
5669
  type InitializePoolParameters = IdlTypes<DynamicBondingCurve>['initializePoolParameters'];
@@ -5412,6 +5678,7 @@ type MigratedPoolFee = IdlTypes<DynamicBondingCurve>['migratedPoolFee'];
5412
5678
  type SwapResult = IdlTypes<DynamicBondingCurve>['swapResult'];
5413
5679
  type SwapResult2 = IdlTypes<DynamicBondingCurve>['swapResult2'];
5414
5680
  type CreatePartnerMetadataParameters = IdlTypes<DynamicBondingCurve>['createPartnerMetadataParameters'];
5681
+ type LiquidityVestingInfoParameters = IdlTypes<DynamicBondingCurve>['liquidityVestingInfoParams'];
5415
5682
  type PoolConfig = IdlAccounts<DynamicBondingCurve>['poolConfig'];
5416
5683
  type VirtualPool = IdlAccounts<DynamicBondingCurve>['virtualPool'];
5417
5684
  type MeteoraDammMigrationMetadata = IdlAccounts<DynamicBondingCurve>['meteoraDammMigrationMetadata'];
@@ -5520,27 +5787,30 @@ type BaseFeeParams = {
5520
5787
  };
5521
5788
  type BuildCurveBaseParams = {
5522
5789
  totalTokenSupply: number;
5523
- migrationOption: MigrationOption;
5790
+ tokenType: TokenType;
5524
5791
  tokenBaseDecimal: TokenDecimal;
5525
5792
  tokenQuoteDecimal: TokenDecimal;
5526
- lockedVestingParam: LockedVestingParams;
5793
+ tokenUpdateAuthority: number;
5794
+ lockedVestingParams: LockedVestingParams;
5795
+ leftover: number;
5527
5796
  baseFeeParams: BaseFeeParams;
5528
5797
  dynamicFeeEnabled: boolean;
5529
5798
  activationType: ActivationType;
5530
5799
  collectFeeMode: CollectFeeMode;
5531
- migrationFeeOption: MigrationFeeOption;
5532
- tokenType: TokenType;
5533
- partnerLpPercentage: number;
5534
- creatorLpPercentage: number;
5535
- partnerLockedLpPercentage: number;
5536
- creatorLockedLpPercentage: number;
5537
5800
  creatorTradingFeePercentage: number;
5538
- leftover: number;
5539
- tokenUpdateAuthority: number;
5801
+ poolCreationFee: number;
5802
+ migrationOption: MigrationOption;
5803
+ migrationFeeOption: MigrationFeeOption;
5540
5804
  migrationFee: {
5541
5805
  feePercentage: number;
5542
5806
  creatorFeePercentage: number;
5543
5807
  };
5808
+ partnerPermanentLockedLiquidityPercentage: number;
5809
+ partnerLiquidityPercentage: number;
5810
+ creatorPermanentLockedLiquidityPercentage: number;
5811
+ creatorLiquidityPercentage: number;
5812
+ partnerLiquidityVestingInfoParams?: LiquidityVestingInfoParams;
5813
+ creatorLiquidityVestingInfoParams?: LiquidityVestingInfoParams;
5544
5814
  migratedPoolFee?: {
5545
5815
  collectFeeMode: CollectFeeMode;
5546
5816
  dynamicFee: DammV2DynamicFeeMode;
@@ -5560,11 +5830,21 @@ type BuildCurveWithTwoSegmentsParams = BuildCurveBaseParams & {
5560
5830
  migrationMarketCap: number;
5561
5831
  percentageSupplyOnMigration: number;
5562
5832
  };
5833
+ type BuildCurveWithMidPriceParams = BuildCurveBaseParams & {
5834
+ initialMarketCap: number;
5835
+ migrationMarketCap: number;
5836
+ midPrice: number;
5837
+ percentageSupplyOnMigration: number;
5838
+ };
5563
5839
  type BuildCurveWithLiquidityWeightsParams = BuildCurveBaseParams & {
5564
5840
  initialMarketCap: number;
5565
5841
  migrationMarketCap: number;
5566
5842
  liquidityWeights: number[];
5567
5843
  };
5844
+ type BuildCurveWithCustomSqrtPricesParams = BuildCurveBaseParams & {
5845
+ sqrtPrices: BN[];
5846
+ liquidityWeights?: number[];
5847
+ };
5568
5848
  type InitializePoolBaseParams = {
5569
5849
  name: string;
5570
5850
  symbol: string;
@@ -5803,6 +6083,17 @@ type WithdrawMigrationFeeParams = {
5803
6083
  virtualPool: PublicKey;
5804
6084
  sender: PublicKey;
5805
6085
  };
6086
+ type ClaimPartnerPoolCreationFeeParams = {
6087
+ virtualPool: PublicKey;
6088
+ feeReceiver: PublicKey;
6089
+ };
6090
+ type LiquidityVestingInfoParams = {
6091
+ vestingPercentage: number;
6092
+ bpsPerPeriod: number;
6093
+ numberOfPeriods: number;
6094
+ cliffDurationFromMigrationTime: number;
6095
+ totalDuration: number;
6096
+ };
5806
6097
  interface BaseFeeHandler {
5807
6098
  validate(collectFeeMode: CollectFeeMode, activationType: ActivationType): boolean;
5808
6099
  getBaseFeeNumeratorFromIncludedFeeAmount(currentPoint: BN, activationPoint: BN, tradeDirection: TradeDirection, includedFeeAmount: BN): BN;
@@ -6005,6 +6296,12 @@ declare class PartnerService extends DynamicBondingCurveProgram {
6005
6296
  * @returns A partner withdraw migration fee transaction
6006
6297
  */
6007
6298
  partnerWithdrawMigrationFee(params: WithdrawMigrationFeeParams): Promise<Transaction>;
6299
+ /**
6300
+ * Claim partner pool creation fee
6301
+ * @param params - The claim partner pool creation fee parameters
6302
+ * @returns A claim partner pool creation fee transaction
6303
+ */
6304
+ claimPartnerPoolCreationFee(params: ClaimPartnerPoolCreationFeeParams): Promise<Transaction>;
6008
6305
  }
6009
6306
 
6010
6307
  declare class PoolService extends DynamicBondingCurveProgram {
@@ -6462,49 +6759,54 @@ declare class DynamicBondingCurveClient {
6462
6759
  static create(connection: Connection, commitment?: Commitment): DynamicBondingCurveClient;
6463
6760
  }
6464
6761
 
6465
- declare const OFFSET: number;
6466
- declare const U128_MAX: BN$1;
6467
- declare const U64_MAX: BN$1;
6468
- declare const U16_MAX = 65535;
6469
- declare const MIN_SQRT_PRICE: BN$1;
6470
- declare const MAX_SQRT_PRICE: BN$1;
6762
+ declare const MAX_CURVE_POINT = 16;
6763
+ declare const OFFSET = 64;
6471
6764
  declare const RESOLUTION = 64;
6472
6765
  declare const ONE_Q64: BN$1;
6473
6766
  declare const FEE_DENOMINATOR = 1000000000;
6767
+ declare const MAX_BASIS_POINT = 10000;
6768
+ declare const U16_MAX = 65535;
6769
+ declare const U64_MAX: BN$1;
6770
+ declare const U128_MAX: BN$1;
6771
+ declare const MIN_SQRT_PRICE: BN$1;
6772
+ declare const MAX_SQRT_PRICE: BN$1;
6474
6773
  declare const MIN_FEE_BPS = 25;
6475
6774
  declare const MAX_FEE_BPS = 9900;
6476
6775
  declare const MIN_FEE_NUMERATOR = 2500000;
6477
6776
  declare const MAX_FEE_NUMERATOR = 990000000;
6478
- declare const BASIS_POINT_MAX = 10000;
6479
- declare const MAX_CURVE_POINT = 16;
6480
- declare const PARTNER_SURPLUS_SHARE = 80;
6481
- declare const SWAP_BUFFER_PERCENTAGE = 25;
6482
- declare const MAX_MIGRATION_FEE_PERCENTAGE = 99;
6483
- declare const MAX_CREATOR_MIGRATION_FEE_PERCENTAGE = 100;
6484
6777
  declare const MAX_RATE_LIMITER_DURATION_IN_SECONDS = 43200;
6485
6778
  declare const MAX_RATE_LIMITER_DURATION_IN_SLOTS = 108000;
6486
- declare const SLOT_DURATION = 400;
6487
- declare const TIMESTAMP_DURATION = 1000;
6488
- declare const DYNAMIC_BONDING_CURVE_PROGRAM_ID: PublicKey;
6489
- declare const METAPLEX_PROGRAM_ID: PublicKey;
6490
- declare const DAMM_V1_PROGRAM_ID: PublicKey;
6491
- declare const DAMM_V2_PROGRAM_ID: PublicKey;
6492
- declare const VAULT_PROGRAM_ID: PublicKey;
6493
- declare const LOCKER_PROGRAM_ID: PublicKey;
6494
- declare const BASE_ADDRESS: PublicKey;
6495
6779
  declare const DYNAMIC_FEE_FILTER_PERIOD_DEFAULT = 10;
6496
6780
  declare const DYNAMIC_FEE_DECAY_PERIOD_DEFAULT = 120;
6497
6781
  declare const DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT = 5000;
6498
- declare const MAX_DYNAMIC_FEE_PERCENTAGE = 20;
6499
6782
  declare const DYNAMIC_FEE_SCALING_FACTOR: BN$1;
6500
6783
  declare const DYNAMIC_FEE_ROUNDING_OFFSET: BN$1;
6501
6784
  declare const BIN_STEP_BPS_DEFAULT = 1;
6502
6785
  declare const BIN_STEP_BPS_U128_DEFAULT: BN$1;
6503
- declare const MAX_PRICE_CHANGE_BPS_DEFAULT = 1500;
6786
+ declare const MAX_PRICE_CHANGE_PERCENTAGE_DEFAULT = 20;
6787
+ declare const PROTOCOL_FEE_PERCENT = 20;
6788
+ declare const HOST_FEE_PERCENT = 20;
6789
+ declare const SWAP_BUFFER_PERCENTAGE = 25;
6790
+ declare const MAX_MIGRATION_FEE_PERCENTAGE = 99;
6791
+ declare const MAX_CREATOR_MIGRATION_FEE_PERCENTAGE = 100;
6792
+ declare const MIN_LOCKED_LIQUIDITY_BPS = 1000;
6793
+ declare const SECONDS_PER_DAY = 86400;
6794
+ declare const MAX_LOCK_DURATION_IN_SECONDS = 63072000;
6795
+ declare const PROTOCOL_POOL_CREATION_FEE_PERCENT = 10;
6796
+ declare const MIN_POOL_CREATION_FEE = 1000000;
6797
+ declare const MAX_POOL_CREATION_FEE = 100000000000;
6504
6798
  declare const MIN_MIGRATED_POOL_FEE_BPS = 10;
6505
6799
  declare const MAX_MIGRATED_POOL_FEE_BPS = 1000;
6800
+ declare const DYNAMIC_BONDING_CURVE_PROGRAM_ID: PublicKey;
6801
+ declare const METAPLEX_PROGRAM_ID: PublicKey;
6802
+ declare const DAMM_V1_PROGRAM_ID: PublicKey;
6803
+ declare const DAMM_V2_PROGRAM_ID: PublicKey;
6804
+ declare const VAULT_PROGRAM_ID: PublicKey;
6805
+ declare const LOCKER_PROGRAM_ID: PublicKey;
6806
+ declare const BASE_ADDRESS: PublicKey;
6506
6807
  declare const DAMM_V1_MIGRATION_FEE_ADDRESS: PublicKey[];
6507
6808
  declare const DAMM_V2_MIGRATION_FEE_ADDRESS: PublicKey[];
6809
+ declare const DEFAULT_LIQUIDITY_VESTING_INFO_PARAMS: LiquidityVestingInfoParams;
6508
6810
 
6509
6811
  /**
6510
6812
  * Get the first key
@@ -6572,6 +6874,12 @@ declare function getPriceFromSqrtPrice(sqrtPrice: BN$1, tokenBaseDecimal: TokenD
6572
6874
  * price = (sqrtPrice >> 64)^2 * 10^(tokenADecimal - tokenBDecimal)
6573
6875
  */
6574
6876
  declare const getSqrtPriceFromPrice: (price: string, tokenADecimal: number, tokenBDecimal: number) => BN$1;
6877
+ /**
6878
+ * Create the sqrt prices from the prices
6879
+ * @param prices - The prices
6880
+ * @returns The sqrt prices
6881
+ */
6882
+ declare const createSqrtPrices: (prices: number[], tokenBaseDecimal: TokenDecimal, tokenQuoteDecimal: TokenDecimal) => BN$1[];
6575
6883
  /**
6576
6884
  * Get the sqrt price from the market cap
6577
6885
  * @param marketCap - The market cap
@@ -6662,6 +6970,19 @@ declare const getTotalSupplyFromCurve: (migrationQuoteThreshold: BN$1, sqrtStart
6662
6970
  * @returns The migration threshold price
6663
6971
  */
6664
6972
  declare const getMigrationThresholdPrice: (migrationThreshold: BN$1, sqrtStartPrice: BN$1, curve: Array<LiquidityDistributionParameters>) => BN$1;
6973
+ /**
6974
+ * Calculate the quote amount allocated to each curve segment
6975
+ * Formula: Δb = L * (√P_upper - √P_lower) for each segment
6976
+ * @param migrationQuoteThreshold - The total migration quote threshold
6977
+ * @param sqrtStartPrice - The start sqrt price
6978
+ * @param curve - The curve segments with sqrtPrice and liquidity
6979
+ * @returns Array of quote amounts for each segment and the final sqrt price reached
6980
+ */
6981
+ declare const getCurveBreakdown: (migrationQuoteThreshold: BN$1, sqrtStartPrice: BN$1, curve: Array<LiquidityDistributionParameters>) => {
6982
+ segmentAmounts: BN$1[];
6983
+ finalSqrtPrice: BN$1;
6984
+ totalAmount: BN$1;
6985
+ };
6665
6986
  /**
6666
6987
  * Get the swap amount with buffer
6667
6988
  * @param swapBaseAmount - The swap base amount
@@ -6680,6 +7001,22 @@ declare const getSwapAmountWithBuffer: (swapBaseAmount: BN$1, sqrtStartPrice: BN
6680
7001
  * @returns The percentage of supply for initial liquidity
6681
7002
  */
6682
7003
  declare const getPercentageSupplyOnMigration: (initialMarketCap: Decimal, migrationMarketCap: Decimal, lockedVesting: LockedVestingParameters, totalLeftover: BN$1, totalTokenSupply: BN$1) => number;
7004
+ /**
7005
+ * Calculate the adjusted percentageSupplyOnMigration that accounts for migrationFee
7006
+ *
7007
+ * Formula:
7008
+ * - D = desiredMarketCap
7009
+ * - M = migrationMarketCap
7010
+ * - f = migrationFee
7011
+ * - V = vesting percentage
7012
+ * - L = leftover percentage
7013
+ *
7014
+ * requiredRatio = sqrt(D / M)
7015
+ * percentageSupplyOnMigration = (requiredRatio * (1 - f) * (100 - V - L)) / (1 + requiredRatio * (1 - f))
7016
+ */
7017
+ declare function calculateAdjustedPercentageSupplyOnMigration(initialMarketCap: number, migrationMarketCap: number, migrationFee: {
7018
+ feePercentage: number;
7019
+ }, lockedVesting: LockedVestingParameters, totalLeftover: BN$1, totalTokenSupply: BN$1): number;
6683
7020
  /**
6684
7021
  * Get the migration quote amount
6685
7022
  * @param migrationMarketCap - The migration market cap
@@ -6724,7 +7061,7 @@ declare function getRateLimiterParams(baseFeeBps: number, feeIncrementBps: numbe
6724
7061
  * @param maxPriceChangeBps - The max price change in basis points
6725
7062
  * @returns The dynamic fee parameters
6726
7063
  */
6727
- declare function getDynamicFeeParams(baseFeeBps: number, maxPriceChangeBps?: number): DynamicFeeParameters;
7064
+ declare function getDynamicFeeParams(baseFeeBps: number, maxPriceChangePercentage?: number): DynamicFeeParameters;
6728
7065
  /**
6729
7066
  * Calculate the locked vesting parameters
6730
7067
  * @param totalLockedVestingAmount - The total vesting amount
@@ -6736,13 +7073,8 @@ declare function getDynamicFeeParams(baseFeeBps: number, maxPriceChangeBps?: num
6736
7073
  * @returns The locked vesting parameters
6737
7074
  * total_locked_vesting_amount = cliff_unlock_amount + (amount_per_period * number_of_period)
6738
7075
  */
6739
- declare function getLockedVestingParams(totalLockedVestingAmount: number, numberOfVestingPeriod: number, cliffUnlockAmount: number, totalVestingDuration: number, cliffDurationFromMigrationTime: number, tokenBaseDecimal: TokenDecimal): {
6740
- amountPerPeriod: BN$1;
6741
- cliffDurationFromMigrationTime: BN$1;
6742
- frequency: BN$1;
6743
- numberOfPeriod: BN$1;
6744
- cliffUnlockAmount: BN$1;
6745
- };
7076
+ declare function getLockedVestingParams(totalLockedVestingAmount: number, numberOfVestingPeriod: number, cliffUnlockAmount: number, totalVestingDuration: number, cliffDurationFromMigrationTime: number, tokenBaseDecimal: TokenDecimal): LockedVestingParameters;
7077
+ declare const getLiquidityVestingInfoParams: (vestingPercentage: number, bpsPerPeriod: number, numberOfPeriods: number, cliffDurationFromMigrationTime: number, totalDuration: number) => LiquidityVestingInfoParameters;
6746
7078
  /**
6747
7079
  * Get the two curve
6748
7080
  * @param migrationSqrPrice - The migration sqrt price
@@ -6840,6 +7172,23 @@ declare function getCurrentPoint(connection: Connection, activationType: Activat
6840
7172
  * @returns The amount in lamports
6841
7173
  */
6842
7174
  declare function prepareSwapAmountParam(amount: number, mintAddress: PublicKey, connection: Connection): Promise<BN$1>;
7175
+ /**
7176
+ * Calculate the locked liquidity BPS for a single vesting info at a given time.
7177
+ * @param vestingInfo - The liquidity vesting info parameters
7178
+ * @param nSeconds - Number of seconds after migration
7179
+ * @returns The locked liquidity in BPS (basis points)
7180
+ */
7181
+ declare function getVestingLockedLiquidityBpsAtNSeconds(vestingInfo: LiquidityVestingInfoParameters | undefined, nSeconds: number): number;
7182
+ /**
7183
+ * Calculate the locked liquidity BPS at a given time (in seconds) after migration
7184
+ * @param partnerPermanentLockedLiquidityPercentage - Partner's permanently locked liquidity percentage
7185
+ * @param creatorPermanentLockedLiquidityPercentage - Creator's permanently locked liquidity percentage
7186
+ * @param partnerLiquidityVestingInfo - Partner's liquidity vesting info (optional)
7187
+ * @param creatorLiquidityVestingInfo - Creator's liquidity vesting info (optional)
7188
+ * @param elapsedSeconds - Number of seconds after migration
7189
+ * @returns The total locked liquidity in BPS (basis points)
7190
+ */
7191
+ declare function calculateLockedLiquidityBpsAtTime(partnerPermanentLockedLiquidityPercentage: number, creatorPermanentLockedLiquidityPercentage: number, partnerLiquidityVestingInfo: LiquidityVestingInfoParameters | undefined, creatorLiquidityVestingInfo: LiquidityVestingInfoParameters | undefined, elapsedSeconds: number): number;
6843
7192
 
6844
7193
  /**
6845
7194
  * Derive DBC event authority
@@ -7032,6 +7381,12 @@ declare function deriveDammV1ProtocolFeeAddress(mint: PublicKey, pool: PublicKey
7032
7381
  * @returns The base key for the locker
7033
7382
  */
7034
7383
  declare function deriveBaseKeyForLocker(virtualPool: PublicKey): PublicKey;
7384
+ /**
7385
+ * Derive DAMM V2 position vesting account
7386
+ * @param position - The position
7387
+ * @returns The DAMM V2 position vesting account
7388
+ */
7389
+ declare function deriveDammV2PositionVestingAccount(position: PublicKey): PublicKey;
7035
7390
 
7036
7391
  /**
7037
7392
  * Convert a number or string to a BN value in lamports
@@ -7155,13 +7510,15 @@ declare function validateMigrationFeeOption(migrationFeeOption: MigrationFeeOpti
7155
7510
  declare function validateTokenDecimals(tokenDecimal: TokenDecimal): boolean;
7156
7511
  /**
7157
7512
  * Validate the LP percentages
7158
- * @param partnerLpPercentage - The partner LP percentage
7159
- * @param partnerLockedLpPercentage - The partner locked LP percentage
7160
- * @param creatorLpPercentage - The creator LP percentage
7161
- * @param creatorLockedLpPercentage - The creator locked LP percentage
7513
+ * @param partnerLiquidityPercentage - The partner liquidity percentage
7514
+ * @param partnerPermanentLockedLiquidityPercentage - The partner permanent locked liquidity percentage
7515
+ * @param creatorLiquidityPercentage - The creator liquidity percentage
7516
+ * @param creatorPermanentLockedLiquidityPercentage - The creator permanent locked liquidity percentage
7517
+ * @param partnerVestingPercentage - The partner vesting percentage (optional, defaults to 0)
7518
+ * @param creatorVestingPercentage - The creator vesting percentage (optional, defaults to 0)
7162
7519
  * @returns true if the LP percentages are valid, false otherwise
7163
7520
  */
7164
- declare function validateLPPercentages(partnerLpPercentage: number, partnerLockedLpPercentage: number, creatorLpPercentage: number, creatorLockedLpPercentage: number): boolean;
7521
+ declare function validateLPPercentages(partnerLiquidityPercentage: number, partnerPermanentLockedLiquidityPercentage: number, creatorLiquidityPercentage: number, creatorPermanentLockedLiquidityPercentage: number, partnerVestingPercentage: number, creatorVestingPercentage: number): boolean;
7165
7522
  /**
7166
7523
  * Validate the curve
7167
7524
  * @param curve - The curve
@@ -7192,6 +7549,28 @@ declare function validateTokenSupply(tokenSupply: {
7192
7549
  * @returns true if the token update authority option is valid, false otherwise
7193
7550
  */
7194
7551
  declare function validateTokenUpdateAuthorityOptions(option: TokenUpdateAuthorityOption): boolean;
7552
+ /**
7553
+ * Validate pool creation fee
7554
+ * @param poolCreationFee - The pool creation fee in lamports
7555
+ * @returns true if the pool creation fee is valid, false otherwise
7556
+ */
7557
+ declare function validatePoolCreationFee(poolCreationFee: BN$1): boolean;
7558
+ /**
7559
+ * Validate the liquidity vesting info parameters
7560
+ * @param vestingInfo - The liquidity vesting info parameters
7561
+ * @returns true if valid, false otherwise
7562
+ */
7563
+ declare function validateLiquidityVestingInfo(vestingInfo: LiquidityVestingInfoParameters): boolean;
7564
+ /**
7565
+ * Validate that the minimum locked liquidity requirement is met at day 1
7566
+ * The program requires at least MIN_LOCKED_LIQUIDITY_BPS (1000 = 10%) to be locked at SECONDS_PER_DAY (86400 seconds) after migration.
7567
+ * @param partnerPermanentLockedLiquidityPercentage - Partner's permanently locked liquidity percentage
7568
+ * @param creatorPermanentLockedLiquidityPercentage - Creator's permanently locked liquidity percentage
7569
+ * @param partnerLiquidityVestingInfo - Partner's liquidity vesting info (optional)
7570
+ * @param creatorLiquidityVestingInfo - Creator's liquidity vesting info (optional)
7571
+ * @returns true if the minimum locked liquidity requirement is met, false otherwise
7572
+ */
7573
+ declare function validateMinimumLockedLiquidity(partnerPermanentLockedLiquidityPercentage: number, creatorPermanentLockedLiquidityPercentage: number, partnerLiquidityVestingInfo: LiquidityVestingInfoParameters | undefined, creatorLiquidityVestingInfo: LiquidityVestingInfoParameters | undefined): boolean;
7195
7574
  declare function validateMigratedPoolFee(migratedPoolFee: MigratedPoolFee, migrationOption?: MigrationOption, migrationFeeOption?: MigrationFeeOption): boolean;
7196
7575
  /**
7197
7576
  * Validate the config parameters
@@ -7244,12 +7623,44 @@ declare function buildCurveWithMarketCap(buildCurveWithMarketCapParam: BuildCurv
7244
7623
  * @returns The build custom constant product curve by market cap
7245
7624
  */
7246
7625
  declare function buildCurveWithTwoSegments(buildCurveWithTwoSegmentsParam: BuildCurveWithTwoSegmentsParams): ConfigParameters;
7626
+ /**
7627
+ * Build a custom constant product curve with a mid price. This will create a two segment curve with a start price -> mid price, and a mid price -> migration price.
7628
+ * @param buildCurveWithMidPriceParam - The parameters for the custom constant product curve with a mid price
7629
+ * @returns The build custom constant product curve by mid price
7630
+ */
7631
+ declare function buildCurveWithMidPrice(buildCurveWithMidPriceParam: BuildCurveWithMidPriceParams): ConfigParameters;
7247
7632
  /**
7248
7633
  * Build a custom curve graph with liquidity weights, changing the curve shape based on the liquidity weights
7249
7634
  * @param buildCurveWithLiquidityWeightsParam - The parameters for the custom constant product curve with liquidity weights
7250
7635
  * @returns The build custom constant product curve with liquidity weights
7251
7636
  */
7252
7637
  declare function buildCurveWithLiquidityWeights(buildCurveWithLiquidityWeightsParam: BuildCurveWithLiquidityWeightsParams): ConfigParameters;
7638
+ /**
7639
+ * Build a custom curve with custom sqrt prices instead of liquidity weights.
7640
+ * This allows you to specify exactly what price points you want in your curve.
7641
+ *
7642
+ * @param buildCurveWithCustomSqrtPricesParam - The parameters for the custom curve with sqrt prices
7643
+ * @returns The build custom constant product curve with custom sqrt prices
7644
+ *
7645
+ * @remarks
7646
+ * The sqrtPrices array must:
7647
+ * - Be in ascending order
7648
+ * - Have at least 2 elements (start and end price)
7649
+ * - The first price will be the starting price (pMin)
7650
+ * - The last price will be the migration price (pMax)
7651
+ *
7652
+ * The liquidityWeights array (if provided):
7653
+ * - Must have length = sqrtPrices.length - 1
7654
+ * - Each weight determines how much liquidity is allocated to that price segment
7655
+ * - If not provided, liquidity is distributed evenly across all segments
7656
+ *
7657
+ * Example:
7658
+ * sqrtPrices = [p0, p1, p2, p3] creates 3 segments:
7659
+ * - Segment 0: p0 to p1 with weight[0]
7660
+ * - Segment 1: p1 to p2 with weight[1]
7661
+ * - Segment 2: p2 to p3 with weight[2]
7662
+ */
7663
+ declare function buildCurveWithCustomSqrtPrices(buildCurveWithCustomSqrtPricesParam: BuildCurveWithCustomSqrtPricesParams): ConfigParameters;
7253
7664
 
7254
7665
  /**
7255
7666
  * Program IDL in camelCase format in order to be used in JS/TS.
@@ -14972,7 +15383,7 @@ declare class FeeScheduler implements BaseFeeHandler {
14972
15383
  reductionFactor: BN$1;
14973
15384
  feeSchedulerMode: BaseFeeMode;
14974
15385
  constructor(cliffFeeNumerator: BN$1, numberOfPeriod: number, periodFrequency: BN$1, reductionFactor: BN$1, feeSchedulerMode: BaseFeeMode);
14975
- validate(collectFeeMode: CollectFeeMode, activationType: ActivationType): boolean;
15386
+ validate(): boolean;
14976
15387
  getBaseFeeNumeratorFromIncludedFeeAmount(currentPoint: BN$1, activationPoint: BN$1): BN$1;
14977
15388
  getBaseFeeNumeratorFromExcludedFeeAmount(currentPoint: BN$1, activationPoint: BN$1): BN$1;
14978
15389
  }
@@ -15139,7 +15550,7 @@ declare function getFeeNumeratorFromIncludedAmount(cliffFeeNumerator: BN$1, refe
15139
15550
  var address = "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN";
15140
15551
  var metadata = {
15141
15552
  name: "dynamic_bonding_curve",
15142
- version: "0.1.7",
15553
+ version: "0.1.8",
15143
15554
  spec: "0.1.0",
15144
15555
  description: "Created with Anchor"
15145
15556
  };
@@ -15216,10 +15627,7 @@ var instructions = [
15216
15627
  },
15217
15628
  {
15218
15629
  name: "creator",
15219
- signer: true,
15220
- relations: [
15221
- "pool"
15222
- ]
15630
+ signer: true
15223
15631
  },
15224
15632
  {
15225
15633
  name: "token_base_program",
@@ -15278,16 +15686,16 @@ var instructions = [
15278
15686
  ]
15279
15687
  },
15280
15688
  {
15281
- name: "claim_pool_creation_fee",
15689
+ name: "claim_legacy_pool_creation_fee",
15282
15690
  discriminator: [
15283
- 246,
15284
- 51,
15285
- 18,
15286
- 222,
15287
- 80,
15288
- 42,
15289
- 236,
15290
- 205
15691
+ 96,
15692
+ 11,
15693
+ 187,
15694
+ 225,
15695
+ 54,
15696
+ 117,
15697
+ 161,
15698
+ 134
15291
15699
  ],
15292
15700
  accounts: [
15293
15701
  {
@@ -15301,14 +15709,11 @@ var instructions = [
15301
15709
  ]
15302
15710
  },
15303
15711
  {
15304
- name: "operator",
15712
+ name: "signer",
15305
15713
  docs: [
15306
15714
  "Operator"
15307
15715
  ],
15308
- signer: true,
15309
- relations: [
15310
- "claim_fee_operator"
15311
- ]
15716
+ signer: true
15312
15717
  },
15313
15718
  {
15314
15719
  name: "treasury",
@@ -15355,6 +15760,73 @@ var instructions = [
15355
15760
  args: [
15356
15761
  ]
15357
15762
  },
15763
+ {
15764
+ name: "claim_partner_pool_creation_fee",
15765
+ discriminator: [
15766
+ 250,
15767
+ 238,
15768
+ 26,
15769
+ 4,
15770
+ 139,
15771
+ 10,
15772
+ 101,
15773
+ 248
15774
+ ],
15775
+ accounts: [
15776
+ {
15777
+ name: "config",
15778
+ relations: [
15779
+ "pool"
15780
+ ]
15781
+ },
15782
+ {
15783
+ name: "pool",
15784
+ writable: true
15785
+ },
15786
+ {
15787
+ name: "fee_claimer",
15788
+ signer: true
15789
+ },
15790
+ {
15791
+ name: "fee_receiver",
15792
+ writable: true
15793
+ },
15794
+ {
15795
+ name: "event_authority",
15796
+ pda: {
15797
+ seeds: [
15798
+ {
15799
+ kind: "const",
15800
+ value: [
15801
+ 95,
15802
+ 95,
15803
+ 101,
15804
+ 118,
15805
+ 101,
15806
+ 110,
15807
+ 116,
15808
+ 95,
15809
+ 97,
15810
+ 117,
15811
+ 116,
15812
+ 104,
15813
+ 111,
15814
+ 114,
15815
+ 105,
15816
+ 116,
15817
+ 121
15818
+ ]
15819
+ }
15820
+ ]
15821
+ }
15822
+ },
15823
+ {
15824
+ name: "program"
15825
+ }
15826
+ ],
15827
+ args: [
15828
+ ]
15829
+ },
15358
15830
  {
15359
15831
  name: "claim_protocol_fee",
15360
15832
  discriminator: [
@@ -15613,14 +16085,11 @@ var instructions = [
15613
16085
  ]
15614
16086
  },
15615
16087
  {
15616
- name: "operator",
16088
+ name: "signer",
15617
16089
  docs: [
15618
- "Operator"
16090
+ "Signer"
15619
16091
  ],
15620
- signer: true,
15621
- relations: [
15622
- "claim_fee_operator"
15623
- ]
16092
+ signer: true
15624
16093
  },
15625
16094
  {
15626
16095
  name: "token_base_program",
@@ -15670,6 +16139,83 @@ var instructions = [
15670
16139
  args: [
15671
16140
  ]
15672
16141
  },
16142
+ {
16143
+ name: "claim_protocol_pool_creation_fee",
16144
+ discriminator: [
16145
+ 114,
16146
+ 205,
16147
+ 83,
16148
+ 188,
16149
+ 240,
16150
+ 153,
16151
+ 25,
16152
+ 54
16153
+ ],
16154
+ accounts: [
16155
+ {
16156
+ name: "config",
16157
+ relations: [
16158
+ "pool"
16159
+ ]
16160
+ },
16161
+ {
16162
+ name: "pool",
16163
+ writable: true
16164
+ },
16165
+ {
16166
+ name: "claim_fee_operator",
16167
+ docs: [
16168
+ "Claim fee operator"
16169
+ ]
16170
+ },
16171
+ {
16172
+ name: "signer",
16173
+ docs: [
16174
+ "Operator"
16175
+ ],
16176
+ signer: true
16177
+ },
16178
+ {
16179
+ name: "treasury",
16180
+ writable: true,
16181
+ address: "4EWqcx3aNZmMetCnxwLYwyNjan6XLGp3Ca2W316vrSjv"
16182
+ },
16183
+ {
16184
+ name: "event_authority",
16185
+ pda: {
16186
+ seeds: [
16187
+ {
16188
+ kind: "const",
16189
+ value: [
16190
+ 95,
16191
+ 95,
16192
+ 101,
16193
+ 118,
16194
+ 101,
16195
+ 110,
16196
+ 116,
16197
+ 95,
16198
+ 97,
16199
+ 117,
16200
+ 116,
16201
+ 104,
16202
+ 111,
16203
+ 114,
16204
+ 105,
16205
+ 116,
16206
+ 121
16207
+ ]
16208
+ }
16209
+ ]
16210
+ }
16211
+ },
16212
+ {
16213
+ name: "program"
16214
+ }
16215
+ ],
16216
+ args: [
16217
+ ]
16218
+ },
15673
16219
  {
15674
16220
  name: "claim_trading_fee",
15675
16221
  discriminator: [
@@ -15751,10 +16297,7 @@ var instructions = [
15751
16297
  },
15752
16298
  {
15753
16299
  name: "fee_claimer",
15754
- signer: true,
15755
- relations: [
15756
- "config"
15757
- ]
16300
+ signer: true
15758
16301
  },
15759
16302
  {
15760
16303
  name: "token_base_program",
@@ -15813,16 +16356,16 @@ var instructions = [
15813
16356
  ]
15814
16357
  },
15815
16358
  {
15816
- name: "close_claim_fee_operator",
16359
+ name: "close_claim_protocol_fee_operator",
15817
16360
  discriminator: [
15818
- 38,
15819
- 134,
15820
- 82,
15821
- 216,
15822
- 95,
15823
- 124,
15824
- 17,
15825
- 99
16361
+ 8,
16362
+ 41,
16363
+ 87,
16364
+ 35,
16365
+ 80,
16366
+ 48,
16367
+ 121,
16368
+ 26
15826
16369
  ],
15827
16370
  accounts: [
15828
16371
  {
@@ -15834,7 +16377,7 @@ var instructions = [
15834
16377
  writable: true
15835
16378
  },
15836
16379
  {
15837
- name: "admin",
16380
+ name: "signer",
15838
16381
  signer: true
15839
16382
  },
15840
16383
  {
@@ -15874,19 +16417,16 @@ var instructions = [
15874
16417
  ]
15875
16418
  },
15876
16419
  {
15877
- name: "create_claim_fee_operator",
15878
- docs: [
15879
- "ADMIN FUNCTIONS_ ///"
15880
- ],
16420
+ name: "create_claim_protocol_fee_operator",
15881
16421
  discriminator: [
15882
- 169,
15883
- 62,
15884
- 207,
15885
- 107,
15886
- 58,
15887
- 187,
15888
- 162,
15889
- 109
16422
+ 51,
16423
+ 19,
16424
+ 150,
16425
+ 252,
16426
+ 105,
16427
+ 157,
16428
+ 48,
16429
+ 91
15890
16430
  ],
15891
16431
  accounts: [
15892
16432
  {
@@ -15918,10 +16458,14 @@ var instructions = [
15918
16458
  }
15919
16459
  },
15920
16460
  {
15921
- name: "operator"
16461
+ name: "operator"
16462
+ },
16463
+ {
16464
+ name: "signer",
16465
+ signer: true
15922
16466
  },
15923
16467
  {
15924
- name: "admin",
16468
+ name: "payer",
15925
16469
  writable: true,
15926
16470
  signer: true
15927
16471
  },
@@ -16346,10 +16890,7 @@ var instructions = [
16346
16890
  },
16347
16891
  {
16348
16892
  name: "creator",
16349
- signer: true,
16350
- relations: [
16351
- "virtual_pool"
16352
- ]
16893
+ signer: true
16353
16894
  },
16354
16895
  {
16355
16896
  name: "payer",
@@ -16465,10 +17006,7 @@ var instructions = [
16465
17006
  },
16466
17007
  {
16467
17008
  name: "creator",
16468
- signer: true,
16469
- relations: [
16470
- "virtual_pool"
16471
- ]
17009
+ signer: true
16472
17010
  },
16473
17011
  {
16474
17012
  name: "token_quote_program",
@@ -17507,7 +18045,8 @@ var instructions = [
17507
18045
  },
17508
18046
  {
17509
18047
  name: "first_position_nft_mint",
17510
- writable: true
18048
+ writable: true,
18049
+ signer: true
17511
18050
  },
17512
18051
  {
17513
18052
  name: "first_position_nft_account",
@@ -17520,6 +18059,7 @@ var instructions = [
17520
18059
  {
17521
18060
  name: "second_position_nft_mint",
17522
18061
  writable: true,
18062
+ signer: true,
17523
18063
  optional: true
17524
18064
  },
17525
18065
  {
@@ -17810,10 +18350,7 @@ var instructions = [
17810
18350
  },
17811
18351
  {
17812
18352
  name: "fee_claimer",
17813
- signer: true,
17814
- relations: [
17815
- "config"
17816
- ]
18353
+ signer: true
17817
18354
  },
17818
18355
  {
17819
18356
  name: "token_quote_program",
@@ -17996,6 +18533,19 @@ var instructions = [
17996
18533
  "config"
17997
18534
  ]
17998
18535
  },
18536
+ {
18537
+ name: "claim_fee_operator",
18538
+ docs: [
18539
+ "Claim fee operator"
18540
+ ]
18541
+ },
18542
+ {
18543
+ name: "signer",
18544
+ docs: [
18545
+ "Signer"
18546
+ ],
18547
+ signer: true
18548
+ },
17999
18549
  {
18000
18550
  name: "token_quote_program",
18001
18551
  docs: [
@@ -18366,10 +18916,7 @@ var instructions = [
18366
18916
  },
18367
18917
  {
18368
18918
  name: "creator",
18369
- signer: true,
18370
- relations: [
18371
- "virtual_pool"
18372
- ]
18919
+ signer: true
18373
18920
  },
18374
18921
  {
18375
18922
  name: "new_creator"
@@ -18410,37 +18957,6 @@ var instructions = [
18410
18957
  args: [
18411
18958
  ]
18412
18959
  },
18413
- {
18414
- name: "withdraw_lamports_from_pool_authority",
18415
- discriminator: [
18416
- 20,
18417
- 185,
18418
- 242,
18419
- 240,
18420
- 129,
18421
- 24,
18422
- 212,
18423
- 194
18424
- ],
18425
- accounts: [
18426
- {
18427
- name: "pool_authority",
18428
- writable: true,
18429
- address: "FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM"
18430
- },
18431
- {
18432
- name: "receiver",
18433
- writable: true,
18434
- address: "4EWqcx3aNZmMetCnxwLYwyNjan6XLGp3Ca2W316vrSjv"
18435
- },
18436
- {
18437
- name: "system_program",
18438
- address: "11111111111111111111111111111111"
18439
- }
18440
- ],
18441
- args: [
18442
- ]
18443
- },
18444
18960
  {
18445
18961
  name: "withdraw_leftover",
18446
18962
  discriminator: [
@@ -18965,6 +19481,19 @@ var events = [
18965
19481
  37
18966
19482
  ]
18967
19483
  },
19484
+ {
19485
+ name: "EvtPartnerClaimPoolCreationFee",
19486
+ discriminator: [
19487
+ 174,
19488
+ 223,
19489
+ 44,
19490
+ 150,
19491
+ 145,
19492
+ 98,
19493
+ 89,
19494
+ 195
19495
+ ]
19496
+ },
18968
19497
  {
18969
19498
  name: "EvtPartnerMetadata",
18970
19499
  discriminator: [
@@ -19351,6 +19880,31 @@ var errors = [
19351
19880
  code: 6050,
19352
19881
  name: "AccountInvariantViolation",
19353
19882
  msg: "Account invariant violation"
19883
+ },
19884
+ {
19885
+ code: 6051,
19886
+ name: "InvalidPoolCreationFee",
19887
+ msg: "Invalid pool creation fee"
19888
+ },
19889
+ {
19890
+ code: 6052,
19891
+ name: "PoolCreationFeeHasBeenClaimed",
19892
+ msg: "Pool creation fee has been claimed"
19893
+ },
19894
+ {
19895
+ code: 6053,
19896
+ name: "Unauthorized",
19897
+ msg: "Not permit to do this action"
19898
+ },
19899
+ {
19900
+ code: 6054,
19901
+ name: "ZeroPoolCreationFee",
19902
+ msg: "Pool creation fee is zero"
19903
+ },
19904
+ {
19905
+ code: 6055,
19906
+ name: "InvalidMigrationLockedLiquidity",
19907
+ msg: "Invalid migration locked liquidity"
19354
19908
  }
19355
19909
  ];
19356
19910
  var types = [
@@ -19536,19 +20090,19 @@ var types = [
19536
20090
  type: "u8"
19537
20091
  },
19538
20092
  {
19539
- name: "partner_lp_percentage",
20093
+ name: "partner_liquidity_percentage",
19540
20094
  type: "u8"
19541
20095
  },
19542
20096
  {
19543
- name: "partner_locked_lp_percentage",
20097
+ name: "partner_permanent_locked_liquidity_percentage",
19544
20098
  type: "u8"
19545
20099
  },
19546
20100
  {
19547
- name: "creator_lp_percentage",
20101
+ name: "creator_liquidity_percentage",
19548
20102
  type: "u8"
19549
20103
  },
19550
20104
  {
19551
- name: "creator_locked_lp_percentage",
20105
+ name: "creator_permanent_locked_liquidity_percentage",
19552
20106
  type: "u8"
19553
20107
  },
19554
20108
  {
@@ -19605,6 +20159,29 @@ var types = [
19605
20159
  }
19606
20160
  }
19607
20161
  },
20162
+ {
20163
+ name: "pool_creation_fee",
20164
+ docs: [
20165
+ "pool creation fee in SOL lamports value"
20166
+ ],
20167
+ type: "u64"
20168
+ },
20169
+ {
20170
+ name: "partner_liquidity_vesting_info",
20171
+ type: {
20172
+ defined: {
20173
+ name: "LiquidityVestingInfoParams"
20174
+ }
20175
+ }
20176
+ },
20177
+ {
20178
+ name: "creator_liquidity_vesting_info",
20179
+ type: {
20180
+ defined: {
20181
+ name: "LiquidityVestingInfoParams"
20182
+ }
20183
+ }
20184
+ },
19608
20185
  {
19609
20186
  name: "padding",
19610
20187
  docs: [
@@ -19612,8 +20189,8 @@ var types = [
19612
20189
  ],
19613
20190
  type: {
19614
20191
  array: [
19615
- "u64",
19616
- 7
20192
+ "u8",
20193
+ 22
19617
20194
  ]
19618
20195
  }
19619
20196
  },
@@ -19816,7 +20393,7 @@ var types = [
19816
20393
  type: "pubkey"
19817
20394
  },
19818
20395
  {
19819
- name: "treasury",
20396
+ name: "receiver",
19820
20397
  type: "pubkey"
19821
20398
  },
19822
20399
  {
@@ -19953,19 +20530,19 @@ var types = [
19953
20530
  type: "u8"
19954
20531
  },
19955
20532
  {
19956
- name: "partner_locked_lp_percentage",
20533
+ name: "partner_permanent_locked_liquidity_percentage",
19957
20534
  type: "u8"
19958
20535
  },
19959
20536
  {
19960
- name: "partner_lp_percentage",
20537
+ name: "partner_liquidity_percentage",
19961
20538
  type: "u8"
19962
20539
  },
19963
20540
  {
19964
- name: "creator_locked_lp_percentage",
20541
+ name: "creator_permanent_locked_liquidity_percentage",
19965
20542
  type: "u8"
19966
20543
  },
19967
20544
  {
19968
- name: "creator_lp_percentage",
20545
+ name: "creator_liquidity_percentage",
19969
20546
  type: "u8"
19970
20547
  },
19971
20548
  {
@@ -20137,6 +20714,26 @@ var types = [
20137
20714
  ]
20138
20715
  }
20139
20716
  },
20717
+ {
20718
+ name: "EvtPartnerClaimPoolCreationFee",
20719
+ type: {
20720
+ kind: "struct",
20721
+ fields: [
20722
+ {
20723
+ name: "pool",
20724
+ type: "pubkey"
20725
+ },
20726
+ {
20727
+ name: "partner",
20728
+ type: "pubkey"
20729
+ },
20730
+ {
20731
+ name: "creation_fee",
20732
+ type: "u64"
20733
+ }
20734
+ ]
20735
+ }
20736
+ },
20140
20737
  {
20141
20738
  name: "EvtPartnerMetadata",
20142
20739
  docs: [
@@ -20439,6 +21036,79 @@ var types = [
20439
21036
  ]
20440
21037
  }
20441
21038
  },
21039
+ {
21040
+ name: "LiquidityVestingInfo",
21041
+ serialization: "bytemuck",
21042
+ repr: {
21043
+ kind: "c"
21044
+ },
21045
+ type: {
21046
+ kind: "struct",
21047
+ fields: [
21048
+ {
21049
+ name: "is_initialized",
21050
+ type: "u8"
21051
+ },
21052
+ {
21053
+ name: "vesting_percentage",
21054
+ type: "u8"
21055
+ },
21056
+ {
21057
+ name: "_padding",
21058
+ type: {
21059
+ array: [
21060
+ "u8",
21061
+ 2
21062
+ ]
21063
+ }
21064
+ },
21065
+ {
21066
+ name: "bps_per_period",
21067
+ type: "u16"
21068
+ },
21069
+ {
21070
+ name: "number_of_periods",
21071
+ type: "u16"
21072
+ },
21073
+ {
21074
+ name: "frequency",
21075
+ type: "u32"
21076
+ },
21077
+ {
21078
+ name: "cliff_duration_from_migration_time",
21079
+ type: "u32"
21080
+ }
21081
+ ]
21082
+ }
21083
+ },
21084
+ {
21085
+ name: "LiquidityVestingInfoParams",
21086
+ type: {
21087
+ kind: "struct",
21088
+ fields: [
21089
+ {
21090
+ name: "vesting_percentage",
21091
+ type: "u8"
21092
+ },
21093
+ {
21094
+ name: "bps_per_period",
21095
+ type: "u16"
21096
+ },
21097
+ {
21098
+ name: "number_of_periods",
21099
+ type: "u16"
21100
+ },
21101
+ {
21102
+ name: "cliff_duration_from_migration_time",
21103
+ type: "u32"
21104
+ },
21105
+ {
21106
+ name: "frequency",
21107
+ type: "u32"
21108
+ }
21109
+ ]
21110
+ }
21111
+ },
20442
21112
  {
20443
21113
  name: "LockEscrow",
20444
21114
  docs: [
@@ -20569,7 +21239,7 @@ var types = [
20569
21239
  {
20570
21240
  name: "padding_0",
20571
21241
  docs: [
20572
- "!!! BE CAREFUL to use tomestone field, previous is pool creator"
21242
+ "!!! BE CAREFUL to use tombstone field, previous is pool creator"
20573
21243
  ],
20574
21244
  type: {
20575
21245
  array: [
@@ -20593,30 +21263,30 @@ var types = [
20593
21263
  type: "pubkey"
20594
21264
  },
20595
21265
  {
20596
- name: "partner_locked_lp",
21266
+ name: "partner_locked_liquidity",
20597
21267
  docs: [
20598
- "partner locked lp"
21268
+ "partner locked liquidity"
20599
21269
  ],
20600
21270
  type: "u64"
20601
21271
  },
20602
21272
  {
20603
- name: "partner_lp",
21273
+ name: "partner_liquidity",
20604
21274
  docs: [
20605
- "partner lp"
21275
+ "partner liquidity"
20606
21276
  ],
20607
21277
  type: "u64"
20608
21278
  },
20609
21279
  {
20610
- name: "creator_locked_lp",
21280
+ name: "creator_locked_liquidity",
20611
21281
  docs: [
20612
- "creator locked lp"
21282
+ "creator locked liquidity"
20613
21283
  ],
20614
21284
  type: "u64"
20615
21285
  },
20616
21286
  {
20617
- name: "creator_lp",
21287
+ name: "creator_liquidity",
20618
21288
  docs: [
20619
- "creator lp"
21289
+ "creator liquidity"
20620
21290
  ],
20621
21291
  type: "u64"
20622
21292
  },
@@ -20630,28 +21300,28 @@ var types = [
20630
21300
  {
20631
21301
  name: "creator_locked_status",
20632
21302
  docs: [
20633
- "flag to check whether lp is locked for creator"
21303
+ "flag to check whether liquidity token is locked for creator"
20634
21304
  ],
20635
21305
  type: "u8"
20636
21306
  },
20637
21307
  {
20638
21308
  name: "partner_locked_status",
20639
21309
  docs: [
20640
- "flag to check whether lp is locked for partner"
21310
+ "flag to check whether liquidity token is locked for partner"
20641
21311
  ],
20642
21312
  type: "u8"
20643
21313
  },
20644
21314
  {
20645
21315
  name: "creator_claim_status",
20646
21316
  docs: [
20647
- "flag to check whether creator has claimed lp token"
21317
+ "flag to check whether creator has claimed liquidity token"
20648
21318
  ],
20649
21319
  type: "u8"
20650
21320
  },
20651
21321
  {
20652
21322
  name: "partner_claim_status",
20653
21323
  docs: [
20654
- "flag to check whether partner has claimed lp token"
21324
+ "flag to check whether partner has claimed liquidity token"
20655
21325
  ],
20656
21326
  type: "u8"
20657
21327
  },
@@ -20798,6 +21468,41 @@ var types = [
20798
21468
  }
20799
21469
  }
20800
21470
  },
21471
+ {
21472
+ name: "partner_liquidity_vesting_info",
21473
+ type: {
21474
+ defined: {
21475
+ name: "LiquidityVestingInfo"
21476
+ }
21477
+ }
21478
+ },
21479
+ {
21480
+ name: "creator_liquidity_vesting_info",
21481
+ type: {
21482
+ defined: {
21483
+ name: "LiquidityVestingInfo"
21484
+ }
21485
+ }
21486
+ },
21487
+ {
21488
+ name: "padding_0",
21489
+ docs: [
21490
+ "Padding for future use"
21491
+ ],
21492
+ type: {
21493
+ array: [
21494
+ "u8",
21495
+ 14
21496
+ ]
21497
+ }
21498
+ },
21499
+ {
21500
+ name: "padding_1",
21501
+ docs: [
21502
+ "Previously was protocol and referral fee percent. Beware of tombstone."
21503
+ ],
21504
+ type: "u16"
21505
+ },
20801
21506
  {
20802
21507
  name: "collect_fee_mode",
20803
21508
  docs: [
@@ -20848,30 +21553,30 @@ var types = [
20848
21553
  type: "u8"
20849
21554
  },
20850
21555
  {
20851
- name: "partner_locked_lp_percentage",
21556
+ name: "partner_permanent_locked_liquidity_percentage",
20852
21557
  docs: [
20853
- "partner locked lp percentage"
21558
+ "partner locked liquidity percentage"
20854
21559
  ],
20855
21560
  type: "u8"
20856
21561
  },
20857
21562
  {
20858
- name: "partner_lp_percentage",
21563
+ name: "partner_liquidity_percentage",
20859
21564
  docs: [
20860
- "partner lp percentage"
21565
+ "partner liquidity percentage"
20861
21566
  ],
20862
21567
  type: "u8"
20863
21568
  },
20864
21569
  {
20865
- name: "creator_locked_lp_percentage",
21570
+ name: "creator_permanent_locked_liquidity_percentage",
20866
21571
  docs: [
20867
21572
  "creator post migration fee percentage"
20868
21573
  ],
20869
21574
  type: "u8"
20870
21575
  },
20871
21576
  {
20872
- name: "creator_lp_percentage",
21577
+ name: "creator_liquidity_percentage",
20873
21578
  docs: [
20874
- "creator lp percentage"
21579
+ "creator liquidity percentage"
20875
21580
  ],
20876
21581
  type: "u8"
20877
21582
  },
@@ -20918,10 +21623,7 @@ var types = [
20918
21623
  type: "u8"
20919
21624
  },
20920
21625
  {
20921
- name: "_padding_0",
20922
- docs: [
20923
- "padding 0"
20924
- ],
21626
+ name: "padding_2",
20925
21627
  type: {
20926
21628
  array: [
20927
21629
  "u8",
@@ -21011,10 +21713,17 @@ var types = [
21011
21713
  type: {
21012
21714
  array: [
21013
21715
  "u8",
21014
- 12
21716
+ 4
21015
21717
  ]
21016
21718
  }
21017
21719
  },
21720
+ {
21721
+ name: "pool_creation_fee",
21722
+ docs: [
21723
+ "pool creation fee in lamports value"
21724
+ ],
21725
+ type: "u64"
21726
+ },
21018
21727
  {
21019
21728
  name: "_padding_2",
21020
21729
  docs: [
@@ -21134,32 +21843,6 @@ var types = [
21134
21843
  name: "DynamicFeeConfig"
21135
21844
  }
21136
21845
  }
21137
- },
21138
- {
21139
- name: "padding_0",
21140
- type: {
21141
- array: [
21142
- "u64",
21143
- 5
21144
- ]
21145
- }
21146
- },
21147
- {
21148
- name: "padding_1",
21149
- type: {
21150
- array: [
21151
- "u8",
21152
- 6
21153
- ]
21154
- }
21155
- },
21156
- {
21157
- name: "protocol_fee_percent",
21158
- type: "u8"
21159
- },
21160
- {
21161
- name: "referral_fee_percent",
21162
- type: "u8"
21163
21846
  }
21164
21847
  ]
21165
21848
  }
@@ -21535,16 +22218,29 @@ var types = [
21535
22218
  ],
21536
22219
  type: "u64"
21537
22220
  },
22221
+ {
22222
+ name: "legacy_creation_fee_bits",
22223
+ docs: [
22224
+ "legacy creation fee bits, we dont use this now"
22225
+ ],
22226
+ type: "u8"
22227
+ },
21538
22228
  {
21539
22229
  name: "creation_fee_bits",
22230
+ docs: [
22231
+ "pool creation fee claim status"
22232
+ ],
21540
22233
  type: "u8"
21541
22234
  },
21542
22235
  {
21543
22236
  name: "_padding_0",
22237
+ docs: [
22238
+ "Padding for further use"
22239
+ ],
21544
22240
  type: {
21545
22241
  array: [
21546
22242
  "u8",
21547
- 7
22243
+ 6
21548
22244
  ]
21549
22245
  }
21550
22246
  },
@@ -21662,4 +22358,4 @@ var idl = {
21662
22358
  types: types
21663
22359
  };
21664
22360
 
21665
- export { ActivationType, BASE_ADDRESS, BASIS_POINT_MAX, BIN_STEP_BPS_DEFAULT, BIN_STEP_BPS_U128_DEFAULT, type BaseFee, type BaseFeeConfig, type BaseFeeHandler, BaseFeeMode, type BaseFeeParams, type BuildCurveBaseParams, type BuildCurveParams, type BuildCurveWithLiquidityWeightsParams, type BuildCurveWithMarketCapParams, type BuildCurveWithTwoSegmentsParams, type ClaimCreatorTradingFee2Params, type ClaimCreatorTradingFeeParams, type ClaimCreatorTradingFeeWithQuoteMintNotSolParams, type ClaimCreatorTradingFeeWithQuoteMintSolParams, type ClaimPartnerTradingFeeWithQuoteMintNotSolParams, type ClaimPartnerTradingFeeWithQuoteMintSolParams, type ClaimTradingFee2Params, type ClaimTradingFeeParams, CollectFeeMode, type ConfigParameters, type CreateConfigAccounts, type CreateConfigAndPoolParams, type CreateConfigAndPoolWithFirstBuyParams, type CreateConfigParams, type CreateDammV1MigrationMetadataParams, type CreateLockerParams, type CreatePartnerMetadataParameters, type CreatePartnerMetadataParams, type CreatePoolParams, type CreatePoolWithFirstBuyParams, type CreatePoolWithPartnerAndCreatorFirstBuyParams, type CreateVirtualPoolMetadataParams, type CreatorFirstBuyParams, CreatorService, type CreatorWithdrawSurplusParams, DAMM_V1_MIGRATION_FEE_ADDRESS, DAMM_V1_PROGRAM_ID, DAMM_V2_MIGRATION_FEE_ADDRESS, DAMM_V2_PROGRAM_ID, DYNAMIC_BONDING_CURVE_PROGRAM_ID, DYNAMIC_FEE_DECAY_PERIOD_DEFAULT, DYNAMIC_FEE_FILTER_PERIOD_DEFAULT, DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT, DYNAMIC_FEE_ROUNDING_OFFSET, DYNAMIC_FEE_SCALING_FACTOR, type DammLpTokenParams, DammV2DynamicFeeMode, DynamicBondingCurveClient, idl as DynamicBondingCurveIdl, DynamicBondingCurveProgram, type DynamicBondingCurve as DynamicBondingCurveTypes, type DynamicCurveProgram, type DynamicFeeConfig, type DynamicFeeParameters, FEE_DENOMINATOR, type FeeMode, type FeeOnAmountResult, FeeRateLimiter, type FeeResult, FeeScheduler, type FeeSchedulerParams, type FirstBuyParams, type InitializePoolBaseParams, type InitializePoolParameters, LOCKER_PROGRAM_ID, type LiquidityDistributionParameters, type LockEscrow, type LockedVestingParameters, type LockedVestingParams, MAX_CREATOR_MIGRATION_FEE_PERCENTAGE, MAX_CURVE_POINT, MAX_DYNAMIC_FEE_PERCENTAGE, MAX_FEE_BPS, MAX_FEE_NUMERATOR, MAX_MIGRATED_POOL_FEE_BPS, MAX_MIGRATION_FEE_PERCENTAGE, MAX_PRICE_CHANGE_BPS_DEFAULT, MAX_RATE_LIMITER_DURATION_IN_SECONDS, MAX_RATE_LIMITER_DURATION_IN_SLOTS, MAX_SQRT_PRICE, METAPLEX_PROGRAM_ID, MIN_FEE_BPS, MIN_FEE_NUMERATOR, MIN_MIGRATED_POOL_FEE_BPS, MIN_SQRT_PRICE, type MeteoraDammMigrationMetadata, type MigrateToDammV1Params, type MigrateToDammV2Params, type MigrateToDammV2Response, type MigratedPoolFee, MigrationFeeOption, MigrationOption, MigrationService, OFFSET, ONE_Q64, PARTNER_SURPLUS_SHARE, type PartnerFirstBuyParams, type PartnerMetadata, PartnerService, type PartnerWithdrawSurplusParams, type PoolConfig, type PoolFeeParameters, type PoolFees, type PoolFeesConfig, PoolService, type PreCreatePoolParams, type PrepareSwapParams, RESOLUTION, type RateLimiterParams, Rounding, SLOT_DURATION, SWAP_BUFFER_PERCENTAGE, SafeMath, StateService, type Swap2Params, type SwapAmount, SwapMode, type SwapParams, type SwapQuote2Params, type SwapQuote2Result, type SwapQuoteParams, type SwapQuoteResult, type SwapResult, type SwapResult2, TIMESTAMP_DURATION, TokenDecimal, TokenType, TokenUpdateAuthorityOption, TradeDirection, type TransferPoolCreatorParams, U128_MAX, U16_MAX, U64_MAX, VAULT_PROGRAM_ID, type VirtualPool, type VirtualPoolMetadata, type VolatilityTracker, type WithdrawLeftoverParams, type WithdrawMigrationFeeParams, bpsToFeeNumerator, buildCurve, buildCurveWithLiquidityWeights, buildCurveWithMarketCap, buildCurveWithTwoSegments, calculateBaseToQuoteFromAmountIn, calculateBaseToQuoteFromAmountOut, calculateFeeSchedulerEndingBaseFeeBps, calculateQuoteToBaseFromAmountIn, calculateQuoteToBaseFromAmountOut, checkRateLimiterApplied, cleanUpTokenAccountTx, convertDecimalToBN, convertToLamports, createDammV1Program, createDammV2Program, createDbcProgram, createInitializePermissionlessDynamicVaultIx, createLockEscrowIx, createProgramAccountFilter, createVaultProgram, deriveBaseKeyForLocker, deriveDammV1EventAuthority, deriveDammV1LockEscrowAddress, deriveDammV1LpMintAddress, deriveDammV1MigrationMetadataAddress, deriveDammV1PoolAddress, deriveDammV1PoolAuthority, deriveDammV1ProtocolFeeAddress, deriveDammV1VaultLPAddress, deriveDammV2EventAuthority, deriveDammV2LockEscrowAddress, deriveDammV2MigrationMetadataAddress, deriveDammV2PoolAddress, deriveDammV2PoolAuthority, deriveDammV2TokenVaultAddress, deriveDbcEventAuthority, deriveDbcPoolAddress, deriveDbcPoolAuthority, deriveDbcPoolMetadata, deriveDbcTokenVaultAddress, deriveEscrow, deriveLockerEventAuthority, deriveMintMetadata, derivePartnerMetadata, derivePositionAddress, derivePositionNftAccount, deriveTokenVaultKey, deriveVaultAddress, deriveVaultLpMintAddress, deriveVaultPdas, feeNumeratorToBps, findAssociatedTokenAddress, fromDecimalToBN, getAccountCreationTimestamp, getAccountCreationTimestamps, getAccountData, getBaseFeeHandler, getBaseFeeNumerator, getBaseFeeNumeratorByPeriod, getBaseFeeParams, getBaseTokenForSwap, getCheckedAmounts, getCurrentPoint, getDeltaAmountBaseUnsigned, getDeltaAmountBaseUnsigned256, getDeltaAmountBaseUnsignedUnchecked, getDeltaAmountQuoteUnsigned, getDeltaAmountQuoteUnsigned256, getDeltaAmountQuoteUnsignedUnchecked, getDynamicFeeParams, getExcludedFeeAmount, getFeeMode, getFeeNumeratorFromExcludedAmount, getFeeNumeratorFromIncludedAmount, getFeeNumeratorOnExponentialFeeScheduler, getFeeNumeratorOnLinearFeeScheduler, getFeeOnAmount, getFeeSchedulerParams, getFirstCurve, getFirstKey, getIncludedFeeAmount, getInitialLiquidityFromDeltaBase, getInitialLiquidityFromDeltaQuote, getLiquidity, getLockedVestingParams, getMaxBaseFeeNumerator, getMaxIndex, getMaxOutAmountWithMinBaseFee, getMigratedPoolFeeParams, getMigrationBaseToken, getMigrationQuoteAmount, getMigrationQuoteAmountFromMigrationQuoteThreshold, getMigrationQuoteThresholdFromMigrationQuoteAmount, getMigrationThresholdPrice, getMinBaseFeeNumerator, getNextSqrtPriceFromBaseAmountInRoundingUp, getNextSqrtPriceFromBaseAmountOutRoundingUp, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getNextSqrtPriceFromQuoteAmountInRoundingDown, getNextSqrtPriceFromQuoteAmountOutRoundingDown, getOrCreateATAInstruction, getPercentageSupplyOnMigration, getPriceFromSqrtPrice, getQuoteReserveFromNextSqrtPrice, getRateLimiterExcludedFeeAmount, getRateLimiterParams, getSecondKey, getSqrtPriceFromMarketCap, getSqrtPriceFromPrice, getSwapAmountWithBuffer, getSwapResult, getSwapResultFromExactInput, getSwapResultFromExactOutput, getSwapResultFromPartialInput, getTokenDecimals, getTokenProgram, getTokenType, getTokenomics, getTotalFeeNumerator, getTotalFeeNumeratorFromExcludedFeeAmount, getTotalFeeNumeratorFromIncludedFeeAmount, getTotalSupplyFromCurve, getTotalTokenSupply, getTotalVestingAmount, getTwoCurve, getVariableFeeNumerator, isDefaultLockedVesting, isDynamicFeeEnabled, isNativeSol, isNonZeroRateLimiter, isRateLimiterApplied, isZeroRateLimiter, mulDiv, mulShr, pow, prepareSwapAmountParam, prepareTokenAccountTx, splitFees, sqrt, swapQuote, swapQuoteExactIn, swapQuoteExactOut, swapQuotePartialFill, toNumerator, unwrapSOLInstruction, validateActivationType, validateBalance, validateBaseTokenType, validateCollectFeeMode, validateConfigParameters, validateCurve, validateFeeRateLimiter, validateFeeScheduler, validateLPPercentages, validateMigratedPoolFee, validateMigrationAndTokenType, validateMigrationFee, validateMigrationFeeOption, validatePoolFees, validateSwapAmount, validateTokenDecimals, validateTokenSupply, validateTokenUpdateAuthorityOptions, wrapSOLInstruction };
22361
+ export { ActivationType, BASE_ADDRESS, BIN_STEP_BPS_DEFAULT, BIN_STEP_BPS_U128_DEFAULT, type BaseFee, type BaseFeeConfig, type BaseFeeHandler, BaseFeeMode, type BaseFeeParams, type BuildCurveBaseParams, type BuildCurveParams, type BuildCurveWithCustomSqrtPricesParams, type BuildCurveWithLiquidityWeightsParams, type BuildCurveWithMarketCapParams, type BuildCurveWithMidPriceParams, type BuildCurveWithTwoSegmentsParams, type ClaimCreatorTradingFee2Params, type ClaimCreatorTradingFeeParams, type ClaimCreatorTradingFeeWithQuoteMintNotSolParams, type ClaimCreatorTradingFeeWithQuoteMintSolParams, type ClaimPartnerPoolCreationFeeParams, type ClaimPartnerTradingFeeWithQuoteMintNotSolParams, type ClaimPartnerTradingFeeWithQuoteMintSolParams, type ClaimTradingFee2Params, type ClaimTradingFeeParams, CollectFeeMode, type ConfigParameters, type CreateConfigAccounts, type CreateConfigAndPoolParams, type CreateConfigAndPoolWithFirstBuyParams, type CreateConfigParams, type CreateDammV1MigrationMetadataParams, type CreateLockerParams, type CreatePartnerMetadataParameters, type CreatePartnerMetadataParams, type CreatePoolParams, type CreatePoolWithFirstBuyParams, type CreatePoolWithPartnerAndCreatorFirstBuyParams, type CreateVirtualPoolMetadataParams, type CreatorFirstBuyParams, CreatorService, type CreatorWithdrawSurplusParams, DAMM_V1_MIGRATION_FEE_ADDRESS, DAMM_V1_PROGRAM_ID, DAMM_V2_MIGRATION_FEE_ADDRESS, DAMM_V2_PROGRAM_ID, DEFAULT_LIQUIDITY_VESTING_INFO_PARAMS, DYNAMIC_BONDING_CURVE_PROGRAM_ID, DYNAMIC_FEE_DECAY_PERIOD_DEFAULT, DYNAMIC_FEE_FILTER_PERIOD_DEFAULT, DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT, DYNAMIC_FEE_ROUNDING_OFFSET, DYNAMIC_FEE_SCALING_FACTOR, type DammLpTokenParams, DammV2DynamicFeeMode, DynamicBondingCurveClient, idl as DynamicBondingCurveIdl, DynamicBondingCurveProgram, type DynamicBondingCurve as DynamicBondingCurveTypes, type DynamicCurveProgram, type DynamicFeeConfig, type DynamicFeeParameters, FEE_DENOMINATOR, type FeeMode, type FeeOnAmountResult, FeeRateLimiter, type FeeResult, FeeScheduler, type FeeSchedulerParams, type FirstBuyParams, HOST_FEE_PERCENT, type InitializePoolBaseParams, type InitializePoolParameters, LOCKER_PROGRAM_ID, type LiquidityDistributionParameters, type LiquidityVestingInfoParameters, type LiquidityVestingInfoParams, type LockEscrow, type LockedVestingParameters, type LockedVestingParams, MAX_BASIS_POINT, MAX_CREATOR_MIGRATION_FEE_PERCENTAGE, MAX_CURVE_POINT, MAX_FEE_BPS, MAX_FEE_NUMERATOR, MAX_LOCK_DURATION_IN_SECONDS, MAX_MIGRATED_POOL_FEE_BPS, MAX_MIGRATION_FEE_PERCENTAGE, MAX_POOL_CREATION_FEE, MAX_PRICE_CHANGE_PERCENTAGE_DEFAULT, MAX_RATE_LIMITER_DURATION_IN_SECONDS, MAX_RATE_LIMITER_DURATION_IN_SLOTS, MAX_SQRT_PRICE, METAPLEX_PROGRAM_ID, MIN_FEE_BPS, MIN_FEE_NUMERATOR, MIN_LOCKED_LIQUIDITY_BPS, MIN_MIGRATED_POOL_FEE_BPS, MIN_POOL_CREATION_FEE, MIN_SQRT_PRICE, type MeteoraDammMigrationMetadata, type MigrateToDammV1Params, type MigrateToDammV2Params, type MigrateToDammV2Response, type MigratedPoolFee, MigrationFeeOption, MigrationOption, MigrationService, OFFSET, ONE_Q64, PROTOCOL_FEE_PERCENT, PROTOCOL_POOL_CREATION_FEE_PERCENT, type PartnerFirstBuyParams, type PartnerMetadata, PartnerService, type PartnerWithdrawSurplusParams, type PoolConfig, type PoolFeeParameters, type PoolFees, type PoolFeesConfig, PoolService, type PreCreatePoolParams, type PrepareSwapParams, RESOLUTION, type RateLimiterParams, Rounding, SECONDS_PER_DAY, SWAP_BUFFER_PERCENTAGE, SafeMath, StateService, type Swap2Params, type SwapAmount, SwapMode, type SwapParams, type SwapQuote2Params, type SwapQuote2Result, type SwapQuoteParams, type SwapQuoteResult, type SwapResult, type SwapResult2, TokenDecimal, TokenType, TokenUpdateAuthorityOption, TradeDirection, type TransferPoolCreatorParams, U128_MAX, U16_MAX, U64_MAX, VAULT_PROGRAM_ID, type VirtualPool, type VirtualPoolMetadata, type VolatilityTracker, type WithdrawLeftoverParams, type WithdrawMigrationFeeParams, bpsToFeeNumerator, buildCurve, buildCurveWithCustomSqrtPrices, buildCurveWithLiquidityWeights, buildCurveWithMarketCap, buildCurveWithMidPrice, buildCurveWithTwoSegments, calculateAdjustedPercentageSupplyOnMigration, calculateBaseToQuoteFromAmountIn, calculateBaseToQuoteFromAmountOut, calculateFeeSchedulerEndingBaseFeeBps, calculateLockedLiquidityBpsAtTime, calculateQuoteToBaseFromAmountIn, calculateQuoteToBaseFromAmountOut, checkRateLimiterApplied, cleanUpTokenAccountTx, convertDecimalToBN, convertToLamports, createDammV1Program, createDammV2Program, createDbcProgram, createInitializePermissionlessDynamicVaultIx, createLockEscrowIx, createProgramAccountFilter, createSqrtPrices, createVaultProgram, deriveBaseKeyForLocker, deriveDammV1EventAuthority, deriveDammV1LockEscrowAddress, deriveDammV1LpMintAddress, deriveDammV1MigrationMetadataAddress, deriveDammV1PoolAddress, deriveDammV1PoolAuthority, deriveDammV1ProtocolFeeAddress, deriveDammV1VaultLPAddress, deriveDammV2EventAuthority, deriveDammV2LockEscrowAddress, deriveDammV2MigrationMetadataAddress, deriveDammV2PoolAddress, deriveDammV2PoolAuthority, deriveDammV2PositionVestingAccount, deriveDammV2TokenVaultAddress, deriveDbcEventAuthority, deriveDbcPoolAddress, deriveDbcPoolAuthority, deriveDbcPoolMetadata, deriveDbcTokenVaultAddress, deriveEscrow, deriveLockerEventAuthority, deriveMintMetadata, derivePartnerMetadata, derivePositionAddress, derivePositionNftAccount, deriveTokenVaultKey, deriveVaultAddress, deriveVaultLpMintAddress, deriveVaultPdas, feeNumeratorToBps, findAssociatedTokenAddress, fromDecimalToBN, getAccountCreationTimestamp, getAccountCreationTimestamps, getAccountData, getBaseFeeHandler, getBaseFeeNumerator, getBaseFeeNumeratorByPeriod, getBaseFeeParams, getBaseTokenForSwap, getCheckedAmounts, getCurrentPoint, getCurveBreakdown, getDeltaAmountBaseUnsigned, getDeltaAmountBaseUnsigned256, getDeltaAmountBaseUnsignedUnchecked, getDeltaAmountQuoteUnsigned, getDeltaAmountQuoteUnsigned256, getDeltaAmountQuoteUnsignedUnchecked, getDynamicFeeParams, getExcludedFeeAmount, getFeeMode, getFeeNumeratorFromExcludedAmount, getFeeNumeratorFromIncludedAmount, getFeeNumeratorOnExponentialFeeScheduler, getFeeNumeratorOnLinearFeeScheduler, getFeeOnAmount, getFeeSchedulerParams, getFirstCurve, getFirstKey, getIncludedFeeAmount, getInitialLiquidityFromDeltaBase, getInitialLiquidityFromDeltaQuote, getLiquidity, getLiquidityVestingInfoParams, getLockedVestingParams, getMaxBaseFeeNumerator, getMaxIndex, getMaxOutAmountWithMinBaseFee, getMigratedPoolFeeParams, getMigrationBaseToken, getMigrationQuoteAmount, getMigrationQuoteAmountFromMigrationQuoteThreshold, getMigrationQuoteThresholdFromMigrationQuoteAmount, getMigrationThresholdPrice, getMinBaseFeeNumerator, getNextSqrtPriceFromBaseAmountInRoundingUp, getNextSqrtPriceFromBaseAmountOutRoundingUp, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getNextSqrtPriceFromQuoteAmountInRoundingDown, getNextSqrtPriceFromQuoteAmountOutRoundingDown, getOrCreateATAInstruction, getPercentageSupplyOnMigration, getPriceFromSqrtPrice, getQuoteReserveFromNextSqrtPrice, getRateLimiterExcludedFeeAmount, getRateLimiterParams, getSecondKey, getSqrtPriceFromMarketCap, getSqrtPriceFromPrice, getSwapAmountWithBuffer, getSwapResult, getSwapResultFromExactInput, getSwapResultFromExactOutput, getSwapResultFromPartialInput, getTokenDecimals, getTokenProgram, getTokenType, getTokenomics, getTotalFeeNumerator, getTotalFeeNumeratorFromExcludedFeeAmount, getTotalFeeNumeratorFromIncludedFeeAmount, getTotalSupplyFromCurve, getTotalTokenSupply, getTotalVestingAmount, getTwoCurve, getVariableFeeNumerator, getVestingLockedLiquidityBpsAtNSeconds, isDefaultLockedVesting, isDynamicFeeEnabled, isNativeSol, isNonZeroRateLimiter, isRateLimiterApplied, isZeroRateLimiter, mulDiv, mulShr, pow, prepareSwapAmountParam, prepareTokenAccountTx, splitFees, sqrt, swapQuote, swapQuoteExactIn, swapQuoteExactOut, swapQuotePartialFill, toNumerator, unwrapSOLInstruction, validateActivationType, validateBalance, validateBaseTokenType, validateCollectFeeMode, validateConfigParameters, validateCurve, validateFeeRateLimiter, validateFeeScheduler, validateLPPercentages, validateLiquidityVestingInfo, validateMigratedPoolFee, validateMigrationAndTokenType, validateMigrationFee, validateMigrationFeeOption, validateMinimumLockedLiquidity, validatePoolCreationFee, validatePoolFees, validateSwapAmount, validateTokenDecimals, validateTokenSupply, validateTokenUpdateAuthorityOptions, wrapSOLInstruction };