@ape.swap/bonds-sdk 2.0.3 → 2.0.4
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 APESWAP_LIST_REPO = "https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging";
|
|
4
|
-
export declare const STRAPI_URL = "https://
|
|
5
|
-
export declare const SOUL_ZAP_API = "https://
|
|
4
|
+
export declare const STRAPI_URL = "https://strapi-api.ape.bond";
|
|
5
|
+
export declare const SOUL_ZAP_API = "https://zap-api.ape.bond/zap?batch=1";
|
package/dist/main.js
CHANGED
|
@@ -18517,8 +18517,8 @@ const supportedByLIFI = [
|
|
|
18517
18517
|
];
|
|
18518
18518
|
// we should be good just by using staging on this, as it is only used for token images
|
|
18519
18519
|
const APESWAP_LIST_REPO = `https://raw.githubusercontent.com/ApeSwapFinance/apeswap-token-lists/staging`;
|
|
18520
|
-
const STRAPI_URL = `https://
|
|
18521
|
-
const SOUL_ZAP_API = `https://
|
|
18520
|
+
const STRAPI_URL = `https://strapi-api.ape.bond`;
|
|
18521
|
+
const SOUL_ZAP_API = `https://zap-api.ape.bond/zap?batch=1`;
|
|
18522
18522
|
|
|
18523
18523
|
const TokenImage = ({ symbol, symbol2, size, chain, }) => {
|
|
18524
18524
|
var _a, _b;
|
|
@@ -73650,8 +73650,7 @@ const BondRowsByChain = ({ bonds, hideTitles }) => {
|
|
|
73650
73650
|
const getUserApiStats = (account) => __awaiter$9(void 0, void 0, void 0, function* () {
|
|
73651
73651
|
if (!account)
|
|
73652
73652
|
return null;
|
|
73653
|
-
const { data } = yield axios.get(`
|
|
73654
|
-
https://bonds-dashboard-api-deaf0d7d55b7.herokuapp.com/collector/userSalesInfo/purchased/${account}`);
|
|
73653
|
+
const { data } = yield axios.get(`https://dashboard-api.ape.bond/collector/userSalesInfo/purchased/${account}`);
|
|
73655
73654
|
return data;
|
|
73656
73655
|
});
|
|
73657
73656
|
function useUserApiStats() {
|
|
@@ -74867,7 +74866,7 @@ const NavPanel = ({ contractAddress }) => {
|
|
|
74867
74866
|
justifyContent: 'space-between',
|
|
74868
74867
|
alignItems: 'center',
|
|
74869
74868
|
mb: ['15px', '15px', '15px', '0px'],
|
|
74870
|
-
}, children: [jsxs(Flex, { onClick: () => window.open(`${window.location.origin}/bonds`, '_self'), sx: { cursor: 'pointer' }, children: ['< ', jsx$2(Flex, { sx: { ml: '4px' }, children: "All Bonds" })] }), jsx$2(Flex, { children: jsxs(Flex, { sx: { p: '5px 10px', background: 'white3', borderRadius: 'small', cursor: 'pointer' }, onClick: () => window.open(`https://
|
|
74869
|
+
}, children: [jsxs(Flex, { onClick: () => window.open(`${window.location.origin}/bonds`, '_self'), sx: { cursor: 'pointer' }, children: ['< ', jsx$2(Flex, { sx: { ml: '4px' }, children: "All Bonds" })] }), jsx$2(Flex, { children: jsxs(Flex, { sx: { p: '5px 10px', background: 'white3', borderRadius: 'small', cursor: 'pointer' }, onClick: () => window.open(`https://dashboard.ape.bond/bond/${contractAddress}`, '_blank', 'noreferrer'), children: ["View insights", jsx$2(Flex, { sx: { ml: '3px' }, children: jsx$2(Svg, { icon: "insight" }) })] }) })] }));
|
|
74871
74870
|
};
|
|
74872
74871
|
|
|
74873
74872
|
const styles$3 = {
|
|
@@ -89387,8 +89386,7 @@ const styles$2 = {
|
|
|
89387
89386
|
};
|
|
89388
89387
|
|
|
89389
89388
|
const getBondApiStats = (contractAddress) => __awaiter$9(void 0, void 0, void 0, function* () {
|
|
89390
|
-
const { data } = yield axios.get(`
|
|
89391
|
-
https://bonds-dashboard-api-deaf0d7d55b7.herokuapp.com/collector/salesInfo/bond/${contractAddress}/0`);
|
|
89389
|
+
const { data } = yield axios.get(`https://dashboard-api.ape.bond/collector/salesInfo/bond/${contractAddress}/0`);
|
|
89392
89390
|
return data;
|
|
89393
89391
|
});
|
|
89394
89392
|
function useGetBondApiStats(contractAddress) {
|
|
@@ -89466,7 +89464,7 @@ const BondStats = ({ selectedBond }) => {
|
|
|
89466
89464
|
});
|
|
89467
89465
|
}
|
|
89468
89466
|
}, [bondStats]);
|
|
89469
|
-
return (jsxs(Flex, { sx: styles$2.bondStatsContainer, children: [jsxs(Flex, { sx: styles$2.titleContainer, children: [jsx$2(Flex, { sx: { fontSize: '22px' }, children: "Bond Stats" }), jsxs(Link, { href: `https://
|
|
89467
|
+
return (jsxs(Flex, { sx: styles$2.bondStatsContainer, children: [jsxs(Flex, { sx: styles$2.titleContainer, children: [jsx$2(Flex, { sx: { fontSize: '22px' }, children: "Bond Stats" }), jsxs(Link, { href: `https://dashboard.ape.bond/bond/${selectedBond.billAddress}`, sx: styles$2.link, target: "_blank", rel: "noopener noreferrer", children: ["View More ", '>'] })] }), jsxs(Flex, { sx: styles$2.chartsContainer, children: [jsxs(Flex, { sx: styles$2.salesChart, children: [jsx$2(Flex, { sx: { width: '150px' }, children: jsx$2(MenuSelect, { selectedOption: chartOption, setOption: setChartOption, options: chartOptions }) }), jsx$2(Flex, { sx: { width: '100%', height: '100%', minHeight: '225px' }, children: chartOption === 'amount' ? (jsx$2(Line, { options: options, data: salesAmountChartData })) : (jsx$2(Line, { options: options, data: salesCountChartData })) })] }), (bondStats === null || bondStats === void 0 ? void 0 : bondStats.percentageSold) && (jsxs(Flex, { sx: styles$2.percentageSoldChart, children: [jsxs(Flex, { sx: { mb: '10px' }, children: [selectedBond.earnToken.symbol, " Sold"] }), jsx$2(Knob, { value: bondStats === null || bondStats === void 0 ? void 0 : bondStats.percentageSold, size: 176, valueTemplate: `${(_f = bondStats === null || bondStats === void 0 ? void 0 : bondStats.percentageSold) === null || _f === void 0 ? void 0 : _f.toFixed()}%`, valueColor: "#6560C5", rangeColor: "rgba(250, 250, 250, 0.05)", textColor: "#f6f6f6" }), jsxs(Flex, { sx: { fontSize: '14px', fontWeight: 500, color: 'textDisabledButton' }, children: [soldTokens, " / ", maxTotalPayout === null || maxTotalPayout === void 0 ? void 0 : maxTotalPayout.toLocaleString(), " ", selectedBond.earnToken.symbol] })] }))] })] }));
|
|
89470
89468
|
};
|
|
89471
89469
|
|
|
89472
89470
|
const styles$1 = {
|
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": "2.0.
|
|
6
|
+
"version": "2.0.4",
|
|
7
7
|
"module": "dist/main.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"types": "dist/main.d.ts",
|
|
@@ -79,5 +79,6 @@
|
|
|
79
79
|
"last 1 firefox version",
|
|
80
80
|
"last 1 safari version"
|
|
81
81
|
]
|
|
82
|
-
}
|
|
82
|
+
},
|
|
83
|
+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
83
84
|
}
|