@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.
- package/dist/config/constants/variables.d.ts +1 -1
- package/dist/main.js +28 -11
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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
|
|
82639
|
+
var _a, _b;
|
|
82640
82640
|
console.log('Making SoulZap Token Call');
|
|
82641
|
-
const response = yield axios.post(SOUL_ZAP_API,
|
|
82642
|
-
|
|
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
|
|
83966
|
-
const response = yield axios.post(SOUL_ZAP_API,
|
|
83967
|
-
|
|
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],
|