@ape.swap/bonds-sdk 3.0.85-test.1 → 3.0.85-test.3
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/main.js +2 -2
- package/dist/state/useSDKConfig.d.ts +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -58355,7 +58355,7 @@ const useSDKConfig = (config) => {
|
|
|
58355
58355
|
const urls = process.env.NODE_ENV === 'production' ? defaultUrls : stagingUrls;
|
|
58356
58356
|
const { data } = useQuery({
|
|
58357
58357
|
queryKey: [QUERY_KEYS.SDK_CONFIG],
|
|
58358
|
-
initialData: Object.assign(Object.assign({ useHotBonds: true, useRainbowKit: false, useTiers: false, useTGEBonds: false }, config), { urls: Object.assign(Object.assign({}, urls), config === null || config === void 0 ? void 0 : config.urls), highestCompatibleVersion: '2.1.1' }),
|
|
58358
|
+
initialData: Object.assign(Object.assign({ useHotBonds: true, useRainbowKit: false, useTiers: false, useTGEBonds: false, useCardsView: false }, config), { urls: Object.assign(Object.assign({}, urls), config === null || config === void 0 ? void 0 : config.urls), highestCompatibleVersion: '2.1.1' }),
|
|
58359
58359
|
});
|
|
58360
58360
|
return data;
|
|
58361
58361
|
};
|
|
@@ -79931,7 +79931,7 @@ const BondRow = ({ bondAddress, bondChain, payoutToken, tag, bondSoldOut, trueBo
|
|
|
79931
79931
|
});
|
|
79932
79932
|
};
|
|
79933
79933
|
return (jsxs("div", { className: "bond-row" // Insert special campaign styles here
|
|
79934
|
-
, onClick: handleOpenModal, sx: { borderRadius: 'normal' }, children: [jsx$2("div", { className: "gold-ribbon" }), jsx$2("div", { className: "token-info-container", sx: { width: ['70%', '70%', '65%', '30%'] }, children: jsx$2(TokenInfoAndName, { tokenSymbol: payoutToken === null || payoutToken === void 0 ? void 0 : payoutToken.symbol, chain: bondChain, tag: tag }) }), SDKConfig.useCardsView &&
|
|
79934
|
+
, onClick: handleOpenModal, sx: { borderRadius: 'normal' }, children: [jsx$2("div", { className: "gold-ribbon" }), jsx$2("div", { className: "token-info-container", sx: { width: ['70%', '70%', '65%', '30%'] }, children: jsx$2(TokenInfoAndName, { tokenSymbol: payoutToken === null || payoutToken === void 0 ? void 0 : payoutToken.symbol, chain: bondChain, tag: tag }) }), SDKConfig.useCardsView && jsx$2("div", { className: "short-description", children: shortDescription }), jsxs("div", { className: "bond-info-columns", sx: { width: '55%' }, children: [jsx$2(BonusContainer, { trueBondPrices: trueBondPrices, minTier: minTier, bonus: bonus }), jsxs("div", { className: "terms-column", children: [vestingTermString, vestingCliffString && (jsx$2(TooltipBubble, { className: "tooltip-bubble",
|
|
79935
79935
|
// body={<Flex>{getVestingTermsTooltipString(bond)}</Flex>}
|
|
79936
79936
|
body: jsx$2(Flex, { children: vestingCliffString }), width: "180px", placement: "bottomRight", transformTip: "translate(13%, 0%)", children: jsx$2(Flex, { sx: { opacity: 0.6, ml: '6px' }, children: jsx$2(Svg, { icon: "questionCircle", width: "12px" }) }) }))] }), jsx$2("div", { className: "tokens-remaining-column", children: jsx$2(ProgressBarWrapper$1, { title: '', value: jsx$2(ProgressBar, { value: percentageAvailable }), style: {
|
|
79937
79937
|
width: '127px',
|
|
@@ -24,7 +24,7 @@ export declare const useSDKConfig: (config?: SDKProps) => {
|
|
|
24
24
|
useTiers: boolean;
|
|
25
25
|
useTGEBonds: boolean;
|
|
26
26
|
theme?: any;
|
|
27
|
-
useCardsView
|
|
27
|
+
useCardsView: boolean;
|
|
28
28
|
};
|
|
29
29
|
export type URLKeys = 'apiV2' | 'realTimeApi' | 'apeswapLists' | 'mainUrl';
|
|
30
30
|
export declare const useURLByEnvironment: (key: URLKeys) => string;
|