@meteora-ag/dynamic-bonding-curve-sdk 1.5.11 → 1.5.13

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.2.0';
16
+ version: '0.2.1';
17
17
  spec: '0.1.0';
18
18
  description: 'Created with Anchor';
19
19
  };
@@ -197,87 +197,6 @@ type DynamicBondingCurve = {
197
197
  ];
198
198
  args: [];
199
199
  },
200
- {
201
- name: 'claimProtocolFee';
202
- docs: ['Accepts: VirtualPool only.'];
203
- discriminator: [165, 228, 133, 48, 99, 249, 255, 33];
204
- accounts: [
205
- {
206
- name: 'poolAuthority';
207
- address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
208
- },
209
- {
210
- name: 'config';
211
- relations: ['pool'];
212
- },
213
- {
214
- name: 'pool';
215
- writable: true;
216
- },
217
- {
218
- name: 'baseVault';
219
- docs: ['The vault token account for input token'];
220
- writable: true;
221
- relations: ['pool'];
222
- },
223
- {
224
- name: 'quoteVault';
225
- docs: ['The vault token account for output token'];
226
- writable: true;
227
- relations: ['pool'];
228
- },
229
- {
230
- name: 'baseMint';
231
- docs: ['The mint of token a'];
232
- relations: ['pool'];
233
- },
234
- {
235
- name: 'quoteMint';
236
- docs: ['The mint of token b'];
237
- relations: ['config'];
238
- },
239
- {
240
- name: 'tokenBaseAccount';
241
- writable: true;
242
- },
243
- {
244
- name: 'tokenQuoteAccount';
245
- writable: true;
246
- },
247
- {
248
- name: 'operator';
249
- },
250
- {
251
- name: 'signer';
252
- docs: ['Signer'];
253
- signer: true;
254
- },
255
- {
256
- name: 'tokenBaseProgram';
257
- docs: ['Token a program'];
258
- },
259
- {
260
- name: 'tokenQuoteProgram';
261
- docs: ['Token b program'];
262
- },
263
- {
264
- name: 'eventAuthority';
265
- },
266
- {
267
- name: 'program';
268
- }
269
- ];
270
- args: [
271
- {
272
- name: 'maxBaseAmount';
273
- type: 'u64';
274
- },
275
- {
276
- name: 'maxQuoteAmount';
277
- type: 'u64';
278
- }
279
- ];
280
- },
281
200
  {
282
201
  name: 'claimProtocolFee2';
283
202
  docs: ['Accepts: VirtualPool or TransferHookPool.'];
@@ -568,6 +487,34 @@ type DynamicBondingCurve = {
568
487
  ];
569
488
  args: [];
570
489
  },
490
+ {
491
+ name: 'closeTokenBadge';
492
+ discriminator: [108, 146, 86, 110, 179, 254, 10, 104];
493
+ accounts: [
494
+ {
495
+ name: 'tokenBadge';
496
+ writable: true;
497
+ },
498
+ {
499
+ name: 'operator';
500
+ },
501
+ {
502
+ name: 'signer';
503
+ signer: true;
504
+ },
505
+ {
506
+ name: 'rentReceiver';
507
+ writable: true;
508
+ },
509
+ {
510
+ name: 'eventAuthority';
511
+ },
512
+ {
513
+ name: 'program';
514
+ }
515
+ ];
516
+ args: [];
517
+ },
571
518
  {
572
519
  name: 'createConfig';
573
520
  discriminator: [201, 207, 243, 114, 75, 111, 47, 189];
@@ -877,6 +824,67 @@ type DynamicBondingCurve = {
877
824
  }
878
825
  ];
879
826
  },
827
+ {
828
+ name: 'createTokenBadge';
829
+ discriminator: [88, 206, 0, 91, 60, 175, 151, 118];
830
+ accounts: [
831
+ {
832
+ name: 'tokenBadge';
833
+ writable: true;
834
+ pda: {
835
+ seeds: [
836
+ {
837
+ kind: 'const';
838
+ value: [
839
+ 116,
840
+ 111,
841
+ 107,
842
+ 101,
843
+ 110,
844
+ 95,
845
+ 98,
846
+ 97,
847
+ 100,
848
+ 103,
849
+ 101
850
+ ];
851
+ },
852
+ {
853
+ kind: 'account';
854
+ path: 'tokenMint';
855
+ }
856
+ ];
857
+ };
858
+ },
859
+ {
860
+ name: 'tokenMint';
861
+ },
862
+ {
863
+ name: 'operator';
864
+ },
865
+ {
866
+ name: 'signer';
867
+ docs: ['operator'];
868
+ signer: true;
869
+ },
870
+ {
871
+ name: 'payer';
872
+ writable: true;
873
+ signer: true;
874
+ },
875
+ {
876
+ name: 'systemProgram';
877
+ address: '11111111111111111111111111111111';
878
+ },
879
+ {
880
+ name: 'eventAuthority';
881
+ },
882
+ {
883
+ name: 'program';
884
+ }
885
+ ];
886
+ args: [];
887
+ },
880
888
  {
881
889
  name: 'createVirtualPoolMetadata';
882
890
  docs: ['Accepts: VirtualPool or TransferHookPool.'];
@@ -2593,59 +2601,6 @@ type DynamicBondingCurve = {
2593
2601
  type: 'u8';
2594
2602
  }
2595
2603
  ];
2596
- },
2597
- {
2598
- name: 'zapProtocolFee';
2599
- docs: ['Accepts: VirtualPool only.'];
2600
- discriminator: [213, 155, 187, 34, 56, 182, 91, 240];
2601
- accounts: [
2602
- {
2603
- name: 'poolAuthority';
2604
- address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
2605
- },
2606
- {
2607
- name: 'config';
2608
- relations: ['pool'];
2609
- },
2610
- {
2611
- name: 'pool';
2612
- writable: true;
2613
- },
2614
- {
2615
- name: 'tokenVault';
2616
- writable: true;
2617
- },
2618
- {
2619
- name: 'tokenMint';
2620
- },
2621
- {
2622
- name: 'receiverToken';
2623
- writable: true;
2624
- },
2625
- {
2626
- name: 'operator';
2627
- docs: ['zap claim fee operator'];
2628
- },
2629
- {
2630
- name: 'signer';
2631
- docs: ['operator'];
2632
- signer: true;
2633
- },
2634
- {
2635
- name: 'tokenProgram';
2636
- docs: ['Token program'];
2637
- },
2638
- {
2639
- name: 'sysvarInstructions';
2640
- address: 'Sysvar1nstructions1111111111111111111111111';
2641
- }
2642
- ];
2643
- args: [
2644
- {
2645
- name: 'maxAmount';
2646
- type: 'u64';
2647
- }
2648
- ];
2649
2604
  }
2650
2605
  ];
2651
2606
  accounts: [
@@ -2673,6 +2628,10 @@ type DynamicBondingCurve = {
2673
2628
  name: 'poolConfig';
2674
2629
  discriminator: [26, 108, 14, 123, 116, 230, 129, 43];
2675
2630
  },
2631
+ {
2632
+ name: 'tokenBadge';
2633
+ discriminator: [116, 219, 204, 229, 249, 116, 255, 150];
2634
+ },
2676
2635
  {
2677
2636
  name: 'transferHookPool';
2678
2637
  discriminator: [237, 219, 184, 23, 42, 189, 169, 35];
@@ -2695,10 +2654,6 @@ type DynamicBondingCurve = {
2695
2654
  name: 'evtClaimPoolCreationFee';
2696
2655
  discriminator: [149, 111, 149, 44, 136, 64, 175, 62];
2697
2656
  },
2698
- {
2699
- name: 'evtClaimProtocolFee';
2700
- discriminator: [186, 244, 75, 251, 188, 13, 25, 33];
2701
- },
2702
2657
  {
2703
2658
  name: 'evtClaimProtocolFee2';
2704
2659
  discriminator: [187, 133, 66, 9, 205, 161, 84, 13];
@@ -2711,6 +2666,10 @@ type DynamicBondingCurve = {
2711
2666
  name: 'evtCloseClaimFeeOperator';
2712
2667
  discriminator: [111, 39, 37, 55, 110, 216, 194, 23];
2713
2668
  },
2669
+ {
2670
+ name: 'evtCloseTokenBadge';
2671
+ discriminator: [60, 217, 34, 82, 183, 10, 89, 188];
2672
+ },
2714
2673
  {
2715
2674
  name: 'evtCreateClaimFeeOperator';
2716
2675
  discriminator: [21, 6, 153, 120, 68, 116, 28, 177];
@@ -2731,6 +2690,10 @@ type DynamicBondingCurve = {
2731
2690
  name: 'evtCreateMeteoraMigrationMetadata';
2732
2691
  discriminator: [99, 167, 133, 63, 214, 143, 175, 139];
2733
2692
  },
2693
+ {
2694
+ name: 'evtCreateTokenBadge';
2695
+ discriminator: [141, 120, 134, 116, 34, 28, 114, 160];
2696
+ },
2734
2697
  {
2735
2698
  name: 'evtCreatorWithdrawSurplus';
2736
2699
  discriminator: [152, 73, 21, 15, 66, 87, 53, 157];
@@ -3177,6 +3140,36 @@ type DynamicBondingCurve = {
3177
3140
  code: 6076;
3178
3141
  name: 'poolTypeMismatch';
3179
3142
  msg: 'Pool type does not match instruction';
3143
+ },
3144
+ {
3145
+ code: 6077;
3146
+ name: 'invalidRemainingAccountSliceType';
3147
+ msg: 'Invalid remaining account slice type for this instruction';
3148
+ },
3149
+ {
3150
+ code: 6078;
3151
+ name: 'deprecatedBaseFeeMode';
3152
+ msg: 'Deprecated base fee mode';
3153
+ },
3154
+ {
3155
+ code: 6079;
3156
+ name: 'cannotCreateTokenBadgeOnSupportedMint';
3157
+ msg: 'Cannot create token badge on supported mint';
3158
+ },
3159
+ {
3160
+ code: 6080;
3161
+ name: 'invalidTokenBadge';
3162
+ msg: 'Invalid token badge';
3163
+ },
3164
+ {
3165
+ code: 6081;
3166
+ name: 'quoteMintHasNonZeroTransferFee';
3167
+ msg: 'Quote mint has a non zero transfer fee';
3168
+ },
3169
+ {
3170
+ code: 6082;
3171
+ name: 'deprecatedMigrationOption';
3172
+ msg: 'Deprecated migration option';
3180
3173
  }
3181
3174
  ];
3182
3175
  types: [
@@ -3709,7 +3702,7 @@ type DynamicBondingCurve = {
3709
3702
  };
3710
3703
  },
3711
3704
  {
3712
- name: 'evtClaimProtocolFee';
3705
+ name: 'evtClaimProtocolFee2';
3713
3706
  type: {
3714
3707
  kind: 'struct';
3715
3708
  fields: [
@@ -3718,28 +3711,8 @@ type DynamicBondingCurve = {
3718
3711
  type: 'pubkey';
3719
3712
  },
3720
3713
  {
3721
- name: 'tokenBaseAmount';
3722
- type: 'u64';
3723
- },
3724
- {
3725
- name: 'tokenQuoteAmount';
3726
- type: 'u64';
3727
- }
3728
- ];
3729
- };
3730
- },
3731
- {
3732
- name: 'evtClaimProtocolFee2';
3733
- type: {
3734
- kind: 'struct';
3735
- fields: [
3736
- {
3737
- name: 'pool';
3738
- type: 'pubkey';
3739
- },
3740
- {
3741
- name: 'receiverTokenAccount';
3742
- type: 'pubkey';
3714
+ name: 'receiverTokenAccount';
3715
+ type: 'pubkey';
3743
3716
  },
3744
3717
  {
3745
3718
  name: 'tokenMint';
@@ -3789,6 +3762,18 @@ type DynamicBondingCurve = {
3789
3762
  ];
3790
3763
  };
3791
3764
  },
3765
+ {
3766
+ name: 'evtCloseTokenBadge';
3767
+ type: {
3768
+ kind: 'struct';
3769
+ fields: [
3770
+ {
3771
+ name: 'tokenMint';
3772
+ type: 'pubkey';
3773
+ }
3774
+ ];
3775
+ };
3776
+ },
3792
3777
  {
3793
3778
  name: 'evtCreateClaimFeeOperator';
3794
3779
  docs: ['Create claim fee operator'];
@@ -4001,6 +3986,18 @@ type DynamicBondingCurve = {
4001
3986
  ];
4002
3987
  };
4003
3988
  },
3989
+ {
3990
+ name: 'evtCreateTokenBadge';
3991
+ type: {
3992
+ kind: 'struct';
3993
+ fields: [
3994
+ {
3995
+ name: 'tokenMint';
3996
+ type: 'pubkey';
3997
+ }
3998
+ ];
3999
+ };
4000
+ },
4004
4001
  {
4005
4002
  name: 'evtCreatorWithdrawSurplus';
4006
4003
  type: {
@@ -5579,6 +5576,31 @@ type DynamicBondingCurve = {
5579
5576
  ];
5580
5577
  };
5581
5578
  },
5579
+ {
5580
+ name: 'tokenBadge';
5581
+ docs: ['Parameter that set by the protocol'];
5582
+ serialization: 'bytemuck';
5583
+ repr: {
5584
+ kind: 'c';
5585
+ };
5586
+ type: {
5587
+ kind: 'struct';
5588
+ fields: [
5589
+ {
5590
+ name: 'tokenMint';
5591
+ docs: ['token mint'];
5592
+ type: 'pubkey';
5593
+ },
5594
+ {
5595
+ name: 'padding';
5596
+ docs: ['Reserve'];
5597
+ type: {
5598
+ array: ['u8', 128];
5599
+ };
5600
+ }
5601
+ ];
5602
+ };
5603
+ },
5582
5604
  {
5583
5605
  name: 'tokenSupplyParams';
5584
5606
  type: {
@@ -5733,10 +5755,13 @@ type DynamicBondingCurve = {
5733
5755
  };
5734
5756
 
5735
5757
  type DynamicCurveProgram = Program<DynamicBondingCurve>;
5736
- type CreateConfigAccounts = Accounts<DynamicBondingCurve['instructions']['10']>['createConfig'];
5737
- type CreateDammV1MigrationMetadataAccounts = Accounts<DynamicBondingCurve['instructions']['25']>['migrationMeteoraDammCreateMetadata'];
5738
- type InitializeSplPoolAccounts = Accounts<DynamicBondingCurve['instructions']['17']>['initializeVirtualPoolWithSplToken'];
5739
- type InitializeToken2022PoolAccounts = Accounts<DynamicBondingCurve['instructions']['18']>['initializeVirtualPoolWithToken2022'];
5758
+ type DbcInstruction<TName extends DynamicBondingCurve['instructions'][number]['name']> = Extract<DynamicBondingCurve['instructions'][number], {
5759
+ name: TName;
5760
+ }>;
5761
+ type CreateConfigAccounts = Accounts<DbcInstruction<'createConfig'>>['createConfig'];
5762
+ type CreateDammV1MigrationMetadataAccounts = Accounts<DbcInstruction<'migrationMeteoraDammCreateMetadata'>>['migrationMeteoraDammCreateMetadata'];
5763
+ type InitializeSplPoolAccounts = Accounts<DbcInstruction<'initializeVirtualPoolWithSplToken'>>['initializeVirtualPoolWithSplToken'];
5764
+ type InitializeToken2022PoolAccounts = Accounts<DbcInstruction<'initializeVirtualPoolWithToken2022'>>['initializeVirtualPoolWithToken2022'];
5740
5765
  type ConfigParameters = IdlTypes<DynamicBondingCurve>['configParameters'];
5741
5766
  type LockedVestingParameters = IdlTypes<DynamicBondingCurve>['lockedVestingParams'];
5742
5767
  type InitializePoolParameters = IdlTypes<DynamicBondingCurve>['initializePoolParameters'];
@@ -5763,6 +5788,7 @@ type TransferHookPool = IdlAccounts<DynamicBondingCurve>['transferHookPool'];
5763
5788
  type MeteoraDammMigrationMetadata = IdlAccounts<DynamicBondingCurve>['meteoraDammMigrationMetadata'];
5764
5789
  type PartnerMetadata = IdlAccounts<DynamicBondingCurve>['partnerMetadata'];
5765
5790
  type VirtualPoolMetadata = IdlAccounts<DynamicBondingCurve>['virtualPoolMetadata'];
5791
+ type TokenBadge = IdlAccounts<DynamicBondingCurve>['tokenBadge'];
5766
5792
  declare enum ActivationType {
5767
5793
  Slot = 0,
5768
5794
  Timestamp = 1
@@ -5792,12 +5818,14 @@ declare enum DammV2BaseFeeMode {
5792
5818
  FeeMarketCapSchedulerExponential = 4
5793
5819
  }
5794
5820
  declare enum MigrationOption {
5821
+ /** @deprecated New configs and pools cannot use DAMM v1 migration. Existing pools can still migrate. */
5795
5822
  MET_DAMM = 0,
5796
5823
  MET_DAMM_V2 = 1
5797
5824
  }
5798
5825
  declare enum BaseFeeMode {
5799
5826
  FeeSchedulerLinear = 0,
5800
5827
  FeeSchedulerExponential = 1,
5828
+ /** @deprecated New configs and pools cannot use RateLimiter. Existing pools are unaffected. */
5801
5829
  RateLimiter = 2
5802
5830
  }
5803
5831
  declare enum MigrationFeeOption {
@@ -5843,7 +5871,14 @@ declare const AccountsType: {
5843
5871
  readonly transferHookBaseReferral: {};
5844
5872
  };
5845
5873
  };
5846
- type CreateConfigParams = Omit<CreateConfigAccounts, 'program' | 'eventAuthority' | 'systemProgram'> & ConfigParameters;
5874
+ type CreateConfigParams = Omit<CreateConfigAccounts, 'program' | 'eventAuthority' | 'systemProgram'> & ConfigParameters & {
5875
+ /**
5876
+ * Optional DBC token badge for the quote mint.
5877
+ * Required as remaining account index 0 when the quote mint is not
5878
+ * permissionless-supported (for example Token-2022 mints with extra extensions).
5879
+ */
5880
+ tokenBadge?: PublicKey;
5881
+ };
5847
5882
  type CreateConfigWithTransferHookParams = CreateConfigParams & {
5848
5883
  transferHookProgram: PublicKey;
5849
5884
  };
@@ -5852,7 +5887,7 @@ type BaseFee = Omit<BaseFeeConfig, 'padding0'>;
5852
5887
  type TokenConfig = {
5853
5888
  tokenType: TokenType;
5854
5889
  tokenBaseDecimal: TokenDecimal;
5855
- tokenQuoteDecimal: TokenDecimal;
5890
+ tokenQuoteDecimal: number;
5856
5891
  tokenAuthorityOption: TokenAuthorityOption;
5857
5892
  totalTokenSupply: number;
5858
5893
  leftover: number;
@@ -5979,6 +6014,7 @@ type InitializePoolBaseParams = {
5979
6014
  quoteVault: PublicKey;
5980
6015
  quoteMint: PublicKey;
5981
6016
  mintMetadata?: PublicKey;
6017
+ tokenBadge?: PublicKey;
5982
6018
  };
5983
6019
  type CreatePoolParams = {
5984
6020
  name: string;
@@ -5988,6 +6024,7 @@ type CreatePoolParams = {
5988
6024
  poolCreator: PublicKey;
5989
6025
  config: PublicKey;
5990
6026
  baseMint: PublicKey;
6027
+ tokenBadge?: PublicKey;
5991
6028
  };
5992
6029
  type CreatePoolWithTransferHookParams = CreatePoolParams & {
5993
6030
  transferHookProgram: PublicKey;
@@ -6442,6 +6479,10 @@ declare class StateService {
6442
6479
  * Fetch DAMM V1 migration metadata for a pool.
6443
6480
  */
6444
6481
  getDammV1MigrationMetadata(poolAddress: PublicKey): Promise<MeteoraDammMigrationMetadata>;
6482
+ /**
6483
+ * Fetch the DBC token badge for a mint, if one exists.
6484
+ */
6485
+ getTokenBadge(tokenMint: PublicKey | string): Promise<TokenBadge | null>;
6445
6486
  }
6446
6487
 
6447
6488
  type ClaimTradingFeeAccountParams = {
@@ -6475,10 +6516,14 @@ declare class DynamicBondingCurveProgram {
6475
6516
  quoteMint: PublicKey;
6476
6517
  quoteTokenFlag: TokenType;
6477
6518
  }): PrepareSwapParams;
6478
- protected buildCreateConfigTx(configParam: ConfigParameters, config: PublicKey, feeClaimer: PublicKey, leftoverReceiver: PublicKey, quoteMint: PublicKey, payer: PublicKey): Promise<Transaction>;
6479
- protected buildCreateConfigWithTransferHookTx(configParam: ConfigParameters, config: PublicKey, feeClaimer: PublicKey, leftoverReceiver: PublicKey, quoteMint: PublicKey, transferHookProgram: PublicKey, payer: PublicKey): Promise<Transaction>;
6480
- protected initializeSplPool(params: InitializePoolBaseParams): Promise<Transaction>;
6481
- protected initializeToken2022Pool(params: InitializePoolBaseParams): Promise<Transaction>;
6519
+ protected buildCreateConfigTx(configParam: ConfigParameters, config: PublicKey, feeClaimer: PublicKey, leftoverReceiver: PublicKey, quoteMint: PublicKey, payer: PublicKey, tokenBadge?: PublicKey): Promise<Transaction>;
6520
+ protected buildCreateConfigWithTransferHookTx(configParam: ConfigParameters, config: PublicKey, feeClaimer: PublicKey, leftoverReceiver: PublicKey, quoteMint: PublicKey, transferHookProgram: PublicKey, payer: PublicKey, tokenBadge?: PublicKey): Promise<Transaction>;
6521
+ protected initializeSplPool(params: InitializePoolBaseParams & {
6522
+ tokenQuoteProgram: PublicKey;
6523
+ }): Promise<Transaction>;
6524
+ protected initializeToken2022Pool(params: InitializePoolBaseParams & {
6525
+ tokenQuoteProgram: PublicKey;
6526
+ }): Promise<Transaction>;
6482
6527
  protected initializeToken2022PoolWithTransferHook(params: InitializePoolBaseParams & {
6483
6528
  transferHookProgram: PublicKey;
6484
6529
  tokenQuoteProgram: PublicKey;
@@ -6693,6 +6738,7 @@ declare class PoolService extends DynamicBondingCurveProgram {
6693
6738
  }
6694
6739
 
6695
6740
  declare class CreatorService extends DynamicBondingCurveProgram {
6741
+ private getPoolConfigForNewPool;
6696
6742
  /**
6697
6743
  * Build a transaction that creates metadata for a virtual pool.
6698
6744
  */
@@ -6879,7 +6925,7 @@ declare function getTotalTokenSupply(swapBaseAmount: BN$1, migrationBaseThreshol
6879
6925
  * @param tokenQuoteDecimal - The quote token decimal
6880
6926
  * @returns The initial price
6881
6927
  */
6882
- declare function getPriceFromSqrtPrice(sqrtPrice: BN$1, tokenBaseDecimal: TokenDecimal, tokenQuoteDecimal: TokenDecimal): Decimal;
6928
+ declare function getPriceFromSqrtPrice(sqrtPrice: BN$1, tokenBaseDecimal: TokenDecimal, tokenQuoteDecimal: number): Decimal;
6883
6929
  /**
6884
6930
  * Get the sqrt price from the price
6885
6931
  * @param price - The price
@@ -6894,7 +6940,7 @@ declare const getSqrtPriceFromPrice: (price: string, tokenADecimal: number, toke
6894
6940
  * @param prices - The prices
6895
6941
  * @returns The sqrt prices
6896
6942
  */
6897
- declare const createSqrtPrices: (prices: number[], tokenBaseDecimal: TokenDecimal, tokenQuoteDecimal: TokenDecimal) => BN$1[];
6943
+ declare const createSqrtPrices: (prices: number[], tokenBaseDecimal: TokenDecimal, tokenQuoteDecimal: number) => BN$1[];
6898
6944
  /**
6899
6945
  * Get the sqrt price from the market cap
6900
6946
  * @param marketCap - The market cap
@@ -7071,7 +7117,8 @@ declare function getFeeSchedulerParams(startingBaseFeeBps: number, endingBaseFee
7071
7117
  */
7072
7118
  declare function calculateFeeSchedulerEndingBaseFeeBps(cliffFeeNumerator: number, numberOfPeriod: number, periodFrequency: number, reductionFactor: number, baseFeeMode: BaseFeeMode): number;
7073
7119
  /**
7074
- * Get the rate limiter parameters
7120
+ * Get the rate limiter parameters.
7121
+ * @deprecated New configs cannot use RateLimiter. Kept for quoting existing rate-limiter pools.
7075
7122
  * @param baseFeeBps - The base fee in basis points
7076
7123
  * @param feeIncrementBps - The fee increment in basis points
7077
7124
  * @param referenceAmount - The reference amount
@@ -7080,7 +7127,7 @@ declare function calculateFeeSchedulerEndingBaseFeeBps(cliffFeeNumerator: number
7080
7127
  * @param activationType - The activation type
7081
7128
  * @returns The rate limiter parameters
7082
7129
  */
7083
- declare function getRateLimiterParams(baseFeeBps: number, feeIncrementBps: number, referenceAmount: number, maxLimiterDuration: number, tokenQuoteDecimal: TokenDecimal, activationType: ActivationType): BaseFee;
7130
+ declare function getRateLimiterParams(baseFeeBps: number, feeIncrementBps: number, referenceAmount: number, maxLimiterDuration: number, tokenQuoteDecimal: number, activationType: ActivationType): BaseFee;
7084
7131
  /**
7085
7132
  * Get the dynamic fee parameters (20% of base fee)
7086
7133
  * @param baseFeeBps - The base fee in basis points
@@ -7157,11 +7204,9 @@ declare function checkRateLimiterApplied(baseFeeMode: BaseFeeMode, swapBaseForQu
7157
7204
  /**
7158
7205
  * Get base fee parameters based on the base fee mode
7159
7206
  * @param baseFeeParams - The base fee parameters
7160
- * @param tokenQuoteDecimal - The token quote decimal
7161
- * @param activationType - The activation type
7162
7207
  * @returns The base fee parameters
7163
7208
  */
7164
- declare function getBaseFeeParams(baseFeeParams: BaseFeeParams, tokenQuoteDecimal: TokenDecimal, activationType: ActivationType): BaseFee;
7209
+ declare function getBaseFeeParams(baseFeeParams: BaseFeeParams): BaseFee;
7165
7210
  /**
7166
7211
  * Get the quote token amount from sqrt price
7167
7212
  * @param nextSqrtPrice - The next sqrt price
@@ -7416,6 +7461,18 @@ declare function deriveDammV1ProtocolFeeAddress(mint: PublicKey, pool: PublicKey
7416
7461
  * @returns The base key for the locker
7417
7462
  */
7418
7463
  declare function deriveBaseKeyForLocker(virtualPool: PublicKey): PublicKey;
7464
+ /**
7465
+ * Derive the DBC token badge PDA for a mint.
7466
+ * Required as a remaining account when creating a config or pool whose quote mint
7467
+ * is not permissionless-supported.
7468
+ * @param tokenMint - The token mint
7469
+ * @returns The token badge address
7470
+ */
7471
+ declare function deriveTokenBadgeAddress(tokenMint: PublicKey): PublicKey;
7472
+ /**
7473
+ * Remaining accounts for the optional DBC token badge (index 0).
7474
+ */
7475
+ declare function getTokenBadgeRemainingAccounts(tokenBadge?: PublicKey): AccountMeta[];
7419
7476
 
7420
7477
  /**
7421
7478
  * Convert a number or string to a BN value in lamports
@@ -7477,6 +7534,14 @@ declare function bpsToFeeNumerator(bps: number): BN$1;
7477
7534
  */
7478
7535
  declare function feeNumeratorToBps(feeNumerator: BN$1): number;
7479
7536
 
7537
+ /**
7538
+ * Reject deprecated rate-limiter and DAMM v1 options for new configs and pools.
7539
+ * Existing on-chain configs/pools are unaffected.
7540
+ */
7541
+ declare function assertConfigAllowsNewPool(params: {
7542
+ baseFeeMode: number;
7543
+ migrationOption: number;
7544
+ }): void;
7480
7545
  /**
7481
7546
  * Validate base fee, scheduler, rate-limiter, and dynamic fee settings for a pool config.
7482
7547
  */
@@ -7566,7 +7631,7 @@ declare function validateMigratedPoolFee(migratedPoolFee: MigratedPoolFee, migra
7566
7631
  /**
7567
7632
  * Validate config parameters and throw the first actionable error encountered.
7568
7633
  */
7569
- declare function validateConfigParameters(configParam: Omit<CreateConfigParams, 'config' | 'feeClaimer' | 'quoteMint' | 'payer'>, options?: boolean | {
7634
+ declare function validateConfigParameters(configParam: Omit<CreateConfigParams, 'config' | 'feeClaimer' | 'quoteMint' | 'payer' | 'tokenBadge'>, options?: boolean | {
7570
7635
  isTransferHook?: boolean;
7571
7636
  transferHookProgram?: PublicKey;
7572
7637
  }): void;
@@ -14445,7 +14510,7 @@ type CpAmm = {
14445
14510
  address: 'cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG';
14446
14511
  metadata: {
14447
14512
  name: 'cpAmm';
14448
- version: '0.2.0';
14513
+ version: '0.2.4';
14449
14514
  spec: '0.1.0';
14450
14515
  description: 'Created with Anchor';
14451
14516
  };
@@ -14500,8 +14565,8 @@ type CpAmm = {
14500
14565
  docs: ['The token account for nft'];
14501
14566
  },
14502
14567
  {
14503
- name: 'owner';
14504
- docs: ['owner of position'];
14568
+ name: 'signer';
14569
+ docs: ['Signer'];
14505
14570
  signer: true;
14506
14571
  },
14507
14572
  {
@@ -14514,32 +14579,6 @@ type CpAmm = {
14514
14579
  },
14515
14580
  {
14516
14581
  name: 'eventAuthority';
14517
- pda: {
14518
- seeds: [
14519
- {
14520
- kind: 'const';
14521
- value: [
14522
- 95,
14523
- 95,
14524
- 101,
14525
- 118,
14526
- 101,
14527
- 110,
14528
- 116,
14529
- 95,
14530
- 97,
14531
- 117,
14532
- 116,
14533
- 104,
14534
- 111,
14535
- 114,
14536
- 105,
14537
- 116,
14538
- 121
14539
- ];
14540
- }
14541
- ];
14542
- };
14543
14582
  },
14544
14583
  {
14545
14584
  name: 'program';
@@ -14609,8 +14648,8 @@ type CpAmm = {
14609
14648
  docs: ['The token account for nft'];
14610
14649
  },
14611
14650
  {
14612
- name: 'owner';
14613
- docs: ['owner of position'];
14651
+ name: 'signer';
14652
+ docs: ['Signer'];
14614
14653
  signer: true;
14615
14654
  },
14616
14655
  {
@@ -14623,32 +14662,6 @@ type CpAmm = {
14623
14662
  },
14624
14663
  {
14625
14664
  name: 'eventAuthority';
14626
- pda: {
14627
- seeds: [
14628
- {
14629
- kind: 'const';
14630
- value: [
14631
- 95,
14632
- 95,
14633
- 101,
14634
- 118,
14635
- 101,
14636
- 110,
14637
- 116,
14638
- 95,
14639
- 97,
14640
- 117,
14641
- 116,
14642
- 104,
14643
- 111,
14644
- 114,
14645
- 105,
14646
- 116,
14647
- 121
14648
- ];
14649
- }
14650
- ];
14651
- };
14652
14665
  },
14653
14666
  {
14654
14667
  name: 'program';
@@ -14657,104 +14670,57 @@ type CpAmm = {
14657
14670
  args: [];
14658
14671
  },
14659
14672
  {
14660
- name: 'claimProtocolFee';
14661
- discriminator: [165, 228, 133, 48, 99, 249, 255, 33];
14673
+ name: 'claimProtocolFee2';
14674
+ discriminator: [235, 194, 54, 69, 65, 10, 236, 112];
14662
14675
  accounts: [
14663
14676
  {
14664
- name: 'poolAuthority';
14665
- address: 'HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC';
14666
- },
14667
- {
14668
- name: 'pool';
14669
- writable: true;
14670
- },
14671
- {
14672
- name: 'tokenAVault';
14673
- docs: ['The vault token account for input token'];
14674
- writable: true;
14675
- relations: ['pool'];
14676
- },
14677
- {
14678
- name: 'tokenBVault';
14679
- docs: ['The vault token account for output token'];
14677
+ name: 'receiverTokenAccount';
14678
+ docs: [
14679
+ 'receiver token account for the claimed token. validated through the protocol_fee program'
14680
+ ];
14680
14681
  writable: true;
14681
- relations: ['pool'];
14682
14682
  },
14683
14683
  {
14684
14684
  name: 'tokenAMint';
14685
- docs: ['The mint of token a'];
14686
14685
  relations: ['pool'];
14687
14686
  },
14688
14687
  {
14689
14688
  name: 'tokenBMint';
14690
- docs: ['The mint of token b'];
14691
14689
  relations: ['pool'];
14692
14690
  },
14693
14691
  {
14694
- name: 'tokenAAccount';
14695
- writable: true;
14696
- },
14697
- {
14698
- name: 'tokenBAccount';
14699
- writable: true;
14692
+ name: 'tokenAProgram';
14700
14693
  },
14701
14694
  {
14702
- name: 'operator';
14703
- docs: ['Claim fee operator'];
14695
+ name: 'tokenBProgram';
14704
14696
  },
14705
14697
  {
14706
- name: 'signer';
14707
- docs: ['operator'];
14708
- signer: true;
14698
+ name: 'pool';
14699
+ writable: true;
14709
14700
  },
14710
14701
  {
14711
- name: 'tokenAProgram';
14712
- docs: ['Token a program'];
14702
+ name: 'tokenAVault';
14703
+ writable: true;
14704
+ relations: ['pool'];
14713
14705
  },
14714
14706
  {
14715
- name: 'tokenBProgram';
14716
- docs: ['Token b program'];
14707
+ name: 'tokenBVault';
14708
+ writable: true;
14709
+ relations: ['pool'];
14717
14710
  },
14718
14711
  {
14719
- name: 'eventAuthority';
14720
- pda: {
14721
- seeds: [
14722
- {
14723
- kind: 'const';
14724
- value: [
14725
- 95,
14726
- 95,
14727
- 101,
14728
- 118,
14729
- 101,
14730
- 110,
14731
- 116,
14732
- 95,
14733
- 97,
14734
- 117,
14735
- 116,
14736
- 104,
14737
- 111,
14738
- 114,
14739
- 105,
14740
- 116,
14741
- 121
14742
- ];
14743
- }
14744
- ];
14745
- };
14712
+ name: 'poolAuthority';
14713
+ address: 'HLnpSz9h2S4hiLQ43rnSD9XkcUThA7B8hQMKmDaiTLcC';
14746
14714
  },
14747
14715
  {
14748
- name: 'program';
14716
+ name: 'signer';
14717
+ signer: true;
14718
+ address: 'FkU5rQCWQM131skHCpcEbK8P1JrQGsBgqXe55w525SSF';
14749
14719
  }
14750
14720
  ];
14751
14721
  args: [
14752
14722
  {
14753
- name: 'maxAmountA';
14754
- type: 'u64';
14755
- },
14756
- {
14757
- name: 'maxAmountB';
14723
+ name: 'maxAmount';
14758
14724
  type: 'u64';
14759
14725
  }
14760
14726
  ];
@@ -14793,8 +14759,8 @@ type CpAmm = {
14793
14759
  docs: ['The token account for nft'];
14794
14760
  },
14795
14761
  {
14796
- name: 'owner';
14797
- docs: ['owner of position'];
14762
+ name: 'signer';
14763
+ docs: ['Signer'];
14798
14764
  signer: true;
14799
14765
  },
14800
14766
  {
@@ -14802,32 +14768,6 @@ type CpAmm = {
14802
14768
  },
14803
14769
  {
14804
14770
  name: 'eventAuthority';
14805
- pda: {
14806
- seeds: [
14807
- {
14808
- kind: 'const';
14809
- value: [
14810
- 95,
14811
- 95,
14812
- 101,
14813
- 118,
14814
- 101,
14815
- 110,
14816
- 116,
14817
- 95,
14818
- 97,
14819
- 117,
14820
- 116,
14821
- 104,
14822
- 111,
14823
- 114,
14824
- 105,
14825
- 116,
14826
- 121
14827
- ];
14828
- }
14829
- ];
14830
- };
14831
14771
  },
14832
14772
  {
14833
14773
  name: 'program';
@@ -14865,32 +14805,6 @@ type CpAmm = {
14865
14805
  },
14866
14806
  {
14867
14807
  name: 'eventAuthority';
14868
- pda: {
14869
- seeds: [
14870
- {
14871
- kind: 'const';
14872
- value: [
14873
- 95,
14874
- 95,
14875
- 101,
14876
- 118,
14877
- 101,
14878
- 110,
14879
- 116,
14880
- 95,
14881
- 97,
14882
- 117,
14883
- 116,
14884
- 104,
14885
- 111,
14886
- 114,
14887
- 105,
14888
- 116,
14889
- 121
14890
- ];
14891
- }
14892
- ];
14893
- };
14894
14808
  },
14895
14809
  {
14896
14810
  name: 'program';
@@ -14916,32 +14830,6 @@ type CpAmm = {
14916
14830
  },
14917
14831
  {
14918
14832
  name: 'eventAuthority';
14919
- pda: {
14920
- seeds: [
14921
- {
14922
- kind: 'const';
14923
- value: [
14924
- 95,
14925
- 95,
14926
- 101,
14927
- 118,
14928
- 101,
14929
- 110,
14930
- 116,
14931
- 95,
14932
- 97,
14933
- 117,
14934
- 116,
14935
- 104,
14936
- 111,
14937
- 114,
14938
- 105,
14939
- 116,
14940
- 121
14941
- ];
14942
- }
14943
- ];
14944
- };
14945
14833
  },
14946
14834
  {
14947
14835
  name: 'program';
@@ -14994,32 +14882,6 @@ type CpAmm = {
14994
14882
  },
14995
14883
  {
14996
14884
  name: 'eventAuthority';
14997
- pda: {
14998
- seeds: [
14999
- {
15000
- kind: 'const';
15001
- value: [
15002
- 95,
15003
- 95,
15004
- 101,
15005
- 118,
15006
- 101,
15007
- 110,
15008
- 116,
15009
- 95,
15010
- 97,
15011
- 117,
15012
- 116,
15013
- 104,
15014
- 111,
15015
- 114,
15016
- 105,
15017
- 116,
15018
- 121
15019
- ];
15020
- }
15021
- ];
15022
- };
15023
14885
  },
15024
14886
  {
15025
14887
  name: 'program';
@@ -15048,32 +14910,6 @@ type CpAmm = {
15048
14910
  },
15049
14911
  {
15050
14912
  name: 'eventAuthority';
15051
- pda: {
15052
- seeds: [
15053
- {
15054
- kind: 'const';
15055
- value: [
15056
- 95,
15057
- 95,
15058
- 101,
15059
- 118,
15060
- 101,
15061
- 110,
15062
- 116,
15063
- 95,
15064
- 97,
15065
- 117,
15066
- 116,
15067
- 104,
15068
- 111,
15069
- 114,
15070
- 105,
15071
- 116,
15072
- 121
15073
- ];
15074
- }
15075
- ];
15076
- };
15077
14913
  },
15078
14914
  {
15079
14915
  name: 'program';
@@ -15120,32 +14956,6 @@ type CpAmm = {
15120
14956
  },
15121
14957
  {
15122
14958
  name: 'eventAuthority';
15123
- pda: {
15124
- seeds: [
15125
- {
15126
- kind: 'const';
15127
- value: [
15128
- 95,
15129
- 95,
15130
- 101,
15131
- 118,
15132
- 101,
15133
- 110,
15134
- 116,
15135
- 95,
15136
- 97,
15137
- 117,
15138
- 116,
15139
- 104,
15140
- 111,
15141
- 114,
15142
- 105,
15143
- 116,
15144
- 121
15145
- ];
15146
- }
15147
- ];
15148
- };
15149
14959
  },
15150
14960
  {
15151
14961
  name: 'program';
@@ -15204,32 +15014,6 @@ type CpAmm = {
15204
15014
  },
15205
15015
  {
15206
15016
  name: 'eventAuthority';
15207
- pda: {
15208
- seeds: [
15209
- {
15210
- kind: 'const';
15211
- value: [
15212
- 95,
15213
- 95,
15214
- 101,
15215
- 118,
15216
- 101,
15217
- 110,
15218
- 116,
15219
- 95,
15220
- 97,
15221
- 117,
15222
- 116,
15223
- 104,
15224
- 111,
15225
- 114,
15226
- 105,
15227
- 116,
15228
- 121
15229
- ];
15230
- }
15231
- ];
15232
- };
15233
15017
  },
15234
15018
  {
15235
15019
  name: 'program';
@@ -15289,32 +15073,6 @@ type CpAmm = {
15289
15073
  },
15290
15074
  {
15291
15075
  name: 'eventAuthority';
15292
- pda: {
15293
- seeds: [
15294
- {
15295
- kind: 'const';
15296
- value: [
15297
- 95,
15298
- 95,
15299
- 101,
15300
- 118,
15301
- 101,
15302
- 110,
15303
- 116,
15304
- 95,
15305
- 97,
15306
- 117,
15307
- 116,
15308
- 104,
15309
- 111,
15310
- 114,
15311
- 105,
15312
- 116,
15313
- 121
15314
- ];
15315
- }
15316
- ];
15317
- };
15318
15076
  },
15319
15077
  {
15320
15078
  name: 'program';
@@ -15423,32 +15181,6 @@ type CpAmm = {
15423
15181
  },
15424
15182
  {
15425
15183
  name: 'eventAuthority';
15426
- pda: {
15427
- seeds: [
15428
- {
15429
- kind: 'const';
15430
- value: [
15431
- 95,
15432
- 95,
15433
- 101,
15434
- 118,
15435
- 101,
15436
- 110,
15437
- 116,
15438
- 95,
15439
- 97,
15440
- 117,
15441
- 116,
15442
- 104,
15443
- 111,
15444
- 114,
15445
- 105,
15446
- 116,
15447
- 121
15448
- ];
15449
- }
15450
- ];
15451
- };
15452
15184
  },
15453
15185
  {
15454
15186
  name: 'program';
@@ -15509,32 +15241,6 @@ type CpAmm = {
15509
15241
  },
15510
15242
  {
15511
15243
  name: 'eventAuthority';
15512
- pda: {
15513
- seeds: [
15514
- {
15515
- kind: 'const';
15516
- value: [
15517
- 95,
15518
- 95,
15519
- 101,
15520
- 118,
15521
- 101,
15522
- 110,
15523
- 116,
15524
- 95,
15525
- 97,
15526
- 117,
15527
- 116,
15528
- 104,
15529
- 111,
15530
- 114,
15531
- 105,
15532
- 116,
15533
- 121
15534
- ];
15535
- }
15536
- ];
15537
- };
15538
15244
  },
15539
15245
  {
15540
15246
  name: 'program';
@@ -15667,32 +15373,6 @@ type CpAmm = {
15667
15373
  },
15668
15374
  {
15669
15375
  name: 'eventAuthority';
15670
- pda: {
15671
- seeds: [
15672
- {
15673
- kind: 'const';
15674
- value: [
15675
- 95,
15676
- 95,
15677
- 101,
15678
- 118,
15679
- 101,
15680
- 110,
15681
- 116,
15682
- 95,
15683
- 97,
15684
- 117,
15685
- 116,
15686
- 104,
15687
- 111,
15688
- 114,
15689
- 105,
15690
- 116,
15691
- 121
15692
- ];
15693
- }
15694
- ];
15695
- };
15696
15376
  },
15697
15377
  {
15698
15378
  name: 'program';
@@ -15900,32 +15580,6 @@ type CpAmm = {
15900
15580
  },
15901
15581
  {
15902
15582
  name: 'eventAuthority';
15903
- pda: {
15904
- seeds: [
15905
- {
15906
- kind: 'const';
15907
- value: [
15908
- 95,
15909
- 95,
15910
- 101,
15911
- 118,
15912
- 101,
15913
- 110,
15914
- 116,
15915
- 95,
15916
- 97,
15917
- 117,
15918
- 116,
15919
- 104,
15920
- 111,
15921
- 114,
15922
- 105,
15923
- 116,
15924
- 121
15925
- ];
15926
- }
15927
- ];
15928
- };
15929
15583
  },
15930
15584
  {
15931
15585
  name: 'program';
@@ -16134,32 +15788,6 @@ type CpAmm = {
16134
15788
  },
16135
15789
  {
16136
15790
  name: 'eventAuthority';
16137
- pda: {
16138
- seeds: [
16139
- {
16140
- kind: 'const';
16141
- value: [
16142
- 95,
16143
- 95,
16144
- 101,
16145
- 118,
16146
- 101,
16147
- 110,
16148
- 116,
16149
- 95,
16150
- 97,
16151
- 117,
16152
- 116,
16153
- 104,
16154
- 111,
16155
- 114,
16156
- 105,
16157
- 116,
16158
- 121
16159
- ];
16160
- }
16161
- ];
16162
- };
16163
15791
  },
16164
15792
  {
16165
15793
  name: 'program';
@@ -16372,32 +16000,6 @@ type CpAmm = {
16372
16000
  },
16373
16001
  {
16374
16002
  name: 'eventAuthority';
16375
- pda: {
16376
- seeds: [
16377
- {
16378
- kind: 'const';
16379
- value: [
16380
- 95,
16381
- 95,
16382
- 101,
16383
- 118,
16384
- 101,
16385
- 110,
16386
- 116,
16387
- 95,
16388
- 97,
16389
- 117,
16390
- 116,
16391
- 104,
16392
- 111,
16393
- 114,
16394
- 105,
16395
- 116,
16396
- 121
16397
- ];
16398
- }
16399
- ];
16400
- };
16401
16003
  },
16402
16004
  {
16403
16005
  name: 'program';
@@ -16480,32 +16082,6 @@ type CpAmm = {
16480
16082
  },
16481
16083
  {
16482
16084
  name: 'eventAuthority';
16483
- pda: {
16484
- seeds: [
16485
- {
16486
- kind: 'const';
16487
- value: [
16488
- 95,
16489
- 95,
16490
- 101,
16491
- 118,
16492
- 101,
16493
- 110,
16494
- 116,
16495
- 95,
16496
- 97,
16497
- 117,
16498
- 116,
16499
- 104,
16500
- 111,
16501
- 114,
16502
- 105,
16503
- 116,
16504
- 121
16505
- ];
16506
- }
16507
- ];
16508
- };
16509
16085
  },
16510
16086
  {
16511
16087
  name: 'program';
@@ -16543,38 +16119,12 @@ type CpAmm = {
16543
16119
  docs: ['The token account for nft'];
16544
16120
  },
16545
16121
  {
16546
- name: 'owner';
16547
- docs: ['owner of position'];
16122
+ name: 'signer';
16123
+ docs: ['Signer'];
16548
16124
  signer: true;
16549
16125
  },
16550
16126
  {
16551
16127
  name: 'eventAuthority';
16552
- pda: {
16553
- seeds: [
16554
- {
16555
- kind: 'const';
16556
- value: [
16557
- 95,
16558
- 95,
16559
- 101,
16560
- 118,
16561
- 101,
16562
- 110,
16563
- 116,
16564
- 95,
16565
- 97,
16566
- 117,
16567
- 116,
16568
- 104,
16569
- 111,
16570
- 114,
16571
- 105,
16572
- 116,
16573
- 121
16574
- ];
16575
- }
16576
- ];
16577
- };
16578
16128
  },
16579
16129
  {
16580
16130
  name: 'program';
@@ -16613,8 +16163,8 @@ type CpAmm = {
16613
16163
  docs: ['The token account for nft'];
16614
16164
  },
16615
16165
  {
16616
- name: 'owner';
16617
- docs: ['owner of position'];
16166
+ name: 'signer';
16167
+ docs: ['Signer'];
16618
16168
  signer: true;
16619
16169
  },
16620
16170
  {
@@ -16628,32 +16178,6 @@ type CpAmm = {
16628
16178
  },
16629
16179
  {
16630
16180
  name: 'eventAuthority';
16631
- pda: {
16632
- seeds: [
16633
- {
16634
- kind: 'const';
16635
- value: [
16636
- 95,
16637
- 95,
16638
- 101,
16639
- 118,
16640
- 101,
16641
- 110,
16642
- 116,
16643
- 95,
16644
- 97,
16645
- 117,
16646
- 116,
16647
- 104,
16648
- 111,
16649
- 114,
16650
- 105,
16651
- 116,
16652
- 121
16653
- ];
16654
- }
16655
- ];
16656
- };
16657
16181
  },
16658
16182
  {
16659
16183
  name: 'program';
@@ -16688,38 +16212,12 @@ type CpAmm = {
16688
16212
  docs: ['The token account for nft'];
16689
16213
  },
16690
16214
  {
16691
- name: 'owner';
16692
- docs: ['owner of position'];
16215
+ name: 'signer';
16216
+ docs: ['Signer'];
16693
16217
  signer: true;
16694
16218
  },
16695
16219
  {
16696
16220
  name: 'eventAuthority';
16697
- pda: {
16698
- seeds: [
16699
- {
16700
- kind: 'const';
16701
- value: [
16702
- 95,
16703
- 95,
16704
- 101,
16705
- 118,
16706
- 101,
16707
- 110,
16708
- 116,
16709
- 95,
16710
- 97,
16711
- 117,
16712
- 116,
16713
- 104,
16714
- 111,
16715
- 114,
16716
- 105,
16717
- 116,
16718
- 121
16719
- ];
16720
- }
16721
- ];
16722
- };
16723
16221
  },
16724
16222
  {
16725
16223
  name: 'program';
@@ -16808,8 +16306,8 @@ type CpAmm = {
16808
16306
  docs: ['The token account for nft'];
16809
16307
  },
16810
16308
  {
16811
- name: 'owner';
16812
- docs: ['owner of position'];
16309
+ name: 'signer';
16310
+ docs: ['Signer'];
16813
16311
  signer: true;
16814
16312
  },
16815
16313
  {
@@ -16822,32 +16320,6 @@ type CpAmm = {
16822
16320
  },
16823
16321
  {
16824
16322
  name: 'eventAuthority';
16825
- pda: {
16826
- seeds: [
16827
- {
16828
- kind: 'const';
16829
- value: [
16830
- 95,
16831
- 95,
16832
- 101,
16833
- 118,
16834
- 101,
16835
- 110,
16836
- 116,
16837
- 95,
16838
- 97,
16839
- 117,
16840
- 116,
16841
- 104,
16842
- 111,
16843
- 114,
16844
- 105,
16845
- 116,
16846
- 121
16847
- ];
16848
- }
16849
- ];
16850
- };
16851
16323
  },
16852
16324
  {
16853
16325
  name: 'program';
@@ -16918,8 +16390,8 @@ type CpAmm = {
16918
16390
  docs: ['The token account for nft'];
16919
16391
  },
16920
16392
  {
16921
- name: 'owner';
16922
- docs: ['owner of position'];
16393
+ name: 'signer';
16394
+ docs: ['Signer'];
16923
16395
  signer: true;
16924
16396
  },
16925
16397
  {
@@ -16932,32 +16404,6 @@ type CpAmm = {
16932
16404
  },
16933
16405
  {
16934
16406
  name: 'eventAuthority';
16935
- pda: {
16936
- seeds: [
16937
- {
16938
- kind: 'const';
16939
- value: [
16940
- 95,
16941
- 95,
16942
- 101,
16943
- 118,
16944
- 101,
16945
- 110,
16946
- 116,
16947
- 95,
16948
- 97,
16949
- 117,
16950
- 116,
16951
- 104,
16952
- 111,
16953
- 114,
16954
- 105,
16955
- 116,
16956
- 121
16957
- ];
16958
- }
16959
- ];
16960
- };
16961
16407
  },
16962
16408
  {
16963
16409
  name: 'program';
@@ -16991,32 +16437,6 @@ type CpAmm = {
16991
16437
  },
16992
16438
  {
16993
16439
  name: 'eventAuthority';
16994
- pda: {
16995
- seeds: [
16996
- {
16997
- kind: 'const';
16998
- value: [
16999
- 95,
17000
- 95,
17001
- 101,
17002
- 118,
17003
- 101,
17004
- 110,
17005
- 116,
17006
- 95,
17007
- 97,
17008
- 117,
17009
- 116,
17010
- 104,
17011
- 111,
17012
- 114,
17013
- 105,
17014
- 116,
17015
- 121
17016
- ];
17017
- }
17018
- ];
17019
- };
17020
16440
  },
17021
16441
  {
17022
16442
  name: 'program';
@@ -17068,32 +16488,6 @@ type CpAmm = {
17068
16488
  },
17069
16489
  {
17070
16490
  name: 'eventAuthority';
17071
- pda: {
17072
- seeds: [
17073
- {
17074
- kind: 'const';
17075
- value: [
17076
- 95,
17077
- 95,
17078
- 101,
17079
- 118,
17080
- 101,
17081
- 110,
17082
- 116,
17083
- 95,
17084
- 97,
17085
- 117,
17086
- 116,
17087
- 104,
17088
- 111,
17089
- 114,
17090
- 105,
17091
- 116,
17092
- 121
17093
- ];
17094
- }
17095
- ];
17096
- };
17097
16491
  },
17098
16492
  {
17099
16493
  name: 'program';
@@ -17134,49 +16528,23 @@ type CpAmm = {
17134
16528
  writable: true;
17135
16529
  },
17136
16530
  {
17137
- name: 'secondPositionNftAccount';
17138
- docs: ['The token account for position nft'];
17139
- },
17140
- {
17141
- name: 'firstOwner';
17142
- docs: ['Owner of first position'];
17143
- signer: true;
17144
- },
17145
- {
17146
- name: 'secondOwner';
17147
- docs: ['Owner of second position'];
17148
- signer: true;
17149
- },
17150
- {
17151
- name: 'eventAuthority';
17152
- pda: {
17153
- seeds: [
17154
- {
17155
- kind: 'const';
17156
- value: [
17157
- 95,
17158
- 95,
17159
- 101,
17160
- 118,
17161
- 101,
17162
- 110,
17163
- 116,
17164
- 95,
17165
- 97,
17166
- 117,
17167
- 116,
17168
- 104,
17169
- 111,
17170
- 114,
17171
- 105,
17172
- 116,
17173
- 121
17174
- ];
17175
- }
17176
- ];
17177
- };
17178
- },
17179
- {
16531
+ name: 'secondPositionNftAccount';
16532
+ docs: ['The token account for position nft'];
16533
+ },
16534
+ {
16535
+ name: 'firstOwner';
16536
+ docs: ['Owner of first position'];
16537
+ signer: true;
16538
+ },
16539
+ {
16540
+ name: 'secondOwner';
16541
+ docs: ['Owner of second position'];
16542
+ signer: true;
16543
+ },
16544
+ {
16545
+ name: 'eventAuthority';
16546
+ },
16547
+ {
17180
16548
  name: 'program';
17181
16549
  }
17182
16550
  ];
@@ -17251,32 +16619,6 @@ type CpAmm = {
17251
16619
  },
17252
16620
  {
17253
16621
  name: 'eventAuthority';
17254
- pda: {
17255
- seeds: [
17256
- {
17257
- kind: 'const';
17258
- value: [
17259
- 95,
17260
- 95,
17261
- 101,
17262
- 118,
17263
- 101,
17264
- 110,
17265
- 116,
17266
- 95,
17267
- 97,
17268
- 117,
17269
- 116,
17270
- 104,
17271
- 111,
17272
- 114,
17273
- 105,
17274
- 116,
17275
- 121
17276
- ];
17277
- }
17278
- ];
17279
- };
17280
16622
  },
17281
16623
  {
17282
16624
  name: 'program';
@@ -17357,32 +16699,6 @@ type CpAmm = {
17357
16699
  },
17358
16700
  {
17359
16701
  name: 'eventAuthority';
17360
- pda: {
17361
- seeds: [
17362
- {
17363
- kind: 'const';
17364
- value: [
17365
- 95,
17366
- 95,
17367
- 101,
17368
- 118,
17369
- 101,
17370
- 110,
17371
- 116,
17372
- 95,
17373
- 97,
17374
- 117,
17375
- 116,
17376
- 104,
17377
- 111,
17378
- 114,
17379
- 105,
17380
- 116,
17381
- 121
17382
- ];
17383
- }
17384
- ];
17385
- };
17386
16702
  },
17387
16703
  {
17388
16704
  name: 'program';
@@ -17399,6 +16715,36 @@ type CpAmm = {
17399
16715
  }
17400
16716
  ];
17401
16717
  },
16718
+ {
16719
+ name: 'updateDelegatePermission';
16720
+ discriminator: [175, 165, 56, 64, 0, 251, 89, 47];
16721
+ accounts: [
16722
+ {
16723
+ name: 'position';
16724
+ writable: true;
16725
+ },
16726
+ {
16727
+ name: 'positionNftAccount';
16728
+ docs: ['The token account for nft'];
16729
+ },
16730
+ {
16731
+ name: 'owner';
16732
+ signer: true;
16733
+ },
16734
+ {
16735
+ name: 'eventAuthority';
16736
+ },
16737
+ {
16738
+ name: 'program';
16739
+ }
16740
+ ];
16741
+ args: [
16742
+ {
16743
+ name: 'permission';
16744
+ type: 'u32';
16745
+ }
16746
+ ];
16747
+ },
17402
16748
  {
17403
16749
  name: 'updatePoolFees';
17404
16750
  discriminator: [118, 217, 203, 179, 60, 8, 70, 89];
@@ -17416,32 +16762,6 @@ type CpAmm = {
17416
16762
  },
17417
16763
  {
17418
16764
  name: 'eventAuthority';
17419
- pda: {
17420
- seeds: [
17421
- {
17422
- kind: 'const';
17423
- value: [
17424
- 95,
17425
- 95,
17426
- 101,
17427
- 118,
17428
- 101,
17429
- 110,
17430
- 116,
17431
- 95,
17432
- 97,
17433
- 117,
17434
- 116,
17435
- 104,
17436
- 111,
17437
- 114,
17438
- 105,
17439
- 116,
17440
- 121
17441
- ];
17442
- }
17443
- ];
17444
- };
17445
16765
  },
17446
16766
  {
17447
16767
  name: 'program';
@@ -17472,32 +16792,6 @@ type CpAmm = {
17472
16792
  },
17473
16793
  {
17474
16794
  name: 'eventAuthority';
17475
- pda: {
17476
- seeds: [
17477
- {
17478
- kind: 'const';
17479
- value: [
17480
- 95,
17481
- 95,
17482
- 101,
17483
- 118,
17484
- 101,
17485
- 110,
17486
- 116,
17487
- 95,
17488
- 97,
17489
- 117,
17490
- 116,
17491
- 104,
17492
- 111,
17493
- 114,
17494
- 105,
17495
- 116,
17496
- 121
17497
- ];
17498
- }
17499
- ];
17500
- };
17501
16795
  },
17502
16796
  {
17503
16797
  name: 'program';
@@ -17528,32 +16822,6 @@ type CpAmm = {
17528
16822
  },
17529
16823
  {
17530
16824
  name: 'eventAuthority';
17531
- pda: {
17532
- seeds: [
17533
- {
17534
- kind: 'const';
17535
- value: [
17536
- 95,
17537
- 95,
17538
- 101,
17539
- 118,
17540
- 101,
17541
- 110,
17542
- 116,
17543
- 95,
17544
- 97,
17545
- 117,
17546
- 116,
17547
- 104,
17548
- 111,
17549
- 114,
17550
- 105,
17551
- 116,
17552
- 121
17553
- ];
17554
- }
17555
- ];
17556
- };
17557
16825
  },
17558
16826
  {
17559
16827
  name: 'program';
@@ -17571,8 +16839,8 @@ type CpAmm = {
17571
16839
  ];
17572
16840
  },
17573
16841
  {
17574
- name: 'withdrawIneligibleReward';
17575
- discriminator: [148, 206, 42, 195, 247, 49, 103, 8];
16842
+ name: 'withdrawDeadLiquidityReward';
16843
+ discriminator: [121, 99, 224, 91, 178, 14, 22, 132];
17576
16844
  accounts: [
17577
16845
  {
17578
16846
  name: 'poolAuthority';
@@ -17602,32 +16870,6 @@ type CpAmm = {
17602
16870
  },
17603
16871
  {
17604
16872
  name: 'eventAuthority';
17605
- pda: {
17606
- seeds: [
17607
- {
17608
- kind: 'const';
17609
- value: [
17610
- 95,
17611
- 95,
17612
- 101,
17613
- 118,
17614
- 101,
17615
- 110,
17616
- 116,
17617
- 95,
17618
- 97,
17619
- 117,
17620
- 116,
17621
- 104,
17622
- 111,
17623
- 114,
17624
- 105,
17625
- 116,
17626
- 121
17627
- ];
17628
- }
17629
- ];
17630
- };
17631
16873
  },
17632
16874
  {
17633
16875
  name: 'program';
@@ -17641,8 +16883,8 @@ type CpAmm = {
17641
16883
  ];
17642
16884
  },
17643
16885
  {
17644
- name: 'zapProtocolFee';
17645
- discriminator: [213, 155, 187, 34, 56, 182, 91, 240];
16886
+ name: 'withdrawIneligibleReward';
16887
+ discriminator: [148, 206, 42, 195, 247, 49, 103, 8];
17646
16888
  accounts: [
17647
16889
  {
17648
16890
  name: 'poolAuthority';
@@ -17653,38 +16895,34 @@ type CpAmm = {
17653
16895
  writable: true;
17654
16896
  },
17655
16897
  {
17656
- name: 'tokenVault';
16898
+ name: 'rewardVault';
17657
16899
  writable: true;
17658
16900
  },
17659
16901
  {
17660
- name: 'tokenMint';
16902
+ name: 'rewardMint';
17661
16903
  },
17662
16904
  {
17663
- name: 'receiverToken';
16905
+ name: 'funderTokenAccount';
17664
16906
  writable: true;
17665
16907
  },
17666
16908
  {
17667
- name: 'operator';
17668
- docs: ['zap claim fee operator'];
17669
- },
17670
- {
17671
- name: 'signer';
17672
- docs: ['operator'];
16909
+ name: 'funder';
17673
16910
  signer: true;
17674
16911
  },
17675
16912
  {
17676
16913
  name: 'tokenProgram';
17677
- docs: ['Token program'];
17678
16914
  },
17679
16915
  {
17680
- name: 'sysvarInstructions';
17681
- address: 'Sysvar1nstructions1111111111111111111111111';
16916
+ name: 'eventAuthority';
16917
+ },
16918
+ {
16919
+ name: 'program';
17682
16920
  }
17683
16921
  ];
17684
16922
  args: [
17685
16923
  {
17686
- name: 'maxAmount';
17687
- type: 'u64';
16924
+ name: 'rewardIndex';
16925
+ type: 'u8';
17688
16926
  }
17689
16927
  ];
17690
16928
  }
@@ -17733,8 +16971,8 @@ type CpAmm = {
17733
16971
  discriminator: [198, 182, 183, 52, 97, 12, 49, 56];
17734
16972
  },
17735
16973
  {
17736
- name: 'evtClaimProtocolFee';
17737
- discriminator: [186, 244, 75, 251, 188, 13, 25, 33];
16974
+ name: 'evtClaimProtocolFee2';
16975
+ discriminator: [187, 133, 66, 9, 205, 161, 84, 13];
17738
16976
  },
17739
16977
  {
17740
16978
  name: 'evtClaimReward';
@@ -17804,6 +17042,10 @@ type CpAmm = {
17804
17042
  name: 'evtSwap2';
17805
17043
  discriminator: [189, 66, 51, 168, 38, 80, 117, 153];
17806
17044
  },
17045
+ {
17046
+ name: 'evtUpdateDelegatePermission';
17047
+ discriminator: [66, 188, 75, 151, 150, 232, 87, 93];
17048
+ },
17807
17049
  {
17808
17050
  name: 'evtUpdatePoolFees';
17809
17051
  discriminator: [76, 165, 246, 102, 102, 217, 156, 44];
@@ -17816,6 +17058,10 @@ type CpAmm = {
17816
17058
  name: 'evtUpdateRewardFunder';
17817
17059
  discriminator: [76, 154, 208, 13, 40, 115, 246, 146];
17818
17060
  },
17061
+ {
17062
+ name: 'evtWithdrawDeadLiquidityReward';
17063
+ discriminator: [228, 66, 150, 195, 42, 62, 163, 13];
17064
+ },
17819
17065
  {
17820
17066
  name: 'evtWithdrawIneligibleReward';
17821
17067
  discriminator: [248, 215, 184, 78, 31, 180, 179, 168];
@@ -18153,14 +17399,39 @@ type CpAmm = {
18153
17399
  msg: 'Missing zap out instruction';
18154
17400
  },
18155
17401
  {
18156
- code: 6066;
18157
- name: 'invalidZapAccounts';
18158
- msg: 'Invalid zap accounts';
17402
+ code: 6066;
17403
+ name: 'invalidZapAccounts';
17404
+ msg: 'Invalid zap accounts';
17405
+ },
17406
+ {
17407
+ code: 6067;
17408
+ name: 'invalidCompoundingFeeBps';
17409
+ msg: 'Invalid compounding fee bps';
17410
+ },
17411
+ {
17412
+ code: 6068;
17413
+ name: 'invalidClaimProtocolFeeAccounts';
17414
+ msg: 'Invalid claim protocol fee accounts';
17415
+ },
17416
+ {
17417
+ code: 6069;
17418
+ name: 'transferFeeExcludedAmountIsZero';
17419
+ msg: 'Transfer fee excluded amount is zero';
17420
+ },
17421
+ {
17422
+ code: 6070;
17423
+ name: 'delegatedAmountNonZero';
17424
+ msg: 'Delegated amount is not zero';
17425
+ },
17426
+ {
17427
+ code: 6071;
17428
+ name: 'deprecatedBaseFeeMode';
17429
+ msg: 'Deprecated base fee mode';
18159
17430
  },
18160
17431
  {
18161
- code: 6067;
18162
- name: 'invalidCompoundingFeeBps';
18163
- msg: 'Invalid compounding fee bps';
17432
+ code: 6072;
17433
+ name: 'invalidConfigPermission';
17434
+ msg: 'Invalid config permission';
18164
17435
  }
18165
17436
  ];
18166
17437
  types: [
@@ -18415,11 +17686,16 @@ type CpAmm = {
18415
17686
  docs: ['sqrt max price'];
18416
17687
  type: 'u128';
18417
17688
  },
17689
+ {
17690
+ name: 'permission';
17691
+ docs: ['config permission bitmask'];
17692
+ type: 'u128';
17693
+ },
18418
17694
  {
18419
17695
  name: 'padding1';
18420
- docs: ['Fee curve point', 'Padding for further use'];
17696
+ docs: ['Padding for further use'];
18421
17697
  type: {
18422
- array: ['u64', 10];
17698
+ array: ['u64', 8];
18423
17699
  };
18424
17700
  }
18425
17701
  ];
@@ -18465,6 +17741,10 @@ type CpAmm = {
18465
17741
  {
18466
17742
  name: 'poolCreatorAuthority';
18467
17743
  type: 'pubkey';
17744
+ },
17745
+ {
17746
+ name: 'permission';
17747
+ type: 'u128';
18468
17748
  }
18469
17749
  ];
18470
17750
  };
@@ -18656,7 +17936,7 @@ type CpAmm = {
18656
17936
  };
18657
17937
  },
18658
17938
  {
18659
- name: 'evtClaimProtocolFee';
17939
+ name: 'evtClaimProtocolFee2';
18660
17940
  type: {
18661
17941
  kind: 'struct';
18662
17942
  fields: [
@@ -18665,11 +17945,15 @@ type CpAmm = {
18665
17945
  type: 'pubkey';
18666
17946
  },
18667
17947
  {
18668
- name: 'tokenAAmount';
18669
- type: 'u64';
17948
+ name: 'receiverTokenAccount';
17949
+ type: 'pubkey';
18670
17950
  },
18671
17951
  {
18672
- name: 'tokenBAmount';
17952
+ name: 'tokenMint';
17953
+ type: 'pubkey';
17954
+ },
17955
+ {
17956
+ name: 'amount';
18673
17957
  type: 'u64';
18674
17958
  }
18675
17959
  ];
@@ -18795,6 +18079,10 @@ type CpAmm = {
18795
18079
  {
18796
18080
  name: 'config';
18797
18081
  type: 'pubkey';
18082
+ },
18083
+ {
18084
+ name: 'permission';
18085
+ type: 'u128';
18798
18086
  }
18799
18087
  ];
18800
18088
  };
@@ -18816,6 +18104,10 @@ type CpAmm = {
18816
18104
  {
18817
18105
  name: 'index';
18818
18106
  type: 'u64';
18107
+ },
18108
+ {
18109
+ name: 'permission';
18110
+ type: 'u128';
18819
18111
  }
18820
18112
  ];
18821
18113
  };
@@ -19365,6 +18657,32 @@ type CpAmm = {
19365
18657
  ];
19366
18658
  };
19367
18659
  },
18660
+ {
18661
+ name: 'evtUpdateDelegatePermission';
18662
+ type: {
18663
+ kind: 'struct';
18664
+ fields: [
18665
+ {
18666
+ name: 'position';
18667
+ type: 'pubkey';
18668
+ },
18669
+ {
18670
+ name: 'owner';
18671
+ type: 'pubkey';
18672
+ },
18673
+ {
18674
+ name: 'permission';
18675
+ type: 'u32';
18676
+ },
18677
+ {
18678
+ name: 'delegate';
18679
+ type: {
18680
+ option: 'pubkey';
18681
+ };
18682
+ }
18683
+ ];
18684
+ };
18685
+ },
19368
18686
  {
19369
18687
  name: 'evtUpdatePoolFees';
19370
18688
  type: {
@@ -19437,6 +18755,26 @@ type CpAmm = {
19437
18755
  ];
19438
18756
  };
19439
18757
  },
18758
+ {
18759
+ name: 'evtWithdrawDeadLiquidityReward';
18760
+ type: {
18761
+ kind: 'struct';
18762
+ fields: [
18763
+ {
18764
+ name: 'pool';
18765
+ type: 'pubkey';
18766
+ },
18767
+ {
18768
+ name: 'rewardMint';
18769
+ type: 'pubkey';
18770
+ },
18771
+ {
18772
+ name: 'amount';
18773
+ type: 'u64';
18774
+ }
18775
+ ];
18776
+ };
18777
+ },
19440
18778
  {
19441
18779
  name: 'evtWithdrawIneligibleReward';
19442
18780
  type: {
@@ -19811,9 +19149,18 @@ type CpAmm = {
19811
19149
  docs: ['protocol b fee'];
19812
19150
  type: 'u64';
19813
19151
  },
19152
+ {
19153
+ name: 'deadLiquidityFeeCheckpoint';
19154
+ docs: [
19155
+ 'Cumulative dead-liquidity fee (Compounding Pool only)'
19156
+ ];
19157
+ type: 'u64';
19158
+ },
19814
19159
  {
19815
19160
  name: 'padding2';
19816
- type: 'u128';
19161
+ type: {
19162
+ array: ['u8', 8];
19163
+ };
19817
19164
  },
19818
19165
  {
19819
19166
  name: 'sqrtMinPrice';
@@ -20270,10 +19617,19 @@ type CpAmm = {
20270
19617
  };
20271
19618
  };
20272
19619
  },
19620
+ {
19621
+ name: 'delegatePermission';
19622
+ docs: [
19623
+ 'delegate permission bitmask (paired with SPL token Approve)'
19624
+ ];
19625
+ type: 'u32';
19626
+ },
20273
19627
  {
20274
19628
  name: 'padding';
20275
19629
  docs: ['padding for future usage'];
20276
- type: 'u128';
19630
+ type: {
19631
+ array: ['u8', 12];
19632
+ };
20277
19633
  }
20278
19634
  ];
20279
19635
  };
@@ -20351,13 +19707,11 @@ type CpAmm = {
20351
19707
  };
20352
19708
  },
20353
19709
  {
20354
- name: 'padding1';
19710
+ name: 'deadLiquidityRewardCheckpoint';
20355
19711
  docs: [
20356
- 'Padding to ensure `reward_rate: u128` is 16-byte aligned'
19712
+ 'Cumulative dead-liquidity reward (Compounding Pool only)'
20357
19713
  ];
20358
- type: {
20359
- array: ['u8', 8];
20360
- };
19714
+ type: 'u64';
20361
19715
  },
20362
19716
  {
20363
19717
  name: 'mint';
@@ -20710,6 +20064,10 @@ type CpAmm = {
20710
20064
  {
20711
20065
  name: 'collectFeeMode';
20712
20066
  type: 'u8';
20067
+ },
20068
+ {
20069
+ name: 'permission';
20070
+ type: 'u128';
20713
20071
  }
20714
20072
  ];
20715
20073
  };
@@ -20857,6 +20215,17 @@ type CpAmm = {
20857
20215
  };
20858
20216
  };
20859
20217
  };
20218
+ },
20219
+ {
20220
+ name: 'compoundingFeeBps';
20221
+ docs: [
20222
+ 'Compounding fee update mode:',
20223
+ '- None: skip compounding fee update',
20224
+ '- Some: update compounding_fee_bps; pool must use CollectFeeMode::Compounding'
20225
+ ];
20226
+ type: {
20227
+ option: 'u16';
20228
+ };
20860
20229
  }
20861
20230
  ];
20862
20231
  };
@@ -21072,7 +20441,7 @@ declare function createDammV2Program(connection: Connection, commitment?: Commit
21072
20441
  /**
21073
20442
  * Return an ATA address and an idempotent create instruction when the account is missing.
21074
20443
  */
21075
- declare const getOrCreateATAInstruction: (connection: Connection, tokenMint: PublicKey, owner: PublicKey, payer: PublicKey, allowOwnerOffCurve: boolean, tokenProgram: PublicKey) => Promise<{
20444
+ declare const getOrCreateATAInstruction: (connection: Connection, tokenMint: PublicKey, owner: PublicKey, payer: PublicKey, allowOwnerOffCurve: boolean, tokenProgram: PublicKey, commitment?: Commitment) => Promise<{
21076
20445
  ataPubkey: PublicKey;
21077
20446
  ix?: TransactionInstruction;
21078
20447
  }>;
@@ -21103,7 +20472,7 @@ declare function getTokenType(connection: Connection, tokenMint: PublicKey): Pro
21103
20472
  /**
21104
20473
  * Build a setup transaction for a token account, including SOL wrapping when needed.
21105
20474
  */
21106
- declare function prepareTokenAccountTx(connection: Connection, owner: PublicKey, payer: PublicKey, tokenMint: PublicKey, amount: bigint, tokenProgram: PublicKey): Promise<{
20475
+ declare function prepareTokenAccountTx(connection: Connection, owner: PublicKey, payer: PublicKey, tokenMint: PublicKey, amount: bigint, tokenProgram: PublicKey, commitment?: Commitment): Promise<{
21107
20476
  tokenAccount: PublicKey;
21108
20477
  transaction: Transaction;
21109
20478
  }>;
@@ -21762,7 +21131,7 @@ declare function getRateLimiterMinBaseFeeNumerator(cliffFeeNumerator: BN$1): BN$
21762
21131
  var address = "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN";
21763
21132
  var metadata = {
21764
21133
  name: "dynamic_bonding_curve",
21765
- version: "0.2.0",
21134
+ version: "0.2.1",
21766
21135
  spec: "0.1.0",
21767
21136
  description: "Created with Anchor"
21768
21137
  };
@@ -22012,122 +21381,6 @@ var instructions = [
22012
21381
  args: [
22013
21382
  ]
22014
21383
  },
22015
- {
22016
- name: "claim_protocol_fee",
22017
- docs: [
22018
- "Accepts: VirtualPool only."
22019
- ],
22020
- discriminator: [
22021
- 165,
22022
- 228,
22023
- 133,
22024
- 48,
22025
- 99,
22026
- 249,
22027
- 255,
22028
- 33
22029
- ],
22030
- accounts: [
22031
- {
22032
- name: "pool_authority",
22033
- address: "FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM"
22034
- },
22035
- {
22036
- name: "config",
22037
- relations: [
22038
- "pool"
22039
- ]
22040
- },
22041
- {
22042
- name: "pool",
22043
- writable: true
22044
- },
22045
- {
22046
- name: "base_vault",
22047
- docs: [
22048
- "The vault token account for input token"
22049
- ],
22050
- writable: true,
22051
- relations: [
22052
- "pool"
22053
- ]
22054
- },
22055
- {
22056
- name: "quote_vault",
22057
- docs: [
22058
- "The vault token account for output token"
22059
- ],
22060
- writable: true,
22061
- relations: [
22062
- "pool"
22063
- ]
22064
- },
22065
- {
22066
- name: "base_mint",
22067
- docs: [
22068
- "The mint of token a"
22069
- ],
22070
- relations: [
22071
- "pool"
22072
- ]
22073
- },
22074
- {
22075
- name: "quote_mint",
22076
- docs: [
22077
- "The mint of token b"
22078
- ],
22079
- relations: [
22080
- "config"
22081
- ]
22082
- },
22083
- {
22084
- name: "token_base_account",
22085
- writable: true
22086
- },
22087
- {
22088
- name: "token_quote_account",
22089
- writable: true
22090
- },
22091
- {
22092
- name: "operator"
22093
- },
22094
- {
22095
- name: "signer",
22096
- docs: [
22097
- "Signer"
22098
- ],
22099
- signer: true
22100
- },
22101
- {
22102
- name: "token_base_program",
22103
- docs: [
22104
- "Token a program"
22105
- ]
22106
- },
22107
- {
22108
- name: "token_quote_program",
22109
- docs: [
22110
- "Token b program"
22111
- ]
22112
- },
22113
- {
22114
- name: "event_authority"
22115
- },
22116
- {
22117
- name: "program"
22118
- }
22119
- ],
22120
- args: [
22121
- {
22122
- name: "max_base_amount",
22123
- type: "u64"
22124
- },
22125
- {
22126
- name: "max_quote_amount",
22127
- type: "u64"
22128
- }
22129
- ]
22130
- },
22131
21384
  {
22132
21385
  name: "claim_protocol_fee2",
22133
21386
  docs: [
@@ -22517,6 +21770,44 @@ var instructions = [
22517
21770
  args: [
22518
21771
  ]
22519
21772
  },
21773
+ {
21774
+ name: "close_token_badge",
21775
+ discriminator: [
21776
+ 108,
21777
+ 146,
21778
+ 86,
21779
+ 110,
21780
+ 179,
21781
+ 254,
21782
+ 10,
21783
+ 104
21784
+ ],
21785
+ accounts: [
21786
+ {
21787
+ name: "token_badge",
21788
+ writable: true
21789
+ },
21790
+ {
21791
+ name: "operator"
21792
+ },
21793
+ {
21794
+ name: "signer",
21795
+ signer: true
21796
+ },
21797
+ {
21798
+ name: "rent_receiver",
21799
+ writable: true
21800
+ },
21801
+ {
21802
+ name: "event_authority"
21803
+ },
21804
+ {
21805
+ name: "program"
21806
+ }
21807
+ ],
21808
+ args: [
21809
+ ]
21810
+ },
22520
21811
  {
22521
21812
  name: "create_config",
22522
21813
  discriminator: [
@@ -22897,6 +22188,79 @@ var instructions = [
22897
22188
  }
22898
22189
  ]
22899
22190
  },
22191
+ {
22192
+ name: "create_token_badge",
22193
+ discriminator: [
22194
+ 88,
22195
+ 206,
22196
+ 0,
22197
+ 91,
22198
+ 60,
22199
+ 175,
22200
+ 151,
22201
+ 118
22202
+ ],
22203
+ accounts: [
22204
+ {
22205
+ name: "token_badge",
22206
+ writable: true,
22207
+ pda: {
22208
+ seeds: [
22209
+ {
22210
+ kind: "const",
22211
+ value: [
22212
+ 116,
22213
+ 111,
22214
+ 107,
22215
+ 101,
22216
+ 110,
22217
+ 95,
22218
+ 98,
22219
+ 97,
22220
+ 100,
22221
+ 103,
22222
+ 101
22223
+ ]
22224
+ },
22225
+ {
22226
+ kind: "account",
22227
+ path: "token_mint"
22228
+ }
22229
+ ]
22230
+ }
22231
+ },
22232
+ {
22233
+ name: "token_mint"
22234
+ },
22235
+ {
22236
+ name: "operator"
22237
+ },
22238
+ {
22239
+ name: "signer",
22240
+ docs: [
22241
+ "Operator"
22242
+ ],
22243
+ signer: true
22244
+ },
22245
+ {
22246
+ name: "payer",
22247
+ writable: true,
22248
+ signer: true
22249
+ },
22250
+ {
22251
+ name: "system_program",
22252
+ address: "11111111111111111111111111111111"
22253
+ },
22254
+ {
22255
+ name: "event_authority"
22256
+ },
22257
+ {
22258
+ name: "program"
22259
+ }
22260
+ ],
22261
+ args: [
22262
+ ]
22263
+ },
22900
22264
  {
22901
22265
  name: "create_virtual_pool_metadata",
22902
22266
  docs: [
@@ -24999,78 +24363,6 @@ var instructions = [
24999
24363
  type: "u8"
25000
24364
  }
25001
24365
  ]
25002
- },
25003
- {
25004
- name: "zap_protocol_fee",
25005
- docs: [
25006
- "Accepts: VirtualPool only."
25007
- ],
25008
- discriminator: [
25009
- 213,
25010
- 155,
25011
- 187,
25012
- 34,
25013
- 56,
25014
- 182,
25015
- 91,
25016
- 240
25017
- ],
25018
- accounts: [
25019
- {
25020
- name: "pool_authority",
25021
- address: "FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM"
25022
- },
25023
- {
25024
- name: "config",
25025
- relations: [
25026
- "pool"
25027
- ]
25028
- },
25029
- {
25030
- name: "pool",
25031
- writable: true
25032
- },
25033
- {
25034
- name: "token_vault",
25035
- writable: true
25036
- },
25037
- {
25038
- name: "token_mint"
25039
- },
25040
- {
25041
- name: "receiver_token",
25042
- writable: true
25043
- },
25044
- {
25045
- name: "operator",
25046
- docs: [
25047
- "zap claim fee operator"
25048
- ]
25049
- },
25050
- {
25051
- name: "signer",
25052
- docs: [
25053
- "Operator"
25054
- ],
25055
- signer: true
25056
- },
25057
- {
25058
- name: "token_program",
25059
- docs: [
25060
- "Token program"
25061
- ]
25062
- },
25063
- {
25064
- name: "sysvar_instructions",
25065
- address: "Sysvar1nstructions1111111111111111111111111"
25066
- }
25067
- ],
25068
- args: [
25069
- {
25070
- name: "max_amount",
25071
- type: "u64"
25072
- }
25073
- ]
25074
24366
  }
25075
24367
  ];
25076
24368
  var accounts = [
@@ -25152,6 +24444,19 @@ var accounts = [
25152
24444
  43
25153
24445
  ]
25154
24446
  },
24447
+ {
24448
+ name: "TokenBadge",
24449
+ discriminator: [
24450
+ 116,
24451
+ 219,
24452
+ 204,
24453
+ 229,
24454
+ 249,
24455
+ 116,
24456
+ 255,
24457
+ 150
24458
+ ]
24459
+ },
25155
24460
  {
25156
24461
  name: "TransferHookPool",
25157
24462
  discriminator: [
@@ -25219,19 +24524,6 @@ var events = [
25219
24524
  62
25220
24525
  ]
25221
24526
  },
25222
- {
25223
- name: "EvtClaimProtocolFee",
25224
- discriminator: [
25225
- 186,
25226
- 244,
25227
- 75,
25228
- 251,
25229
- 188,
25230
- 13,
25231
- 25,
25232
- 33
25233
- ]
25234
- },
25235
24527
  {
25236
24528
  name: "EvtClaimProtocolFee2",
25237
24529
  discriminator: [
@@ -25271,6 +24563,19 @@ var events = [
25271
24563
  23
25272
24564
  ]
25273
24565
  },
24566
+ {
24567
+ name: "EvtCloseTokenBadge",
24568
+ discriminator: [
24569
+ 60,
24570
+ 217,
24571
+ 34,
24572
+ 82,
24573
+ 183,
24574
+ 10,
24575
+ 89,
24576
+ 188
24577
+ ]
24578
+ },
25274
24579
  {
25275
24580
  name: "EvtCreateClaimFeeOperator",
25276
24581
  discriminator: [
@@ -25336,6 +24641,19 @@ var events = [
25336
24641
  139
25337
24642
  ]
25338
24643
  },
24644
+ {
24645
+ name: "EvtCreateTokenBadge",
24646
+ discriminator: [
24647
+ 141,
24648
+ 120,
24649
+ 134,
24650
+ 116,
24651
+ 34,
24652
+ 28,
24653
+ 114,
24654
+ 160
24655
+ ]
24656
+ },
25339
24657
  {
25340
24658
  name: "EvtCreatorWithdrawSurplus",
25341
24659
  discriminator: [
@@ -25917,6 +25235,36 @@ var errors = [
25917
25235
  code: 6076,
25918
25236
  name: "PoolTypeMismatch",
25919
25237
  msg: "Pool type does not match instruction"
25238
+ },
25239
+ {
25240
+ code: 6077,
25241
+ name: "InvalidRemainingAccountSliceType",
25242
+ msg: "Invalid remaining account slice type for this instruction"
25243
+ },
25244
+ {
25245
+ code: 6078,
25246
+ name: "DeprecatedBaseFeeMode",
25247
+ msg: "Deprecated base fee mode"
25248
+ },
25249
+ {
25250
+ code: 6079,
25251
+ name: "CannotCreateTokenBadgeOnSupportedMint",
25252
+ msg: "Cannot create token badge on supported mint"
25253
+ },
25254
+ {
25255
+ code: 6080,
25256
+ name: "InvalidTokenBadge",
25257
+ msg: "Invalid token badge"
25258
+ },
25259
+ {
25260
+ code: 6081,
25261
+ name: "QuoteMintHasNonZeroTransferFee",
25262
+ msg: "Quote mint has a non zero transfer fee"
25263
+ },
25264
+ {
25265
+ code: 6082,
25266
+ name: "DeprecatedMigrationOption",
25267
+ msg: "Deprecated migration option"
25920
25268
  }
25921
25269
  ];
25922
25270
  var types = [
@@ -26485,26 +25833,6 @@ var types = [
26485
25833
  ]
26486
25834
  }
26487
25835
  },
26488
- {
26489
- name: "EvtClaimProtocolFee",
26490
- type: {
26491
- kind: "struct",
26492
- fields: [
26493
- {
26494
- name: "pool",
26495
- type: "pubkey"
26496
- },
26497
- {
26498
- name: "token_base_amount",
26499
- type: "u64"
26500
- },
26501
- {
26502
- name: "token_quote_amount",
26503
- type: "u64"
26504
- }
26505
- ]
26506
- }
26507
- },
26508
25836
  {
26509
25837
  name: "EvtClaimProtocolFee2",
26510
25838
  type: {
@@ -26568,6 +25896,18 @@ var types = [
26568
25896
  ]
26569
25897
  }
26570
25898
  },
25899
+ {
25900
+ name: "EvtCloseTokenBadge",
25901
+ type: {
25902
+ kind: "struct",
25903
+ fields: [
25904
+ {
25905
+ name: "token_mint",
25906
+ type: "pubkey"
25907
+ }
25908
+ ]
25909
+ }
25910
+ },
26571
25911
  {
26572
25912
  name: "EvtCreateClaimFeeOperator",
26573
25913
  docs: [
@@ -26784,6 +26124,18 @@ var types = [
26784
26124
  ]
26785
26125
  }
26786
26126
  },
26127
+ {
26128
+ name: "EvtCreateTokenBadge",
26129
+ type: {
26130
+ kind: "struct",
26131
+ fields: [
26132
+ {
26133
+ name: "token_mint",
26134
+ type: "pubkey"
26135
+ }
26136
+ ]
26137
+ }
26138
+ },
26787
26139
  {
26788
26140
  name: "EvtCreatorWithdrawSurplus",
26789
26141
  type: {
@@ -28565,6 +27917,40 @@ var types = [
28565
27917
  ]
28566
27918
  }
28567
27919
  },
27920
+ {
27921
+ name: "TokenBadge",
27922
+ docs: [
27923
+ "Parameter that set by the protocol"
27924
+ ],
27925
+ serialization: "bytemuck",
27926
+ repr: {
27927
+ kind: "c"
27928
+ },
27929
+ type: {
27930
+ kind: "struct",
27931
+ fields: [
27932
+ {
27933
+ name: "token_mint",
27934
+ docs: [
27935
+ "token mint"
27936
+ ],
27937
+ type: "pubkey"
27938
+ },
27939
+ {
27940
+ name: "_padding",
27941
+ docs: [
27942
+ "Reserve"
27943
+ ],
27944
+ type: {
27945
+ array: [
27946
+ "u8",
27947
+ 128
27948
+ ]
27949
+ }
27950
+ }
27951
+ ]
27952
+ }
27953
+ },
28568
27954
  {
28569
27955
  name: "TokenSupplyParams",
28570
27956
  type: {
@@ -28746,4 +28132,4 @@ var idl = {
28746
28132
  types: types
28747
28133
  };
28748
28134
 
28749
- export { AccountsType, 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 ClaimCreatorTradingFeeParams, type ClaimCreatorTradingFeeToReceiverParams, type ClaimCreatorTradingFeeWithQuoteMintNotSolParams, type ClaimCreatorTradingFeeWithQuoteMintSolParams, type ClaimPartnerPoolCreationFeeParams, type ClaimPartnerTradingFeeParams, type ClaimPartnerTradingFeeToReceiverParams, CollectFeeMode, type ConfigParameters, type ConfigWithTransferHook, type CreateConfigAccounts, type CreateConfigAndPoolParams, type CreateConfigAndPoolWithFirstBuyParams, type CreateConfigAndPoolWithFirstBuyWithTransferHookParams, type CreateConfigAndPoolWithTransferHookParams, type CreateConfigParams, type CreateConfigWithTransferHookParams, type CreateDammV1MigrationMetadataAccounts, type CreateDammV1MigrationMetadataParams, type CreateLockerParams, type CreatePartnerMetadataParameters, type CreatePartnerMetadataParams, type CreatePoolBaseParams, type CreatePoolParams, type CreatePoolWithFirstBuyParams, type CreatePoolWithFirstBuyWithTransferHookParams, type CreatePoolWithPartnerAndCreatorFirstBuyParams, type CreatePoolWithPartnerAndCreatorFirstBuyWithTransferHookParams, type CreatePoolWithTransferHookParams, type CreateVirtualPoolMetadataParameters, type CreateVirtualPoolMetadataParams, type CreatorFirstBuyParams, type CreatorFirstBuyWithTransferHookParams, 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, DEFAULT_MIGRATED_POOL_FEE_PARAMS, DEFAULT_MIGRATED_POOL_MARKET_CAP_FEE_SCHEDULER_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, DammV2BaseFeeMode, DammV2DynamicFeeMode, DynamicBondingCurveClient, idl as DynamicBondingCurveIdl, DynamicBondingCurveProgram, type DynamicBondingCurve as DynamicBondingCurveTypes, type DynamicCurveProgram, type DynamicFeeConfig, type DynamicFeeParameters, FEE_DENOMINATOR, type FeeConfig, type FeeMode, type FeeOnAmountResult, FeeRateLimiter, type FeeResult, FeeScheduler, type FeeSchedulerParams, type FirstBuyParams, type FirstBuyWithTransferHookParams, HOST_FEE_PERCENT, type InitializePoolBaseParams, type InitializePoolParameters, type InitializeSplPoolAccounts, type InitializeToken2022PoolAccounts, LOCKER_PROGRAM_ID, type LiquidityDistributionConfig, 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_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_LOCKED_LIQUIDITY_BPS, MIN_MIGRATED_POOL_FEE_BPS, MIN_POOL_CREATION_FEE, MIN_SQRT_PRICE, type MeteoraDammMigrationMetadata, type MigrateToDammV1Params, type MigrateToDammV2Params, type MigrateToDammV2Response, MigratedCollectFeeMode, type MigratedPoolFee, type MigratedPoolFeeConfig, type MigratedPoolFeeResult, type MigratedPoolMarketCapFeeSchedulerParameters, type MigratedPoolMarketCapFeeSchedulerParams, type MigrationConfig, type MigrationFee, MigrationFeeOption, MigrationOption, MigrationService, OFFSET, ONE_Q64, PROTOCOL_FEE_PERCENT, PROTOCOL_POOL_CREATION_FEE_PERCENT, type PartnerFirstBuyParams, type PartnerFirstBuyWithTransferHookParams, type PartnerMetadata, PartnerService, type PartnerWithdrawSurplusParams, type PoolConfig, type PoolFeeParameters, type PoolFeesConfig, PoolService, type PrepareSwapParams, RESOLUTION, type RateLimiterParams, Rounding, SECONDS_PER_DAY, SWAP_BUFFER_PERCENTAGE, SafeMath, type SimulatedQuoteBaseParams, type SimulatedQuoteFromInputAmountParams, type SimulatedQuoteFromOutputAmountParams, StateService, type Swap2Params, type SwapAmount, SwapMode, type SwapParams, type SwapQuote2Params, type SwapQuote2Result, type SwapQuoteConfig, type SwapQuoteParams, type SwapQuoteResult, type SwapResult, type SwapResult2, TokenAuthorityOption, type TokenConfig, TokenDecimal, TokenType, TradeDirection, type TransferHookAccountsInfo, type TransferHookPool, type TransferHookRemainingAccounts, type TransferPoolCreatorParams, U128_MAX, U16_MAX, U24_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, computeSqrtPriceStepBps, convertDecimalToBN, convertToLamports, createDammV1Program, createDammV2Program, createDbcProgram, createDynamicVaultProgram, createInitializePermissionlessDynamicVaultIx, createLockEscrowIx, createProgramAccountFilter, createSqrtPrices, 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, getFeeSchedulerMaxBaseFeeNumerator, getFeeSchedulerMinBaseFeeNumerator, getFeeSchedulerParams, getFirstCurve, getFirstKey, getIncludedFeeAmount, getInitialLiquidityFromDeltaBase, getInitialLiquidityFromDeltaQuote, getLiquidity, getLiquidityVestingInfoParams, getLockedVestingParams, getMaxIndex, getMaxOutAmountWithMinBaseFee, getMigratedPoolFeeParams, getMigratedPoolMarketCapFeeSchedulerParams, getMigrationBaseToken, getMigrationQuoteAmount, getMigrationQuoteAmountFromMigrationQuoteThreshold, getMigrationQuoteThresholdFromMigrationQuoteAmount, getMigrationThresholdPrice, getNextSqrtPriceFromBaseAmountInRoundingUp, getNextSqrtPriceFromBaseAmountOutRoundingUp, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getNextSqrtPriceFromQuoteAmountInRoundingDown, getNextSqrtPriceFromQuoteAmountOutRoundingDown, getOrCreateATAInstruction, getPercentageSupplyOnMigration, getPriceFromSqrtPrice, getProtocolMigrationFee, getQuoteReserveFromNextSqrtPrice, getRateLimiterExcludedFeeAmount, getRateLimiterMinBaseFeeNumerator, getRateLimiterParams, getSecondKey, getSqrtPriceFromMarketCap, getSqrtPriceFromPrice, getStartingBaseFeeBpsFromBaseFeeParams, getSwapAmountWithBuffer, getSwapResult, getSwapResultFromExactInput, getSwapResultFromExactOutput, getSwapResultFromPartialInput, getTokenDecimals, getTokenProgram, getTokenType, getTokenomics, getTotalFeeNumerator, getTotalFeeNumeratorFromExcludedFeeAmount, getTotalFeeNumeratorFromIncludedFeeAmount, getTotalSupplyFromCurve, getTotalTokenSupply, getTotalVestingAmount, getTwoCurve, getVariableFeeNumerator, getVestingLockedLiquidityBpsAtNSeconds, hasMintAuthority, isDefaultLockedVesting, isDynamicFeeEnabled, isNativeSol, isNonZeroRateLimiter, isRateLimiterApplied, isZeroRateLimiter, mulDiv, mulShr, pow, prepareSwapAmountParam, prepareTokenAccountTx, splitFees, sqrt, swapQuote, swapQuoteExactIn, swapQuoteExactOut, swapQuotePartialFill, toNumerator, unwrapSOLInstruction, validateActivationType, validateBalance, validateBaseTokenType, validateCollectFeeMode, validateCompoundingFeeBps, validateConfigParameters, validateCurve, validateDynamicFee, validateFeeRateLimiter, validateFeeScheduler, validateLPPercentages, validateLiquidityVestingInfo, validateMarketCapFeeSchedulerRequiresPoolFeeBps, validateMigratedCollectFeeMode, validateMigratedPoolBaseFeeMode, validateMigratedPoolFee, validateMigrationAndTokenType, validateMigrationFee, validateMigrationFeeOption, validateMinimumLockedLiquidity, validatePoolCreationFee, validatePoolFees, validateQuoteMintBasic, validateSwapAmount, validateTokenAuthorityOptions, validateTokenDecimals, validateTokenSupply, validateTransferHookProgram, validateTransferHookProgramExecutable, wrapSOLInstruction };
28135
+ export { AccountsType, 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 ClaimCreatorTradingFeeParams, type ClaimCreatorTradingFeeToReceiverParams, type ClaimCreatorTradingFeeWithQuoteMintNotSolParams, type ClaimCreatorTradingFeeWithQuoteMintSolParams, type ClaimPartnerPoolCreationFeeParams, type ClaimPartnerTradingFeeParams, type ClaimPartnerTradingFeeToReceiverParams, CollectFeeMode, type ConfigParameters, type ConfigWithTransferHook, type CreateConfigAccounts, type CreateConfigAndPoolParams, type CreateConfigAndPoolWithFirstBuyParams, type CreateConfigAndPoolWithFirstBuyWithTransferHookParams, type CreateConfigAndPoolWithTransferHookParams, type CreateConfigParams, type CreateConfigWithTransferHookParams, type CreateDammV1MigrationMetadataAccounts, type CreateDammV1MigrationMetadataParams, type CreateLockerParams, type CreatePartnerMetadataParameters, type CreatePartnerMetadataParams, type CreatePoolBaseParams, type CreatePoolParams, type CreatePoolWithFirstBuyParams, type CreatePoolWithFirstBuyWithTransferHookParams, type CreatePoolWithPartnerAndCreatorFirstBuyParams, type CreatePoolWithPartnerAndCreatorFirstBuyWithTransferHookParams, type CreatePoolWithTransferHookParams, type CreateVirtualPoolMetadataParameters, type CreateVirtualPoolMetadataParams, type CreatorFirstBuyParams, type CreatorFirstBuyWithTransferHookParams, 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, DEFAULT_MIGRATED_POOL_FEE_PARAMS, DEFAULT_MIGRATED_POOL_MARKET_CAP_FEE_SCHEDULER_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, DammV2BaseFeeMode, DammV2DynamicFeeMode, DynamicBondingCurveClient, idl as DynamicBondingCurveIdl, DynamicBondingCurveProgram, type DynamicBondingCurve as DynamicBondingCurveTypes, type DynamicCurveProgram, type DynamicFeeConfig, type DynamicFeeParameters, FEE_DENOMINATOR, type FeeConfig, type FeeMode, type FeeOnAmountResult, FeeRateLimiter, type FeeResult, FeeScheduler, type FeeSchedulerParams, type FirstBuyParams, type FirstBuyWithTransferHookParams, HOST_FEE_PERCENT, type InitializePoolBaseParams, type InitializePoolParameters, type InitializeSplPoolAccounts, type InitializeToken2022PoolAccounts, LOCKER_PROGRAM_ID, type LiquidityDistributionConfig, 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_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_LOCKED_LIQUIDITY_BPS, MIN_MIGRATED_POOL_FEE_BPS, MIN_POOL_CREATION_FEE, MIN_SQRT_PRICE, type MeteoraDammMigrationMetadata, type MigrateToDammV1Params, type MigrateToDammV2Params, type MigrateToDammV2Response, MigratedCollectFeeMode, type MigratedPoolFee, type MigratedPoolFeeConfig, type MigratedPoolFeeResult, type MigratedPoolMarketCapFeeSchedulerParameters, type MigratedPoolMarketCapFeeSchedulerParams, type MigrationConfig, type MigrationFee, MigrationFeeOption, MigrationOption, MigrationService, OFFSET, ONE_Q64, PROTOCOL_FEE_PERCENT, PROTOCOL_POOL_CREATION_FEE_PERCENT, type PartnerFirstBuyParams, type PartnerFirstBuyWithTransferHookParams, type PartnerMetadata, PartnerService, type PartnerWithdrawSurplusParams, type PoolConfig, type PoolFeeParameters, type PoolFeesConfig, PoolService, type PrepareSwapParams, RESOLUTION, type RateLimiterParams, Rounding, SECONDS_PER_DAY, SWAP_BUFFER_PERCENTAGE, SafeMath, type SimulatedQuoteBaseParams, type SimulatedQuoteFromInputAmountParams, type SimulatedQuoteFromOutputAmountParams, StateService, type Swap2Params, type SwapAmount, SwapMode, type SwapParams, type SwapQuote2Params, type SwapQuote2Result, type SwapQuoteConfig, type SwapQuoteParams, type SwapQuoteResult, type SwapResult, type SwapResult2, TokenAuthorityOption, type TokenBadge, type TokenConfig, TokenDecimal, TokenType, TradeDirection, type TransferHookAccountsInfo, type TransferHookPool, type TransferHookRemainingAccounts, type TransferPoolCreatorParams, U128_MAX, U16_MAX, U24_MAX, U64_MAX, VAULT_PROGRAM_ID, type VirtualPool, type VirtualPoolMetadata, type VolatilityTracker, type WithdrawLeftoverParams, type WithdrawMigrationFeeParams, assertConfigAllowsNewPool, bpsToFeeNumerator, buildCurve, buildCurveWithCustomSqrtPrices, buildCurveWithLiquidityWeights, buildCurveWithMarketCap, buildCurveWithMidPrice, buildCurveWithTwoSegments, calculateAdjustedPercentageSupplyOnMigration, calculateBaseToQuoteFromAmountIn, calculateBaseToQuoteFromAmountOut, calculateFeeSchedulerEndingBaseFeeBps, calculateLockedLiquidityBpsAtTime, calculateQuoteToBaseFromAmountIn, calculateQuoteToBaseFromAmountOut, checkRateLimiterApplied, cleanUpTokenAccountTx, computeSqrtPriceStepBps, convertDecimalToBN, convertToLamports, createDammV1Program, createDammV2Program, createDbcProgram, createDynamicVaultProgram, createInitializePermissionlessDynamicVaultIx, createLockEscrowIx, createProgramAccountFilter, createSqrtPrices, 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, deriveTokenBadgeAddress, 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, getFeeSchedulerMaxBaseFeeNumerator, getFeeSchedulerMinBaseFeeNumerator, getFeeSchedulerParams, getFirstCurve, getFirstKey, getIncludedFeeAmount, getInitialLiquidityFromDeltaBase, getInitialLiquidityFromDeltaQuote, getLiquidity, getLiquidityVestingInfoParams, getLockedVestingParams, getMaxIndex, getMaxOutAmountWithMinBaseFee, getMigratedPoolFeeParams, getMigratedPoolMarketCapFeeSchedulerParams, getMigrationBaseToken, getMigrationQuoteAmount, getMigrationQuoteAmountFromMigrationQuoteThreshold, getMigrationQuoteThresholdFromMigrationQuoteAmount, getMigrationThresholdPrice, getNextSqrtPriceFromBaseAmountInRoundingUp, getNextSqrtPriceFromBaseAmountOutRoundingUp, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getNextSqrtPriceFromQuoteAmountInRoundingDown, getNextSqrtPriceFromQuoteAmountOutRoundingDown, getOrCreateATAInstruction, getPercentageSupplyOnMigration, getPriceFromSqrtPrice, getProtocolMigrationFee, getQuoteReserveFromNextSqrtPrice, getRateLimiterExcludedFeeAmount, getRateLimiterMinBaseFeeNumerator, getRateLimiterParams, getSecondKey, getSqrtPriceFromMarketCap, getSqrtPriceFromPrice, getStartingBaseFeeBpsFromBaseFeeParams, getSwapAmountWithBuffer, getSwapResult, getSwapResultFromExactInput, getSwapResultFromExactOutput, getSwapResultFromPartialInput, getTokenBadgeRemainingAccounts, getTokenDecimals, getTokenProgram, getTokenType, getTokenomics, getTotalFeeNumerator, getTotalFeeNumeratorFromExcludedFeeAmount, getTotalFeeNumeratorFromIncludedFeeAmount, getTotalSupplyFromCurve, getTotalTokenSupply, getTotalVestingAmount, getTwoCurve, getVariableFeeNumerator, getVestingLockedLiquidityBpsAtNSeconds, hasMintAuthority, isDefaultLockedVesting, isDynamicFeeEnabled, isNativeSol, isNonZeroRateLimiter, isRateLimiterApplied, isZeroRateLimiter, mulDiv, mulShr, pow, prepareSwapAmountParam, prepareTokenAccountTx, splitFees, sqrt, swapQuote, swapQuoteExactIn, swapQuoteExactOut, swapQuotePartialFill, toNumerator, unwrapSOLInstruction, validateActivationType, validateBalance, validateBaseTokenType, validateCollectFeeMode, validateCompoundingFeeBps, validateConfigParameters, validateCurve, validateDynamicFee, validateFeeRateLimiter, validateFeeScheduler, validateLPPercentages, validateLiquidityVestingInfo, validateMarketCapFeeSchedulerRequiresPoolFeeBps, validateMigratedCollectFeeMode, validateMigratedPoolBaseFeeMode, validateMigratedPoolFee, validateMigrationAndTokenType, validateMigrationFee, validateMigrationFeeOption, validateMinimumLockedLiquidity, validatePoolCreationFee, validatePoolFees, validateQuoteMintBasic, validateSwapAmount, validateTokenAuthorityOptions, validateTokenDecimals, validateTokenSupply, validateTransferHookProgram, validateTransferHookProgramExecutable, wrapSOLInstruction };