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

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.mjs CHANGED
@@ -20,7 +20,7 @@ var __async = (__this, __arguments, generator) => {
20
20
  };
21
21
 
22
22
  // src/CpAmm.ts
23
- import { Program } from "@coral-xyz/anchor";
23
+ import { Program, AnchorProvider } from "@coral-xyz/anchor";
24
24
  import {
25
25
  getAssociatedTokenAddressSync as getAssociatedTokenAddressSync2,
26
26
  NATIVE_MINT as NATIVE_MINT2,
@@ -6804,10 +6804,9 @@ var getPriceImpact = (amount, amountWithoutSlippage) => {
6804
6804
 
6805
6805
  // src/CpAmm.ts
6806
6806
  var CpAmm = class {
6807
- constructor(connection) {
6808
- this._program = new Program(cp_amm_default, {
6809
- connection
6810
- });
6807
+ constructor(connection, wallet) {
6808
+ const provider = new AnchorProvider(connection, {}, AnchorProvider.defaultOptions());
6809
+ this._program = new Program(cp_amm_default, provider);
6811
6810
  }
6812
6811
  getProgram() {
6813
6812
  return this._program;
@@ -7819,6 +7818,9 @@ var CpAmm = class {
7819
7818
  });
7820
7819
  }
7821
7820
  };
7821
+
7822
+ // src/index.ts
7823
+ var index_default = cp_amm_default;
7822
7824
  export {
7823
7825
  ActivationPoint,
7824
7826
  ActivationType,
@@ -7837,6 +7839,7 @@ export {
7837
7839
  SCALE_OFFSET,
7838
7840
  TradeDirection,
7839
7841
  calculateSwap,
7842
+ index_default as default,
7840
7843
  deriveClaimFeeOperatorAddress,
7841
7844
  deriveConfigAddress,
7842
7845
  deriveCustomizablePoolAddress,