@lifi/sdk 3.2.0 → 3.2.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/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "dependencies": {
3
- "@lifi/types": "^15.9.0",
3
+ "@lifi/types": "^15.11.0",
4
4
  "@solana/wallet-adapter-base": "^0.9.23",
5
5
  "@solana/web3.js": "^1.95.3",
6
- "viem": "^2.21.4"
6
+ "viem": "^2.21.6"
7
7
  },
8
8
  "description": "LI.FI Any-to-Any Cross-Chain-Swap SDK",
9
9
  "exports": {
@@ -59,5 +59,5 @@
59
59
  "sideEffects": false,
60
60
  "types": "./src/_types/index.d.ts",
61
61
  "typings": "./src/_types/index.d.ts",
62
- "version": "3.2.0"
62
+ "version": "3.2.2"
63
63
  }
@@ -69,7 +69,7 @@ const getContractCallsQuote = async (params, options) => {
69
69
  throw new SDKError_js_1.SDKError(new errors_js_1.ValidationError(`Required parameter "${requiredParameter}" is missing.`));
70
70
  }
71
71
  });
72
- if (!(0, types_1.isContractCallsRequestWithFromAmount)(params) ||
72
+ if (!(0, types_1.isContractCallsRequestWithFromAmount)(params) &&
73
73
  !(0, types_1.isContractCallsRequestWithToAmount)(params)) {
74
74
  throw new SDKError_js_1.SDKError(new errors_js_1.ValidationError(`Required parameter "fromAmount" or "toAmount" is missing.`));
75
75
  }
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = exports.name = void 0;
4
4
  exports.name = '@lifi/sdk';
5
- exports.version = '3.2.0';
5
+ exports.version = '3.2.2';
6
6
  //# sourceMappingURL=version.js.map
@@ -88,7 +88,7 @@ export const getContractCallsQuote = async (params, options) => {
88
88
  throw new SDKError(new ValidationError(`Required parameter "${requiredParameter}" is missing.`));
89
89
  }
90
90
  });
91
- if (!isContractCallsRequestWithFromAmount(params) ||
91
+ if (!isContractCallsRequestWithFromAmount(params) &&
92
92
  !isContractCallsRequestWithToAmount(params)) {
93
93
  throw new SDKError(new ValidationError(`Required parameter "fromAmount" or "toAmount" is missing.`));
94
94
  }
@@ -1,3 +1,3 @@
1
1
  export const name = '@lifi/sdk';
2
- export const version = '3.2.0';
2
+ export const version = '3.2.2';
3
3
  //# sourceMappingURL=version.js.map
@@ -1,3 +1,3 @@
1
1
  export declare const name = "@lifi/sdk";
2
- export declare const version = "3.2.0";
2
+ export declare const version = "3.2.2";
3
3
  //# sourceMappingURL=version.d.ts.map
@@ -153,7 +153,7 @@ export const getContractCallsQuote = async (
153
153
  }
154
154
  })
155
155
  if (
156
- !isContractCallsRequestWithFromAmount(params) ||
156
+ !isContractCallsRequestWithFromAmount(params) &&
157
157
  !isContractCallsRequestWithToAmount(params)
158
158
  ) {
159
159
  throw new SDKError(
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/sdk'
2
- export const version = '3.2.0'
2
+ export const version = '3.2.2'