@ape.swap/bonds-sdk 4.1.0-test.15 → 4.1.0-test.16

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.
@@ -1,5 +1,5 @@
1
1
  import { ChainId } from '@ape.swap/apeswap-lists';
2
2
  export declare const supportedByLIFI: ChainId[];
3
3
  export declare const STRAPI_URL = "https://strapi-api.ape.bond";
4
- export declare const SOUL_ZAP_API = "https://zap-api.ape.bond/zap?batch=1";
4
+ export declare const SOUL_ZAP_API = "https://zap-api.ape.bond/zap";
5
5
  export declare const APEBOND = "https://ape.bond";
package/dist/main.js CHANGED
@@ -66152,7 +66152,7 @@ const supportedByLIFI = [
66152
66152
  types$1.ChainId.KATANA,
66153
66153
  ];
66154
66154
  const STRAPI_URL = `https://strapi-api.ape.bond`;
66155
- const SOUL_ZAP_API = `https://zap-api.ape.bond/zap?batch=1`;
66155
+ const SOUL_ZAP_API = `https://zap-api.ape.bond/zap`;
66156
66156
  const APEBOND = `https://ape.bond`;
66157
66157
 
66158
66158
  const TokenImage = ({ symbol, symbol2, size, chain, }) => {
@@ -82636,12 +82636,10 @@ const useSoulZapTokenQuote = (typedValue, inputCurrency, outputToken, chainId, a
82636
82636
  ];
82637
82637
  }, [zapInputData]);
82638
82638
  const fetchZapDetails = () => __awaiter$9(void 0, void 0, void 0, function* () {
82639
- var _a, _b, _c;
82639
+ var _a, _b;
82640
82640
  console.log('Making SoulZap Token Call');
82641
- const response = yield axios.post(SOUL_ZAP_API, {
82642
- '0': zapInputData,
82643
- });
82644
- return (_c = (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.result) === null || _c === void 0 ? void 0 : _c.data;
82641
+ const response = yield axios.post(SOUL_ZAP_API, zapInputData);
82642
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.result) === null || _b === void 0 ? void 0 : _b.data;
82645
82643
  });
82646
82644
  const { data: response, isLoading, error, } = useQuery({
82647
82645
  queryKey: [QUERY_KEYS.ZAP_TOKEN_QUOTE, queryKey],
@@ -83905,6 +83903,27 @@ const useSoulZapBondQuote = (typedValue, inputCurrency, bond, account, tierProof
83905
83903
  chainName &&
83906
83904
  bondContractAddress &&
83907
83905
  (inputCurrency === 'NATIVE' || (inputCurrency === null || inputCurrency === void 0 ? void 0 : inputCurrency.address[chainId]) !== principalToken.address[chainId])) {
83906
+ if (principalToken.liquidityWrapper && principalToken.liquidityWrapper === types$1.Wrappers.Steer) {
83907
+ return {
83908
+ chain: chainName,
83909
+ recipient: account !== null && account !== void 0 ? account : '0x0000000000000000000000000000000000000000',
83910
+ user: account !== null && account !== void 0 ? account : '0x0000000000000000000000000000000000000000',
83911
+ lpData: {
83912
+ lpType: 'steer',
83913
+ fromToken: inputCurrencyString,
83914
+ fromAmount: bigishInputAmount,
83915
+ lpAddress: vault,
83916
+ periphery: '0xCEBF1A54A9Ce703FC80967760b5A6cbDb4111099',
83917
+ slippage,
83918
+ },
83919
+ protocolData: {
83920
+ protocol: 'ApeBond',
83921
+ bond: bondContractAddress,
83922
+ depositer: account !== null && account !== void 0 ? account : '0x0000000000000000000000000000000000000000',
83923
+ tierProofSignature: bond.billVersion === types$1.BillVersion.V4 && tierProofSig ? tierProofSig : undefined,
83924
+ },
83925
+ };
83926
+ }
83908
83927
  return {
83909
83928
  chain: chainName,
83910
83929
  recipient: account !== null && account !== void 0 ? account : '0x0000000000000000000000000000000000000000',
@@ -83962,11 +83981,9 @@ const useSoulZapBondQuote = (typedValue, inputCurrency, bond, account, tierProof
83962
83981
  ];
83963
83982
  }, [zapInputData]);
83964
83983
  const fetchZapDetails = () => __awaiter$9(void 0, void 0, void 0, function* () {
83965
- var _a, _b, _c;
83966
- const response = yield axios.post(SOUL_ZAP_API, {
83967
- '0': zapInputData,
83968
- });
83969
- return (_c = (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.result) === null || _c === void 0 ? void 0 : _c.data;
83984
+ var _a, _b;
83985
+ const response = yield axios.post(SOUL_ZAP_API, zapInputData);
83986
+ return (_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.result) === null || _b === void 0 ? void 0 : _b.data;
83970
83987
  });
83971
83988
  const { data: response, isLoading, isFetching, error, } = useQuery({
83972
83989
  queryKey: [QUERY_KEYS.ZAP_TOKEN_QUOTE, queryKey],
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "4.1.0-test.15",
6
+ "version": "4.1.0-test.16",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",