@meteora-ag/zap-sdk 1.0.8-rc.1 → 1.0.8

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
@@ -917,7 +917,7 @@ var Zap = class {
917
917
  "base64"
918
918
  );
919
919
  const offsetAmountIn = payloadData.length - AMOUNT_IN_JUP_V6_REVERSE_OFFSET;
920
- if ([inputMint, outputMint].includes(import_spl_token5.NATIVE_MINT)) {
920
+ if (inputMint.equals(import_spl_token5.NATIVE_MINT) || outputMint.equals(import_spl_token5.NATIVE_MINT)) {
921
921
  const unwrapInstructions = unwrapSOLInstruction(user, user);
922
922
  if (unwrapInstructions) {
923
923
  postInstructions.push(unwrapInstructions);
@@ -1013,7 +1013,7 @@ var Zap = class {
1013
1013
  );
1014
1014
  const payloadData = createDammV2SwapPayload(amountIn, minimumSwapAmountOut);
1015
1015
  const offsetAmountIn = AMOUNT_IN_DAMM_V2_OFFSET;
1016
- if ([inputMint, outputMint].includes(import_spl_token5.NATIVE_MINT)) {
1016
+ if (inputMint.equals(import_spl_token5.NATIVE_MINT) || outputMint.equals(import_spl_token5.NATIVE_MINT)) {
1017
1017
  const unwrapInstructions = unwrapSOLInstruction(user, user);
1018
1018
  if (unwrapInstructions) {
1019
1019
  postInstructions.push(unwrapInstructions);
@@ -1113,7 +1113,7 @@ var Zap = class {
1113
1113
  minimumSwapAmountOut,
1114
1114
  remainingAccountsInfo
1115
1115
  );
1116
- if ([inputMint, outputMint].includes(import_spl_token5.NATIVE_MINT)) {
1116
+ if (inputMint.equals(import_spl_token5.NATIVE_MINT) || outputMint.equals(import_spl_token5.NATIVE_MINT)) {
1117
1117
  const unwrapInstructions = unwrapSOLInstruction(user, user);
1118
1118
  if (unwrapInstructions) {
1119
1119
  postInstructions.push(unwrapInstructions);
package/dist/index.mjs CHANGED
@@ -883,7 +883,7 @@ var Zap = class {
883
883
  "base64"
884
884
  );
885
885
  const offsetAmountIn = payloadData.length - AMOUNT_IN_JUP_V6_REVERSE_OFFSET;
886
- if ([inputMint, outputMint].includes(NATIVE_MINT3)) {
886
+ if (inputMint.equals(NATIVE_MINT3) || outputMint.equals(NATIVE_MINT3)) {
887
887
  const unwrapInstructions = unwrapSOLInstruction(user, user);
888
888
  if (unwrapInstructions) {
889
889
  postInstructions.push(unwrapInstructions);
@@ -979,7 +979,7 @@ var Zap = class {
979
979
  );
980
980
  const payloadData = createDammV2SwapPayload(amountIn, minimumSwapAmountOut);
981
981
  const offsetAmountIn = AMOUNT_IN_DAMM_V2_OFFSET;
982
- if ([inputMint, outputMint].includes(NATIVE_MINT3)) {
982
+ if (inputMint.equals(NATIVE_MINT3) || outputMint.equals(NATIVE_MINT3)) {
983
983
  const unwrapInstructions = unwrapSOLInstruction(user, user);
984
984
  if (unwrapInstructions) {
985
985
  postInstructions.push(unwrapInstructions);
@@ -1079,7 +1079,7 @@ var Zap = class {
1079
1079
  minimumSwapAmountOut,
1080
1080
  remainingAccountsInfo
1081
1081
  );
1082
- if ([inputMint, outputMint].includes(NATIVE_MINT3)) {
1082
+ if (inputMint.equals(NATIVE_MINT3) || outputMint.equals(NATIVE_MINT3)) {
1083
1083
  const unwrapInstructions = unwrapSOLInstruction(user, user);
1084
1084
  if (unwrapInstructions) {
1085
1085
  postInstructions.push(unwrapInstructions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meteora-ag/zap-sdk",
3
- "version": "1.0.8-rc.1",
3
+ "version": "1.0.8",
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",