@ape.swap/bonds-sdk 3.0.49 → 3.0.51
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
|
-
export declare const APESWAP_LIST_REPO = "https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging";
|
|
4
3
|
export declare const STRAPI_URL = "https://strapi-api.ape.bond";
|
|
5
4
|
export declare const SOUL_ZAP_API = "https://zap-api.ape.bond/zap?batch=1";
|
|
5
|
+
export declare const APEBOND = "https://ape.bond";
|
package/dist/main.js
CHANGED
|
@@ -18820,10 +18820,9 @@ const supportedByLIFI = [
|
|
|
18820
18820
|
types.ChainId.SONIC,
|
|
18821
18821
|
types.ChainId.BERACHAIN,
|
|
18822
18822
|
];
|
|
18823
|
-
// we should be good just by using staging on this, as it is only used for token images
|
|
18824
|
-
const APESWAP_LIST_REPO = `https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging`;
|
|
18825
18823
|
const STRAPI_URL = `https://strapi-api.ape.bond`;
|
|
18826
18824
|
const SOUL_ZAP_API = `https://zap-api.ape.bond/zap?batch=1`;
|
|
18825
|
+
const APEBOND = `https://ape.bond`;
|
|
18827
18826
|
|
|
18828
18827
|
const TokenImage = ({ symbol, symbol2, size, chain, }) => {
|
|
18829
18828
|
var _a, _b;
|
|
@@ -18836,7 +18835,7 @@ const TokenImage = ({ symbol, symbol2, size, chain, }) => {
|
|
|
18836
18835
|
alignItems: 'center',
|
|
18837
18836
|
borderRadius: '55px',
|
|
18838
18837
|
position: 'relative',
|
|
18839
|
-
}, children: [jsx$2("img", { src: `${
|
|
18838
|
+
}, children: [jsx$2("img", { src: `${APEBOND}/tokenImages/${token1 === null || token1 === void 0 ? void 0 : token1.toUpperCase()}.png`, alt: `tokenImgFor:${token1}`, width: size, height: size, style: { position: 'absolute', zIndex: 4001, left: 0 } }), jsx$2("img", { src: `${APEBOND}/tokenImages/${token2.toUpperCase()}.png`, alt: `tokenImgFor:${token2}`, width: size, height: size, style: { position: 'absolute', zIndex: 4000, left: '33%' } }), chain && (jsx$2(Flex, { sx: {
|
|
18840
18839
|
zIndex: 4002,
|
|
18841
18840
|
position: 'absolute',
|
|
18842
18841
|
top: '-2px',
|
|
@@ -18850,7 +18849,7 @@ const TokenImage = ({ symbol, symbol2, size, chain, }) => {
|
|
|
18850
18849
|
alignItems: 'center',
|
|
18851
18850
|
borderRadius: '55px',
|
|
18852
18851
|
position: 'relative',
|
|
18853
|
-
}, children: [jsx$2("img", { src: `${
|
|
18852
|
+
}, children: [jsx$2("img", { src: `${APEBOND}/tokenImages/${token1 === null || token1 === void 0 ? void 0 : token1.toUpperCase()}.png`, alt: `tokenImgFor:${token1}`, width: size, height: token1 === 'BNB-ICHI' ? 19 : size }), chain && (jsx$2(Flex, { sx: {
|
|
18854
18853
|
zIndex: 5,
|
|
18855
18854
|
position: 'absolute',
|
|
18856
18855
|
top: '-2px',
|
|
@@ -18987,7 +18986,7 @@ const AddFavToken = ({ tokenSymbol, hotBond, isGoldBond, }) => {
|
|
|
18987
18986
|
const defaultUrls = {
|
|
18988
18987
|
apiV2: 'https://api.ape.bond',
|
|
18989
18988
|
realTimeApi: 'https://realtime-api.ape.bond/bonds',
|
|
18990
|
-
apeswapLists: 'https://raw.githubusercontent.com/ApeSwapFinance/apeswap-lists/main',
|
|
18989
|
+
apeswapLists: 'https://raw.githubusercontent.com/ApeSwapFinance/apeswap-lists/refs/heads/main',
|
|
18991
18990
|
mainUrl: 'https://ape.bond',
|
|
18992
18991
|
};
|
|
18993
18992
|
const useSDKConfig = (config) => {
|
|
@@ -70870,7 +70869,7 @@ function getTemplateHTML(data) {
|
|
|
70870
70869
|
var _a, _b, _c;
|
|
70871
70870
|
const isProfit = data.data.payout * +data.data.payoutTokenPrice - data.data.dollarValue > 0;
|
|
70872
70871
|
const getTokenImage = (symbol) => {
|
|
70873
|
-
return `${
|
|
70872
|
+
return `${APEBOND}/assets/${symbol.toUpperCase()}.png`;
|
|
70874
70873
|
};
|
|
70875
70874
|
const getPrincipalToken = () => {
|
|
70876
70875
|
var _a, _b, _c, _d;
|