@meteora-ag/zap-sdk 1.1.1 → 1.1.2

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
@@ -4744,19 +4744,6 @@ var Zap = class {
4744
4744
  const initLedgerTx = yield this.initializeLedgerAccount(user, user);
4745
4745
  ledgerTransaction.add(...initLedgerTx.instructions);
4746
4746
  }
4747
- if (dlmm.lbPair.tokenXMint.equals(import_spl_token6.NATIVE_MINT) && tokenXAmountAfterSwap.gt(new import_anchor.BN(0)) || dlmm.lbPair.tokenYMint.equals(import_spl_token6.NATIVE_MINT) && tokenYAmountAfterSwap.gt(new import_anchor.BN(0))) {
4748
- const isTokenXSol = dlmm.lbPair.tokenXMint.equals(import_spl_token6.NATIVE_MINT);
4749
- const wrapAmount = BigInt(
4750
- isTokenXSol ? tokenXAmountAfterSwap.toString() : tokenYAmountAfterSwap.toString()
4751
- );
4752
- const wrapIxs = wrapSOLInstruction(
4753
- user,
4754
- isTokenXSol ? userTokenX : userTokenY,
4755
- wrapAmount,
4756
- isTokenXSol ? tokenXProgram : tokenYProgram
4757
- );
4758
- ledgerTransaction.add(...wrapIxs);
4759
- }
4760
4747
  const updateLedgerXTx = yield this.updateLedgerBalanceAfterSwap(
4761
4748
  user,
4762
4749
  userTokenX,
package/dist/index.mjs CHANGED
@@ -4724,19 +4724,6 @@ var Zap = class {
4724
4724
  const initLedgerTx = yield this.initializeLedgerAccount(user, user);
4725
4725
  ledgerTransaction.add(...initLedgerTx.instructions);
4726
4726
  }
4727
- if (dlmm.lbPair.tokenXMint.equals(NATIVE_MINT3) && tokenXAmountAfterSwap.gt(new BN5(0)) || dlmm.lbPair.tokenYMint.equals(NATIVE_MINT3) && tokenYAmountAfterSwap.gt(new BN5(0))) {
4728
- const isTokenXSol = dlmm.lbPair.tokenXMint.equals(NATIVE_MINT3);
4729
- const wrapAmount = BigInt(
4730
- isTokenXSol ? tokenXAmountAfterSwap.toString() : tokenYAmountAfterSwap.toString()
4731
- );
4732
- const wrapIxs = wrapSOLInstruction(
4733
- user,
4734
- isTokenXSol ? userTokenX : userTokenY,
4735
- wrapAmount,
4736
- isTokenXSol ? tokenXProgram : tokenYProgram
4737
- );
4738
- ledgerTransaction.add(...wrapIxs);
4739
- }
4740
4727
  const updateLedgerXTx = yield this.updateLedgerBalanceAfterSwap(
4741
4728
  user,
4742
4729
  userTokenX,
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "@meteora-ag/zap-sdk",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A Typescript SDK for interacting with the Zap program on Meteora.",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
7
7
  "source": "src/index.ts",
8
8
  "types": "dist/index.d.ts",
9
9
  "author": "Minh Do <minh@raccoons.dev>, Dann Wee <dann@raccoons.dev>",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/MeteoraAg/zap-sdk.git"
13
+ },
10
14
  "keywords": [
11
15
  "meteora-ag",
12
16
  "zap",