@meteora-ag/cp-amm-sdk 1.0.3 → 1.0.5

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.js CHANGED
@@ -6978,10 +6978,10 @@ var _bytes = require('@coral-xyz/anchor/dist/cjs/utils/bytes');
6978
6978
  function getTokenProgram(flag) {
6979
6979
  return flag == 0 ? _spltoken.TOKEN_PROGRAM_ID : _spltoken.TOKEN_2022_PROGRAM_ID;
6980
6980
  }
6981
- var getTokenDecimals = (connection, mint) => __async(void 0, null, function* () {
6981
+ var getTokenDecimals = (connection, mint) => __async(null, null, function* () {
6982
6982
  return (yield _spltoken.getMint.call(void 0, connection, mint)).decimals;
6983
6983
  });
6984
- var getOrCreateATAInstruction = (_0, _1, _2, ..._3) => __async(void 0, [_0, _1, _2, ..._3], function* (connection, tokenMint, owner, payer = owner, allowOwnerOffCurve = true, tokenProgram) {
6984
+ var getOrCreateATAInstruction = (_0, _1, _2, ..._3) => __async(null, [_0, _1, _2, ..._3], function* (connection, tokenMint, owner, payer = owner, allowOwnerOffCurve = true, tokenProgram) {
6985
6985
  const toAccount = _spltoken.getAssociatedTokenAddressSync.call(void 0,
6986
6986
  tokenMint,
6987
6987
  owner,
@@ -7027,7 +7027,7 @@ var wrapSOLInstruction = (from, to, amount) => {
7027
7027
  })
7028
7028
  ];
7029
7029
  };
7030
- var unwrapSOLInstruction = (_0, ..._1) => __async(void 0, [_0, ..._1], function* (owner, receiver = owner, allowOwnerOffCurve = true) {
7030
+ var unwrapSOLInstruction = (_0, ..._1) => __async(null, [_0, ..._1], function* (owner, receiver = owner, allowOwnerOffCurve = true) {
7031
7031
  const wSolATAAccount = _spltoken.getAssociatedTokenAddressSync.call(void 0,
7032
7032
  _spltoken.NATIVE_MINT,
7033
7033
  owner,
@@ -7444,7 +7444,7 @@ function getDynamicFeeParams(baseFeeBps, maxPriceChangeBps = MAX_PRICE_CHANGE_BP
7444
7444
 
7445
7445
 
7446
7446
 
7447
- var getSimulationComputeUnits = (connection, instructions, payer, lookupTables, commitment = "confirmed") => __async(void 0, null, function* () {
7447
+ var getSimulationComputeUnits = (connection, instructions, payer, lookupTables, commitment = "confirmed") => __async(null, null, function* () {
7448
7448
  var _a, _b, _c;
7449
7449
  const testInstructions = [
7450
7450
  // Set an arbitrarily high number in simulation
@@ -7476,7 +7476,7 @@ var getSimulationComputeUnits = (connection, instructions, payer, lookupTables,
7476
7476
  }
7477
7477
  return rpcResponse.value.unitsConsumed || null;
7478
7478
  });
7479
- var getEstimatedComputeUnitUsageWithBuffer = (connection, instructions, feePayer, buffer) => __async(void 0, null, function* () {
7479
+ var getEstimatedComputeUnitUsageWithBuffer = (connection, instructions, feePayer, buffer) => __async(null, null, function* () {
7480
7480
  if (!buffer) {
7481
7481
  buffer = 0.1;
7482
7482
  }
@@ -7499,7 +7499,7 @@ var getEstimatedComputeUnitUsageWithBuffer = (connection, instructions, feePayer
7499
7499
  }
7500
7500
  return estimatedComputeUnitUsage + extraComputeUnitBuffer;
7501
7501
  });
7502
- var getEstimatedComputeUnitIxWithBuffer = (connection, instructions, feePayer, buffer) => __async(void 0, null, function* () {
7502
+ var getEstimatedComputeUnitIxWithBuffer = (connection, instructions, feePayer, buffer) => __async(null, null, function* () {
7503
7503
  const units = yield getEstimatedComputeUnitUsageWithBuffer(
7504
7504
  connection,
7505
7505
  instructions,