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

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
@@ -1,4 +1,4 @@
1
- import { Program, IdlAccounts, BN, IdlTypes } from '@coral-xyz/anchor';
1
+ import { Program, IdlAccounts, BN, IdlTypes, Wallet } from '@coral-xyz/anchor';
2
2
  import { PublicKey, Transaction, Connection, TransactionInstruction, AddressLookupTableAccount, Commitment } from '@solana/web3.js';
3
3
 
4
4
  /**
@@ -6391,7 +6391,7 @@ type PermanentLockParams = {
6391
6391
 
6392
6392
  declare class CpAmm {
6393
6393
  _program: AmmProgram;
6394
- constructor(connection: Connection, wallet: any);
6394
+ constructor(connection: Connection, wallet: Wallet);
6395
6395
  getProgram(): AmmProgram;
6396
6396
  /**
6397
6397
  Prepares token ordering, calculates the initial sqrtPrice in Q64 format,
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Program, IdlAccounts, BN, IdlTypes } from '@coral-xyz/anchor';
1
+ import { Program, IdlAccounts, BN, IdlTypes, Wallet } from '@coral-xyz/anchor';
2
2
  import { PublicKey, Transaction, Connection, TransactionInstruction, AddressLookupTableAccount, Commitment } from '@solana/web3.js';
3
3
 
4
4
  /**
@@ -6391,7 +6391,7 @@ type PermanentLockParams = {
6391
6391
 
6392
6392
  declare class CpAmm {
6393
6393
  _program: AmmProgram;
6394
- constructor(connection: Connection, wallet: any);
6394
+ constructor(connection: Connection, wallet: Wallet);
6395
6395
  getProgram(): AmmProgram;
6396
6396
  /**
6397
6397
  Prepares token ordering, calculates the initial sqrtPrice in Q64 format,
package/dist/index.js CHANGED
@@ -6805,7 +6805,7 @@ var getPriceImpact = (amount, amountWithoutSlippage) => {
6805
6805
  // src/CpAmm.ts
6806
6806
  var CpAmm = class {
6807
6807
  constructor(connection, wallet) {
6808
- const provider = new (0, _anchor.AnchorProvider)(connection, {}, _anchor.AnchorProvider.defaultOptions());
6808
+ const provider = new (0, _anchor.AnchorProvider)(connection, wallet, _anchor.AnchorProvider.defaultOptions());
6809
6809
  this._program = new (0, _anchor.Program)(cp_amm_default, provider);
6810
6810
  }
6811
6811
  getProgram() {