@meteora-ag/dynamic-bonding-curve-sdk 1.4.9 → 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;
@@ -5571,6 +5841,10 @@ type BuildCurveWithLiquidityWeightsParams = BuildCurveBaseParams & {
5571
5841
  migrationMarketCap: number;
5572
5842
  liquidityWeights: number[];
5573
5843
  };
5844
+ type BuildCurveWithCustomSqrtPricesParams = BuildCurveBaseParams & {
5845
+ sqrtPrices: BN[];
5846
+ liquidityWeights?: number[];
5847
+ };
5574
5848
  type InitializePoolBaseParams = {
5575
5849
  name: string;
5576
5850
  symbol: string;
@@ -5809,6 +6083,17 @@ type WithdrawMigrationFeeParams = {
5809
6083
  virtualPool: PublicKey;
5810
6084
  sender: PublicKey;
5811
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
+ };
5812
6097
  interface BaseFeeHandler {
5813
6098
  validate(collectFeeMode: CollectFeeMode, activationType: ActivationType): boolean;
5814
6099
  getBaseFeeNumeratorFromIncludedFeeAmount(currentPoint: BN, activationPoint: BN, tradeDirection: TradeDirection, includedFeeAmount: BN): BN;
@@ -6011,6 +6296,12 @@ declare class PartnerService extends DynamicBondingCurveProgram {
6011
6296
  * @returns A partner withdraw migration fee transaction
6012
6297
  */
6013
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>;
6014
6305
  }
6015
6306
 
6016
6307
  declare class PoolService extends DynamicBondingCurveProgram {
@@ -6466,51 +6757,56 @@ declare class DynamicBondingCurveClient {
6466
6757
  * @returns A DynamicBondingCurveClient instance
6467
6758
  */
6468
6759
  static create(connection: Connection, commitment?: Commitment): DynamicBondingCurveClient;
6469
- }
6470
-
6471
- declare const OFFSET: number;
6472
- declare const U128_MAX: BN$1;
6473
- declare const U64_MAX: BN$1;
6474
- declare const U16_MAX = 65535;
6475
- declare const MIN_SQRT_PRICE: BN$1;
6476
- declare const MAX_SQRT_PRICE: BN$1;
6760
+ }
6761
+
6762
+ declare const MAX_CURVE_POINT = 16;
6763
+ declare const OFFSET = 64;
6477
6764
  declare const RESOLUTION = 64;
6478
6765
  declare const ONE_Q64: BN$1;
6479
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;
6480
6773
  declare const MIN_FEE_BPS = 25;
6481
6774
  declare const MAX_FEE_BPS = 9900;
6482
6775
  declare const MIN_FEE_NUMERATOR = 2500000;
6483
6776
  declare const MAX_FEE_NUMERATOR = 990000000;
6484
- declare const BASIS_POINT_MAX = 10000;
6485
- declare const MAX_CURVE_POINT = 16;
6486
- declare const PARTNER_SURPLUS_SHARE = 80;
6487
- declare const SWAP_BUFFER_PERCENTAGE = 25;
6488
- declare const MAX_MIGRATION_FEE_PERCENTAGE = 99;
6489
- declare const MAX_CREATOR_MIGRATION_FEE_PERCENTAGE = 100;
6490
6777
  declare const MAX_RATE_LIMITER_DURATION_IN_SECONDS = 43200;
6491
6778
  declare const MAX_RATE_LIMITER_DURATION_IN_SLOTS = 108000;
6492
- declare const SLOT_DURATION = 400;
6493
- declare const TIMESTAMP_DURATION = 1000;
6494
- declare const DYNAMIC_BONDING_CURVE_PROGRAM_ID: PublicKey;
6495
- declare const METAPLEX_PROGRAM_ID: PublicKey;
6496
- declare const DAMM_V1_PROGRAM_ID: PublicKey;
6497
- declare const DAMM_V2_PROGRAM_ID: PublicKey;
6498
- declare const VAULT_PROGRAM_ID: PublicKey;
6499
- declare const LOCKER_PROGRAM_ID: PublicKey;
6500
- declare const BASE_ADDRESS: PublicKey;
6501
6779
  declare const DYNAMIC_FEE_FILTER_PERIOD_DEFAULT = 10;
6502
6780
  declare const DYNAMIC_FEE_DECAY_PERIOD_DEFAULT = 120;
6503
6781
  declare const DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT = 5000;
6504
- declare const MAX_DYNAMIC_FEE_PERCENTAGE = 20;
6505
6782
  declare const DYNAMIC_FEE_SCALING_FACTOR: BN$1;
6506
6783
  declare const DYNAMIC_FEE_ROUNDING_OFFSET: BN$1;
6507
6784
  declare const BIN_STEP_BPS_DEFAULT = 1;
6508
6785
  declare const BIN_STEP_BPS_U128_DEFAULT: BN$1;
6509
- 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;
6510
6798
  declare const MIN_MIGRATED_POOL_FEE_BPS = 10;
6511
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;
6512
6807
  declare const DAMM_V1_MIGRATION_FEE_ADDRESS: PublicKey[];
6513
6808
  declare const DAMM_V2_MIGRATION_FEE_ADDRESS: PublicKey[];
6809
+ declare const DEFAULT_LIQUIDITY_VESTING_INFO_PARAMS: LiquidityVestingInfoParams;
6514
6810
 
6515
6811
  /**
6516
6812
  * Get the first key
@@ -6578,6 +6874,12 @@ declare function getPriceFromSqrtPrice(sqrtPrice: BN$1, tokenBaseDecimal: TokenD
6578
6874
  * price = (sqrtPrice >> 64)^2 * 10^(tokenADecimal - tokenBDecimal)
6579
6875
  */
6580
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[];
6581
6883
  /**
6582
6884
  * Get the sqrt price from the market cap
6583
6885
  * @param marketCap - The market cap
@@ -6699,6 +7001,22 @@ declare const getSwapAmountWithBuffer: (swapBaseAmount: BN$1, sqrtStartPrice: BN
6699
7001
  * @returns The percentage of supply for initial liquidity
6700
7002
  */
6701
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;
6702
7020
  /**
6703
7021
  * Get the migration quote amount
6704
7022
  * @param migrationMarketCap - The migration market cap
@@ -6743,7 +7061,7 @@ declare function getRateLimiterParams(baseFeeBps: number, feeIncrementBps: numbe
6743
7061
  * @param maxPriceChangeBps - The max price change in basis points
6744
7062
  * @returns The dynamic fee parameters
6745
7063
  */
6746
- declare function getDynamicFeeParams(baseFeeBps: number, maxPriceChangeBps?: number): DynamicFeeParameters;
7064
+ declare function getDynamicFeeParams(baseFeeBps: number, maxPriceChangePercentage?: number): DynamicFeeParameters;
6747
7065
  /**
6748
7066
  * Calculate the locked vesting parameters
6749
7067
  * @param totalLockedVestingAmount - The total vesting amount
@@ -6755,13 +7073,8 @@ declare function getDynamicFeeParams(baseFeeBps: number, maxPriceChangeBps?: num
6755
7073
  * @returns The locked vesting parameters
6756
7074
  * total_locked_vesting_amount = cliff_unlock_amount + (amount_per_period * number_of_period)
6757
7075
  */
6758
- declare function getLockedVestingParams(totalLockedVestingAmount: number, numberOfVestingPeriod: number, cliffUnlockAmount: number, totalVestingDuration: number, cliffDurationFromMigrationTime: number, tokenBaseDecimal: TokenDecimal): {
6759
- amountPerPeriod: BN$1;
6760
- cliffDurationFromMigrationTime: BN$1;
6761
- frequency: BN$1;
6762
- numberOfPeriod: BN$1;
6763
- cliffUnlockAmount: BN$1;
6764
- };
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;
6765
7078
  /**
6766
7079
  * Get the two curve
6767
7080
  * @param migrationSqrPrice - The migration sqrt price
@@ -6859,6 +7172,23 @@ declare function getCurrentPoint(connection: Connection, activationType: Activat
6859
7172
  * @returns The amount in lamports
6860
7173
  */
6861
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;
6862
7192
 
6863
7193
  /**
6864
7194
  * Derive DBC event authority
@@ -7051,6 +7381,12 @@ declare function deriveDammV1ProtocolFeeAddress(mint: PublicKey, pool: PublicKey
7051
7381
  * @returns The base key for the locker
7052
7382
  */
7053
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;
7054
7390
 
7055
7391
  /**
7056
7392
  * Convert a number or string to a BN value in lamports
@@ -7174,13 +7510,15 @@ declare function validateMigrationFeeOption(migrationFeeOption: MigrationFeeOpti
7174
7510
  declare function validateTokenDecimals(tokenDecimal: TokenDecimal): boolean;
7175
7511
  /**
7176
7512
  * Validate the LP percentages
7177
- * @param partnerLpPercentage - The partner LP percentage
7178
- * @param partnerLockedLpPercentage - The partner locked LP percentage
7179
- * @param creatorLpPercentage - The creator LP percentage
7180
- * @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)
7181
7519
  * @returns true if the LP percentages are valid, false otherwise
7182
7520
  */
7183
- 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;
7184
7522
  /**
7185
7523
  * Validate the curve
7186
7524
  * @param curve - The curve
@@ -7211,6 +7549,28 @@ declare function validateTokenSupply(tokenSupply: {
7211
7549
  * @returns true if the token update authority option is valid, false otherwise
7212
7550
  */
7213
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;
7214
7574
  declare function validateMigratedPoolFee(migratedPoolFee: MigratedPoolFee, migrationOption?: MigrationOption, migrationFeeOption?: MigrationFeeOption): boolean;
7215
7575
  /**
7216
7576
  * Validate the config parameters
@@ -7275,6 +7635,32 @@ declare function buildCurveWithMidPrice(buildCurveWithMidPriceParam: BuildCurveW
7275
7635
  * @returns The build custom constant product curve with liquidity weights
7276
7636
  */
7277
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;
7278
7664
 
7279
7665
  /**
7280
7666
  * Program IDL in camelCase format in order to be used in JS/TS.
@@ -14997,7 +15383,7 @@ declare class FeeScheduler implements BaseFeeHandler {
14997
15383
  reductionFactor: BN$1;
14998
15384
  feeSchedulerMode: BaseFeeMode;
14999
15385
  constructor(cliffFeeNumerator: BN$1, numberOfPeriod: number, periodFrequency: BN$1, reductionFactor: BN$1, feeSchedulerMode: BaseFeeMode);
15000
- validate(collectFeeMode: CollectFeeMode, activationType: ActivationType): boolean;
15386
+ validate(): boolean;
15001
15387
  getBaseFeeNumeratorFromIncludedFeeAmount(currentPoint: BN$1, activationPoint: BN$1): BN$1;
15002
15388
  getBaseFeeNumeratorFromExcludedFeeAmount(currentPoint: BN$1, activationPoint: BN$1): BN$1;
15003
15389
  }
@@ -15164,7 +15550,7 @@ declare function getFeeNumeratorFromIncludedAmount(cliffFeeNumerator: BN$1, refe
15164
15550
  var address = "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN";
15165
15551
  var metadata = {
15166
15552
  name: "dynamic_bonding_curve",
15167
- version: "0.1.7",
15553
+ version: "0.1.8",
15168
15554
  spec: "0.1.0",
15169
15555
  description: "Created with Anchor"
15170
15556
  };
@@ -15241,10 +15627,7 @@ var instructions = [
15241
15627
  },
15242
15628
  {
15243
15629
  name: "creator",
15244
- signer: true,
15245
- relations: [
15246
- "pool"
15247
- ]
15630
+ signer: true
15248
15631
  },
15249
15632
  {
15250
15633
  name: "token_base_program",
@@ -15303,16 +15686,16 @@ var instructions = [
15303
15686
  ]
15304
15687
  },
15305
15688
  {
15306
- name: "claim_pool_creation_fee",
15689
+ name: "claim_legacy_pool_creation_fee",
15307
15690
  discriminator: [
15308
- 246,
15309
- 51,
15310
- 18,
15311
- 222,
15312
- 80,
15313
- 42,
15314
- 236,
15315
- 205
15691
+ 96,
15692
+ 11,
15693
+ 187,
15694
+ 225,
15695
+ 54,
15696
+ 117,
15697
+ 161,
15698
+ 134
15316
15699
  ],
15317
15700
  accounts: [
15318
15701
  {
@@ -15326,14 +15709,11 @@ var instructions = [
15326
15709
  ]
15327
15710
  },
15328
15711
  {
15329
- name: "operator",
15712
+ name: "signer",
15330
15713
  docs: [
15331
15714
  "Operator"
15332
15715
  ],
15333
- signer: true,
15334
- relations: [
15335
- "claim_fee_operator"
15336
- ]
15716
+ signer: true
15337
15717
  },
15338
15718
  {
15339
15719
  name: "treasury",
@@ -15380,6 +15760,73 @@ var instructions = [
15380
15760
  args: [
15381
15761
  ]
15382
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
+ },
15383
15830
  {
15384
15831
  name: "claim_protocol_fee",
15385
15832
  discriminator: [
@@ -15638,14 +16085,11 @@ var instructions = [
15638
16085
  ]
15639
16086
  },
15640
16087
  {
15641
- name: "operator",
16088
+ name: "signer",
15642
16089
  docs: [
15643
- "Operator"
16090
+ "Signer"
15644
16091
  ],
15645
- signer: true,
15646
- relations: [
15647
- "claim_fee_operator"
15648
- ]
16092
+ signer: true
15649
16093
  },
15650
16094
  {
15651
16095
  name: "token_base_program",
@@ -15695,6 +16139,83 @@ var instructions = [
15695
16139
  args: [
15696
16140
  ]
15697
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
+ },
15698
16219
  {
15699
16220
  name: "claim_trading_fee",
15700
16221
  discriminator: [
@@ -15776,10 +16297,7 @@ var instructions = [
15776
16297
  },
15777
16298
  {
15778
16299
  name: "fee_claimer",
15779
- signer: true,
15780
- relations: [
15781
- "config"
15782
- ]
16300
+ signer: true
15783
16301
  },
15784
16302
  {
15785
16303
  name: "token_base_program",
@@ -15838,16 +16356,16 @@ var instructions = [
15838
16356
  ]
15839
16357
  },
15840
16358
  {
15841
- name: "close_claim_fee_operator",
16359
+ name: "close_claim_protocol_fee_operator",
15842
16360
  discriminator: [
15843
- 38,
15844
- 134,
15845
- 82,
15846
- 216,
15847
- 95,
15848
- 124,
15849
- 17,
15850
- 99
16361
+ 8,
16362
+ 41,
16363
+ 87,
16364
+ 35,
16365
+ 80,
16366
+ 48,
16367
+ 121,
16368
+ 26
15851
16369
  ],
15852
16370
  accounts: [
15853
16371
  {
@@ -15859,7 +16377,7 @@ var instructions = [
15859
16377
  writable: true
15860
16378
  },
15861
16379
  {
15862
- name: "admin",
16380
+ name: "signer",
15863
16381
  signer: true
15864
16382
  },
15865
16383
  {
@@ -15899,19 +16417,16 @@ var instructions = [
15899
16417
  ]
15900
16418
  },
15901
16419
  {
15902
- name: "create_claim_fee_operator",
15903
- docs: [
15904
- "ADMIN FUNCTIONS_ ///"
15905
- ],
16420
+ name: "create_claim_protocol_fee_operator",
15906
16421
  discriminator: [
15907
- 169,
15908
- 62,
15909
- 207,
15910
- 107,
15911
- 58,
15912
- 187,
15913
- 162,
15914
- 109
16422
+ 51,
16423
+ 19,
16424
+ 150,
16425
+ 252,
16426
+ 105,
16427
+ 157,
16428
+ 48,
16429
+ 91
15915
16430
  ],
15916
16431
  accounts: [
15917
16432
  {
@@ -15943,10 +16458,14 @@ var instructions = [
15943
16458
  }
15944
16459
  },
15945
16460
  {
15946
- name: "operator"
16461
+ name: "operator"
16462
+ },
16463
+ {
16464
+ name: "signer",
16465
+ signer: true
15947
16466
  },
15948
16467
  {
15949
- name: "admin",
16468
+ name: "payer",
15950
16469
  writable: true,
15951
16470
  signer: true
15952
16471
  },
@@ -16371,10 +16890,7 @@ var instructions = [
16371
16890
  },
16372
16891
  {
16373
16892
  name: "creator",
16374
- signer: true,
16375
- relations: [
16376
- "virtual_pool"
16377
- ]
16893
+ signer: true
16378
16894
  },
16379
16895
  {
16380
16896
  name: "payer",
@@ -16490,10 +17006,7 @@ var instructions = [
16490
17006
  },
16491
17007
  {
16492
17008
  name: "creator",
16493
- signer: true,
16494
- relations: [
16495
- "virtual_pool"
16496
- ]
17009
+ signer: true
16497
17010
  },
16498
17011
  {
16499
17012
  name: "token_quote_program",
@@ -17532,7 +18045,8 @@ var instructions = [
17532
18045
  },
17533
18046
  {
17534
18047
  name: "first_position_nft_mint",
17535
- writable: true
18048
+ writable: true,
18049
+ signer: true
17536
18050
  },
17537
18051
  {
17538
18052
  name: "first_position_nft_account",
@@ -17545,6 +18059,7 @@ var instructions = [
17545
18059
  {
17546
18060
  name: "second_position_nft_mint",
17547
18061
  writable: true,
18062
+ signer: true,
17548
18063
  optional: true
17549
18064
  },
17550
18065
  {
@@ -17835,10 +18350,7 @@ var instructions = [
17835
18350
  },
17836
18351
  {
17837
18352
  name: "fee_claimer",
17838
- signer: true,
17839
- relations: [
17840
- "config"
17841
- ]
18353
+ signer: true
17842
18354
  },
17843
18355
  {
17844
18356
  name: "token_quote_program",
@@ -18021,6 +18533,19 @@ var instructions = [
18021
18533
  "config"
18022
18534
  ]
18023
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
+ },
18024
18549
  {
18025
18550
  name: "token_quote_program",
18026
18551
  docs: [
@@ -18391,10 +18916,7 @@ var instructions = [
18391
18916
  },
18392
18917
  {
18393
18918
  name: "creator",
18394
- signer: true,
18395
- relations: [
18396
- "virtual_pool"
18397
- ]
18919
+ signer: true
18398
18920
  },
18399
18921
  {
18400
18922
  name: "new_creator"
@@ -18435,37 +18957,6 @@ var instructions = [
18435
18957
  args: [
18436
18958
  ]
18437
18959
  },
18438
- {
18439
- name: "withdraw_lamports_from_pool_authority",
18440
- discriminator: [
18441
- 20,
18442
- 185,
18443
- 242,
18444
- 240,
18445
- 129,
18446
- 24,
18447
- 212,
18448
- 194
18449
- ],
18450
- accounts: [
18451
- {
18452
- name: "pool_authority",
18453
- writable: true,
18454
- address: "FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM"
18455
- },
18456
- {
18457
- name: "receiver",
18458
- writable: true,
18459
- address: "4EWqcx3aNZmMetCnxwLYwyNjan6XLGp3Ca2W316vrSjv"
18460
- },
18461
- {
18462
- name: "system_program",
18463
- address: "11111111111111111111111111111111"
18464
- }
18465
- ],
18466
- args: [
18467
- ]
18468
- },
18469
18960
  {
18470
18961
  name: "withdraw_leftover",
18471
18962
  discriminator: [
@@ -18990,6 +19481,19 @@ var events = [
18990
19481
  37
18991
19482
  ]
18992
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
+ },
18993
19497
  {
18994
19498
  name: "EvtPartnerMetadata",
18995
19499
  discriminator: [
@@ -19376,6 +19880,31 @@ var errors = [
19376
19880
  code: 6050,
19377
19881
  name: "AccountInvariantViolation",
19378
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"
19379
19908
  }
19380
19909
  ];
19381
19910
  var types = [
@@ -19561,19 +20090,19 @@ var types = [
19561
20090
  type: "u8"
19562
20091
  },
19563
20092
  {
19564
- name: "partner_lp_percentage",
20093
+ name: "partner_liquidity_percentage",
19565
20094
  type: "u8"
19566
20095
  },
19567
20096
  {
19568
- name: "partner_locked_lp_percentage",
20097
+ name: "partner_permanent_locked_liquidity_percentage",
19569
20098
  type: "u8"
19570
20099
  },
19571
20100
  {
19572
- name: "creator_lp_percentage",
20101
+ name: "creator_liquidity_percentage",
19573
20102
  type: "u8"
19574
20103
  },
19575
20104
  {
19576
- name: "creator_locked_lp_percentage",
20105
+ name: "creator_permanent_locked_liquidity_percentage",
19577
20106
  type: "u8"
19578
20107
  },
19579
20108
  {
@@ -19630,6 +20159,29 @@ var types = [
19630
20159
  }
19631
20160
  }
19632
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
+ },
19633
20185
  {
19634
20186
  name: "padding",
19635
20187
  docs: [
@@ -19637,8 +20189,8 @@ var types = [
19637
20189
  ],
19638
20190
  type: {
19639
20191
  array: [
19640
- "u64",
19641
- 7
20192
+ "u8",
20193
+ 22
19642
20194
  ]
19643
20195
  }
19644
20196
  },
@@ -19841,7 +20393,7 @@ var types = [
19841
20393
  type: "pubkey"
19842
20394
  },
19843
20395
  {
19844
- name: "treasury",
20396
+ name: "receiver",
19845
20397
  type: "pubkey"
19846
20398
  },
19847
20399
  {
@@ -19978,19 +20530,19 @@ var types = [
19978
20530
  type: "u8"
19979
20531
  },
19980
20532
  {
19981
- name: "partner_locked_lp_percentage",
20533
+ name: "partner_permanent_locked_liquidity_percentage",
19982
20534
  type: "u8"
19983
20535
  },
19984
20536
  {
19985
- name: "partner_lp_percentage",
20537
+ name: "partner_liquidity_percentage",
19986
20538
  type: "u8"
19987
20539
  },
19988
20540
  {
19989
- name: "creator_locked_lp_percentage",
20541
+ name: "creator_permanent_locked_liquidity_percentage",
19990
20542
  type: "u8"
19991
20543
  },
19992
20544
  {
19993
- name: "creator_lp_percentage",
20545
+ name: "creator_liquidity_percentage",
19994
20546
  type: "u8"
19995
20547
  },
19996
20548
  {
@@ -20162,6 +20714,26 @@ var types = [
20162
20714
  ]
20163
20715
  }
20164
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
+ },
20165
20737
  {
20166
20738
  name: "EvtPartnerMetadata",
20167
20739
  docs: [
@@ -20464,6 +21036,79 @@ var types = [
20464
21036
  ]
20465
21037
  }
20466
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
+ },
20467
21112
  {
20468
21113
  name: "LockEscrow",
20469
21114
  docs: [
@@ -20594,7 +21239,7 @@ var types = [
20594
21239
  {
20595
21240
  name: "padding_0",
20596
21241
  docs: [
20597
- "!!! BE CAREFUL to use tomestone field, previous is pool creator"
21242
+ "!!! BE CAREFUL to use tombstone field, previous is pool creator"
20598
21243
  ],
20599
21244
  type: {
20600
21245
  array: [
@@ -20618,30 +21263,30 @@ var types = [
20618
21263
  type: "pubkey"
20619
21264
  },
20620
21265
  {
20621
- name: "partner_locked_lp",
21266
+ name: "partner_locked_liquidity",
20622
21267
  docs: [
20623
- "partner locked lp"
21268
+ "partner locked liquidity"
20624
21269
  ],
20625
21270
  type: "u64"
20626
21271
  },
20627
21272
  {
20628
- name: "partner_lp",
21273
+ name: "partner_liquidity",
20629
21274
  docs: [
20630
- "partner lp"
21275
+ "partner liquidity"
20631
21276
  ],
20632
21277
  type: "u64"
20633
21278
  },
20634
21279
  {
20635
- name: "creator_locked_lp",
21280
+ name: "creator_locked_liquidity",
20636
21281
  docs: [
20637
- "creator locked lp"
21282
+ "creator locked liquidity"
20638
21283
  ],
20639
21284
  type: "u64"
20640
21285
  },
20641
21286
  {
20642
- name: "creator_lp",
21287
+ name: "creator_liquidity",
20643
21288
  docs: [
20644
- "creator lp"
21289
+ "creator liquidity"
20645
21290
  ],
20646
21291
  type: "u64"
20647
21292
  },
@@ -20655,28 +21300,28 @@ var types = [
20655
21300
  {
20656
21301
  name: "creator_locked_status",
20657
21302
  docs: [
20658
- "flag to check whether lp is locked for creator"
21303
+ "flag to check whether liquidity token is locked for creator"
20659
21304
  ],
20660
21305
  type: "u8"
20661
21306
  },
20662
21307
  {
20663
21308
  name: "partner_locked_status",
20664
21309
  docs: [
20665
- "flag to check whether lp is locked for partner"
21310
+ "flag to check whether liquidity token is locked for partner"
20666
21311
  ],
20667
21312
  type: "u8"
20668
21313
  },
20669
21314
  {
20670
21315
  name: "creator_claim_status",
20671
21316
  docs: [
20672
- "flag to check whether creator has claimed lp token"
21317
+ "flag to check whether creator has claimed liquidity token"
20673
21318
  ],
20674
21319
  type: "u8"
20675
21320
  },
20676
21321
  {
20677
21322
  name: "partner_claim_status",
20678
21323
  docs: [
20679
- "flag to check whether partner has claimed lp token"
21324
+ "flag to check whether partner has claimed liquidity token"
20680
21325
  ],
20681
21326
  type: "u8"
20682
21327
  },
@@ -20823,6 +21468,41 @@ var types = [
20823
21468
  }
20824
21469
  }
20825
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
+ },
20826
21506
  {
20827
21507
  name: "collect_fee_mode",
20828
21508
  docs: [
@@ -20873,30 +21553,30 @@ var types = [
20873
21553
  type: "u8"
20874
21554
  },
20875
21555
  {
20876
- name: "partner_locked_lp_percentage",
21556
+ name: "partner_permanent_locked_liquidity_percentage",
20877
21557
  docs: [
20878
- "partner locked lp percentage"
21558
+ "partner locked liquidity percentage"
20879
21559
  ],
20880
21560
  type: "u8"
20881
21561
  },
20882
21562
  {
20883
- name: "partner_lp_percentage",
21563
+ name: "partner_liquidity_percentage",
20884
21564
  docs: [
20885
- "partner lp percentage"
21565
+ "partner liquidity percentage"
20886
21566
  ],
20887
21567
  type: "u8"
20888
21568
  },
20889
21569
  {
20890
- name: "creator_locked_lp_percentage",
21570
+ name: "creator_permanent_locked_liquidity_percentage",
20891
21571
  docs: [
20892
21572
  "creator post migration fee percentage"
20893
21573
  ],
20894
21574
  type: "u8"
20895
21575
  },
20896
21576
  {
20897
- name: "creator_lp_percentage",
21577
+ name: "creator_liquidity_percentage",
20898
21578
  docs: [
20899
- "creator lp percentage"
21579
+ "creator liquidity percentage"
20900
21580
  ],
20901
21581
  type: "u8"
20902
21582
  },
@@ -20943,10 +21623,7 @@ var types = [
20943
21623
  type: "u8"
20944
21624
  },
20945
21625
  {
20946
- name: "_padding_0",
20947
- docs: [
20948
- "padding 0"
20949
- ],
21626
+ name: "padding_2",
20950
21627
  type: {
20951
21628
  array: [
20952
21629
  "u8",
@@ -21036,10 +21713,17 @@ var types = [
21036
21713
  type: {
21037
21714
  array: [
21038
21715
  "u8",
21039
- 12
21716
+ 4
21040
21717
  ]
21041
21718
  }
21042
21719
  },
21720
+ {
21721
+ name: "pool_creation_fee",
21722
+ docs: [
21723
+ "pool creation fee in lamports value"
21724
+ ],
21725
+ type: "u64"
21726
+ },
21043
21727
  {
21044
21728
  name: "_padding_2",
21045
21729
  docs: [
@@ -21159,32 +21843,6 @@ var types = [
21159
21843
  name: "DynamicFeeConfig"
21160
21844
  }
21161
21845
  }
21162
- },
21163
- {
21164
- name: "padding_0",
21165
- type: {
21166
- array: [
21167
- "u64",
21168
- 5
21169
- ]
21170
- }
21171
- },
21172
- {
21173
- name: "padding_1",
21174
- type: {
21175
- array: [
21176
- "u8",
21177
- 6
21178
- ]
21179
- }
21180
- },
21181
- {
21182
- name: "protocol_fee_percent",
21183
- type: "u8"
21184
- },
21185
- {
21186
- name: "referral_fee_percent",
21187
- type: "u8"
21188
21846
  }
21189
21847
  ]
21190
21848
  }
@@ -21560,16 +22218,29 @@ var types = [
21560
22218
  ],
21561
22219
  type: "u64"
21562
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
+ },
21563
22228
  {
21564
22229
  name: "creation_fee_bits",
22230
+ docs: [
22231
+ "pool creation fee claim status"
22232
+ ],
21565
22233
  type: "u8"
21566
22234
  },
21567
22235
  {
21568
22236
  name: "_padding_0",
22237
+ docs: [
22238
+ "Padding for further use"
22239
+ ],
21569
22240
  type: {
21570
22241
  array: [
21571
22242
  "u8",
21572
- 7
22243
+ 6
21573
22244
  ]
21574
22245
  }
21575
22246
  },
@@ -21687,4 +22358,4 @@ var idl = {
21687
22358
  types: types
21688
22359
  };
21689
22360
 
21690
- 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 BuildCurveWithMidPriceParams, 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, buildCurveWithMidPrice, 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, getCurveBreakdown, 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 };