@meteora-ag/cp-amm-sdk 1.0.1-rc.0 → 1.0.1-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -6221,6 +6221,8 @@ type InitializeCustomizeablePoolParams = {
6221
6221
  activationType: number;
6222
6222
  collectFeeMode: number;
6223
6223
  activationPoint: BN | null;
6224
+ tokenAProgram?: PublicKey;
6225
+ tokenBProgram?: PublicKey;
6224
6226
  };
6225
6227
  type PreparePoolCreationParams = {
6226
6228
  tokenAAmount: BN;
@@ -6254,6 +6256,7 @@ type CreatePositionParams = {
6254
6256
  type AddLiquidityParams = {
6255
6257
  owner: PublicKey;
6256
6258
  position: PublicKey;
6259
+ pool: PublicKey;
6257
6260
  positionNftMint: PublicKey;
6258
6261
  liquidityDeltaQ64: BN;
6259
6262
  maxAmountTokenA: BN;
@@ -6262,6 +6265,8 @@ type AddLiquidityParams = {
6262
6265
  tokenBAmountThreshold: BN;
6263
6266
  tokenAMint: PublicKey;
6264
6267
  tokenBMint: PublicKey;
6268
+ tokenAVault: PublicKey;
6269
+ tokenBVault: PublicKey;
6265
6270
  tokenAProgram: PublicKey;
6266
6271
  tokenBProgram: PublicKey;
6267
6272
  };
@@ -6295,6 +6300,8 @@ type SwapParams = {
6295
6300
  minimumAmountOut: BN;
6296
6301
  tokenAMint: PublicKey;
6297
6302
  tokenBMint: PublicKey;
6303
+ tokenAVault: PublicKey;
6304
+ tokenBVault: PublicKey;
6298
6305
  tokenAProgram: PublicKey;
6299
6306
  tokenBProgram: PublicKey;
6300
6307
  referralTokenAccount: PublicKey | null;
@@ -6316,9 +6323,12 @@ type LockPositionParams = {
6316
6323
  type ClaimPositionFeeParams = {
6317
6324
  owner: PublicKey;
6318
6325
  position: PublicKey;
6326
+ pool: PublicKey;
6319
6327
  nftPositionMint: PublicKey;
6320
6328
  tokenAMint: PublicKey;
6321
6329
  tokenBMint: PublicKey;
6330
+ tokenAVault: PublicKey;
6331
+ tokenBVault: PublicKey;
6322
6332
  tokenAProgram: PublicKey;
6323
6333
  tokenBProgram: PublicKey;
6324
6334
  };
@@ -6451,6 +6461,7 @@ declare function deriveCustomizablePoolAddress(tokenAMint: PublicKey, tokenBMint
6451
6461
  declare function deriveTokenBadgeAddress(tokenMint: PublicKey, programId: PublicKey): PublicKey;
6452
6462
  declare function deriveClaimFeeOperatorAddress(operator: PublicKey, programId: PublicKey): PublicKey;
6453
6463
  declare function derivePositionNftAccount(positionNftMint: PublicKey, programId: PublicKey): PublicKey;
6464
+ declare function deriveEventAuthority(programId: PublicKey): [PublicKey, number];
6454
6465
 
6455
6466
  declare const CP_AMM_PROGRAM_ID: PublicKey;
6456
6467
  declare const SCALE_OFFSET = 64;
@@ -6512,4 +6523,4 @@ declare const getEstimatedComputeUnitUsageWithBuffer: (connection: Connection, i
6512
6523
  */
6513
6524
  declare const getEstimatedComputeUnitIxWithBuffer: (connection: Connection, instructions: TransactionInstruction[], feePayer: PublicKey, buffer?: number) => Promise<TransactionInstruction>;
6514
6525
 
6515
- export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, BASIS_POINT_MAX, type BaseFee, CP_AMM_PROGRAM_ID, type ClaimPartnerFeeParams, type ClaimPositionFeeParams, type ClaimRewardParams, CollectFeeMode, type ConfigState, CpAmm, type CreatePoolParams, type CreatePositionParams, type DynamicFee, FEE_DENOMINATOR, FeeSchedulerMode, type FundRewardParams, type GetQuoteParams, type InitializeCustomizeablePoolParams, type InitializeRewardParams, type LiquidityDeltaParams, type LockPositionParams, MAX_CU_BUFFER, MAX_FEE_NUMERATOR, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_SQRT_PRICE, type PermanentLockParams, type PoolFeesParams, type PoolState, type PositionState, type PreparePoolCreationParams, type PreparedPoolCreation, type RefreshVestingParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, type SwapParams, type SwapQuotes, type TokenBadgeState, TradeDirection, type TxBuilder, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type VestingState, type WithdrawIneligibleRewardParams, calculateSwap, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadgeAddress, deriveTokenVaultAddress, getBaseFeeNumerator, getDeltaAmountA, getDeltaAmountB, getDynamicFeeNumerator, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getFeeNumerator, getFirstKey, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountB, getNextSqrtPrice, getOrCreateATAInstruction, getSecondKey, getSimulationComputeUnits, getTokenDecimals, getTokenProgram, unwrapSOLInstruction, wrapSOLInstruction };
6526
+ export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, BASIS_POINT_MAX, type BaseFee, CP_AMM_PROGRAM_ID, type ClaimPartnerFeeParams, type ClaimPositionFeeParams, type ClaimRewardParams, CollectFeeMode, type ConfigState, CpAmm, type CreatePoolParams, type CreatePositionParams, type DynamicFee, FEE_DENOMINATOR, FeeSchedulerMode, type FundRewardParams, type GetQuoteParams, type InitializeCustomizeablePoolParams, type InitializeRewardParams, type LiquidityDeltaParams, type LockPositionParams, MAX_CU_BUFFER, MAX_FEE_NUMERATOR, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_SQRT_PRICE, type PermanentLockParams, type PoolFeesParams, type PoolState, type PositionState, type PreparePoolCreationParams, type PreparedPoolCreation, type RefreshVestingParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, type SwapParams, type SwapQuotes, type TokenBadgeState, TradeDirection, type TxBuilder, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type VestingState, type WithdrawIneligibleRewardParams, calculateSwap, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, deriveEventAuthority, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadgeAddress, deriveTokenVaultAddress, getBaseFeeNumerator, getDeltaAmountA, getDeltaAmountB, getDynamicFeeNumerator, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getFeeNumerator, getFirstKey, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountB, getNextSqrtPrice, getOrCreateATAInstruction, getSecondKey, getSimulationComputeUnits, getTokenDecimals, getTokenProgram, unwrapSOLInstruction, wrapSOLInstruction };
package/dist/index.d.ts CHANGED
@@ -6221,6 +6221,8 @@ type InitializeCustomizeablePoolParams = {
6221
6221
  activationType: number;
6222
6222
  collectFeeMode: number;
6223
6223
  activationPoint: BN | null;
6224
+ tokenAProgram?: PublicKey;
6225
+ tokenBProgram?: PublicKey;
6224
6226
  };
6225
6227
  type PreparePoolCreationParams = {
6226
6228
  tokenAAmount: BN;
@@ -6254,6 +6256,7 @@ type CreatePositionParams = {
6254
6256
  type AddLiquidityParams = {
6255
6257
  owner: PublicKey;
6256
6258
  position: PublicKey;
6259
+ pool: PublicKey;
6257
6260
  positionNftMint: PublicKey;
6258
6261
  liquidityDeltaQ64: BN;
6259
6262
  maxAmountTokenA: BN;
@@ -6262,6 +6265,8 @@ type AddLiquidityParams = {
6262
6265
  tokenBAmountThreshold: BN;
6263
6266
  tokenAMint: PublicKey;
6264
6267
  tokenBMint: PublicKey;
6268
+ tokenAVault: PublicKey;
6269
+ tokenBVault: PublicKey;
6265
6270
  tokenAProgram: PublicKey;
6266
6271
  tokenBProgram: PublicKey;
6267
6272
  };
@@ -6295,6 +6300,8 @@ type SwapParams = {
6295
6300
  minimumAmountOut: BN;
6296
6301
  tokenAMint: PublicKey;
6297
6302
  tokenBMint: PublicKey;
6303
+ tokenAVault: PublicKey;
6304
+ tokenBVault: PublicKey;
6298
6305
  tokenAProgram: PublicKey;
6299
6306
  tokenBProgram: PublicKey;
6300
6307
  referralTokenAccount: PublicKey | null;
@@ -6316,9 +6323,12 @@ type LockPositionParams = {
6316
6323
  type ClaimPositionFeeParams = {
6317
6324
  owner: PublicKey;
6318
6325
  position: PublicKey;
6326
+ pool: PublicKey;
6319
6327
  nftPositionMint: PublicKey;
6320
6328
  tokenAMint: PublicKey;
6321
6329
  tokenBMint: PublicKey;
6330
+ tokenAVault: PublicKey;
6331
+ tokenBVault: PublicKey;
6322
6332
  tokenAProgram: PublicKey;
6323
6333
  tokenBProgram: PublicKey;
6324
6334
  };
@@ -6451,6 +6461,7 @@ declare function deriveCustomizablePoolAddress(tokenAMint: PublicKey, tokenBMint
6451
6461
  declare function deriveTokenBadgeAddress(tokenMint: PublicKey, programId: PublicKey): PublicKey;
6452
6462
  declare function deriveClaimFeeOperatorAddress(operator: PublicKey, programId: PublicKey): PublicKey;
6453
6463
  declare function derivePositionNftAccount(positionNftMint: PublicKey, programId: PublicKey): PublicKey;
6464
+ declare function deriveEventAuthority(programId: PublicKey): [PublicKey, number];
6454
6465
 
6455
6466
  declare const CP_AMM_PROGRAM_ID: PublicKey;
6456
6467
  declare const SCALE_OFFSET = 64;
@@ -6512,4 +6523,4 @@ declare const getEstimatedComputeUnitUsageWithBuffer: (connection: Connection, i
6512
6523
  */
6513
6524
  declare const getEstimatedComputeUnitIxWithBuffer: (connection: Connection, instructions: TransactionInstruction[], feePayer: PublicKey, buffer?: number) => Promise<TransactionInstruction>;
6514
6525
 
6515
- export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, BASIS_POINT_MAX, type BaseFee, CP_AMM_PROGRAM_ID, type ClaimPartnerFeeParams, type ClaimPositionFeeParams, type ClaimRewardParams, CollectFeeMode, type ConfigState, CpAmm, type CreatePoolParams, type CreatePositionParams, type DynamicFee, FEE_DENOMINATOR, FeeSchedulerMode, type FundRewardParams, type GetQuoteParams, type InitializeCustomizeablePoolParams, type InitializeRewardParams, type LiquidityDeltaParams, type LockPositionParams, MAX_CU_BUFFER, MAX_FEE_NUMERATOR, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_SQRT_PRICE, type PermanentLockParams, type PoolFeesParams, type PoolState, type PositionState, type PreparePoolCreationParams, type PreparedPoolCreation, type RefreshVestingParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, type SwapParams, type SwapQuotes, type TokenBadgeState, TradeDirection, type TxBuilder, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type VestingState, type WithdrawIneligibleRewardParams, calculateSwap, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadgeAddress, deriveTokenVaultAddress, getBaseFeeNumerator, getDeltaAmountA, getDeltaAmountB, getDynamicFeeNumerator, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getFeeNumerator, getFirstKey, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountB, getNextSqrtPrice, getOrCreateATAInstruction, getSecondKey, getSimulationComputeUnits, getTokenDecimals, getTokenProgram, unwrapSOLInstruction, wrapSOLInstruction };
6526
+ export { ActivationPoint, ActivationType, type AddLiquidityParams, type AmmProgram, BASIS_POINT_MAX, type BaseFee, CP_AMM_PROGRAM_ID, type ClaimPartnerFeeParams, type ClaimPositionFeeParams, type ClaimRewardParams, CollectFeeMode, type ConfigState, CpAmm, type CreatePoolParams, type CreatePositionParams, type DynamicFee, FEE_DENOMINATOR, FeeSchedulerMode, type FundRewardParams, type GetQuoteParams, type InitializeCustomizeablePoolParams, type InitializeRewardParams, type LiquidityDeltaParams, type LockPositionParams, MAX_CU_BUFFER, MAX_FEE_NUMERATOR, MAX_SQRT_PRICE, MIN_CU_BUFFER, MIN_SQRT_PRICE, type PermanentLockParams, type PoolFeesParams, type PoolState, type PositionState, type PreparePoolCreationParams, type PreparedPoolCreation, type RefreshVestingParams, type RemoveLiquidityParams, type RewardInfo, Rounding, SCALE_OFFSET, type SwapParams, type SwapQuotes, type TokenBadgeState, TradeDirection, type TxBuilder, type UpdateRewardDurationParams, type UpdateRewardFunderParams, type VestingState, type WithdrawIneligibleRewardParams, calculateSwap, deriveClaimFeeOperatorAddress, deriveConfigAddress, deriveCustomizablePoolAddress, deriveEventAuthority, derivePoolAddress, derivePoolAuthority, derivePositionAddress, derivePositionNftAccount, deriveRewardVaultAddress, deriveTokenBadgeAddress, deriveTokenVaultAddress, getBaseFeeNumerator, getDeltaAmountA, getDeltaAmountB, getDynamicFeeNumerator, getEstimatedComputeUnitIxWithBuffer, getEstimatedComputeUnitUsageWithBuffer, getFeeNumerator, getFirstKey, getLiquidityDeltaFromAmountA, getLiquidityDeltaFromAmountB, getNextSqrtPrice, getOrCreateATAInstruction, getSecondKey, getSimulationComputeUnits, getTokenDecimals, getTokenProgram, unwrapSOLInstruction, wrapSOLInstruction };