@ape.swap/bonds-sdk 6.1.18 → 6.2.1
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/state/bonds/useBondsData.js +36 -50
- package/dist/state/bonds/useBondsData.js.map +1 -1
- package/dist/state/bonds/useBondsList.d.ts +3 -3
- package/dist/state/bonds/useBondsList.js +25 -6
- package/dist/state/bonds/useBondsList.js.map +1 -1
- package/dist/state/bonds/useUserBonds.d.ts +2 -2
- package/dist/state/bonds/useUserBonds.js +8 -28
- package/dist/state/bonds/useUserBonds.js.map +1 -1
- package/dist/state/historicalPrice/useHistoricalPrice.js +2 -3
- package/dist/state/historicalPrice/useHistoricalPrice.js.map +1 -1
- package/dist/views/Bonds/Bonds.js +1 -1
- package/dist/views/Bonds/Bonds.js.map +1 -1
- package/dist/views/Bonds/components/BondRows/BondRow.d.ts +2 -2
- package/dist/views/Bonds/components/BondRows/BondRow.js +3 -1
- package/dist/views/Bonds/components/BondRows/BondRow.js.map +1 -1
- package/dist/views/Bonds/components/BondRows/ModalHandler.d.ts +2 -1
- package/dist/views/Bonds/components/BondRows/ModalHandler.js +7 -6
- package/dist/views/Bonds/components/BondRows/ModalHandler.js.map +1 -1
- package/dist/views/BuyBond/BuyBondModal.d.ts +2 -2
- package/dist/views/BuyBond/BuyBondModal.js +5 -3
- package/dist/views/BuyBond/BuyBondModal.js.map +1 -1
- package/dist/views/BuyBond/BuyComponent.d.ts +2 -2
- package/dist/views/BuyBond/BuyComponent.js +6 -3
- package/dist/views/BuyBond/BuyComponent.js.map +1 -1
- package/dist/views/ProjectView/ProjectView.js +2 -2
- package/dist/views/ProjectView/ProjectView.js.map +1 -1
- package/dist/views/ProjectView/components/ProjectInfo/index.d.ts +2 -2
- package/dist/views/ProjectView/components/ProjectInfo/index.js +3 -7
- package/dist/views/ProjectView/components/ProjectInfo/index.js.map +1 -1
- package/dist/views/ProjectView/components/ProjectInfo/styles.js +1 -24
- package/dist/views/ProjectView/components/ProjectInfo/styles.js.map +1 -1
- package/dist/views/SingleBond/SingleBond.js +14 -7
- package/dist/views/SingleBond/SingleBond.js.map +1 -1
- package/package.json +5 -3
- package/dist/state/tokenList/useTokenList.d.ts +0 -5
|
@@ -2,14 +2,10 @@ import { jsxs, jsx } from 'theme-ui/jsx-runtime';
|
|
|
2
2
|
import Flex from '../../../../components/uikit-sdk/Flex/index.js';
|
|
3
3
|
import { styles } from './styles.js';
|
|
4
4
|
import SafeHTMLComponent from '../../../../components/SafeHTMLComponent/index.js';
|
|
5
|
-
import useBondsList from '../../../../state/bonds/useBondsList.js';
|
|
6
5
|
|
|
7
|
-
const ProjectInfo = ({
|
|
8
|
-
const description =
|
|
9
|
-
|
|
10
|
-
const selectedBond = bondList?.find((billsConfig) => billsConfig?.contractAddress?.[billsConfig?.chainId]?.toLowerCase() ===
|
|
11
|
-
selectedBond2?.contractAddress?.[selectedBond2.chainId]?.toLowerCase());
|
|
12
|
-
return (jsxs(Flex, { sx: styles.projectInfoContainer, children: [jsxs(Flex, { sx: styles.tokenTitle, children: ["About ", selectedBond?.earnToken.symbol] }), jsx(Flex, { sx: styles.fullDescription, children: description && jsx(SafeHTMLComponent, { html: description }) }), jsxs(Flex, { sx: { flexDirection: 'column' }, children: [selectedBond?.featuredURLS && selectedBond?.featuredURLS?.length > 0 && (jsxs(Flex, { sx: { flexDirection: 'column', mt: '20px' }, children: [jsx(Flex, { sx: styles.tokenTitle, children: "Featured In" }), jsx(Flex, { sx: styles.imagesWrapper, children: selectedBond?.featuredURLS?.map((featuredURLS, index) => (jsx(Flex, { sx: styles.imageContainer, children: jsx("img", { src: featuredURLS, alt: "featured-img", style: { width: '100%', height: '100%', objectFit: 'contain' } }) }, `${featuredURLS}-${index}`))) })] })), selectedBond?.partnersURLS && selectedBond?.partnersURLS?.length > 0 && (jsxs(Flex, { sx: { flexDirection: 'column', mt: '20px' }, children: [jsx(Flex, { sx: styles.tokenTitle, children: "Partners" }), jsx(Flex, { sx: styles.imagesWrapper, children: selectedBond?.partnersURLS?.map((partnerURL, index) => (jsx(Flex, { sx: styles.imageContainer, children: jsx("img", { src: partnerURL, alt: "partner-img", style: { width: '100%', height: '100%', objectFit: 'contain' } }) }, `${partnerURL}-${index}`))) })] }))] })] }));
|
|
6
|
+
const ProjectInfo = ({ selectedBond }) => {
|
|
7
|
+
const description = selectedBond?.fullDescription ?? selectedBond?.shortDescription;
|
|
8
|
+
return (jsxs(Flex, { sx: styles.projectInfoContainer, children: [jsxs(Flex, { sx: styles.tokenTitle, children: ["About ", selectedBond?.earnToken.symbol] }), jsx(Flex, { sx: styles.fullDescription, children: description && jsx(SafeHTMLComponent, { html: description }) }), jsx(Flex, { sx: { flexDirection: 'column' } })] }));
|
|
13
9
|
};
|
|
14
10
|
|
|
15
11
|
export { ProjectInfo as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../src/views/ProjectView/components/ProjectInfo/index.tsx"],"sourcesContent":["import React from 'react'\nimport Flex from '../../../../components/uikit-sdk/Flex'\nimport { styles } from './styles'\nimport SafeHTMLComponent from '../../../../components/SafeHTMLComponent'\nimport { BondsData } from '../../../../types/bonds'\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../src/views/ProjectView/components/ProjectInfo/index.tsx"],"sourcesContent":["import React from 'react'\nimport Flex from '../../../../components/uikit-sdk/Flex'\nimport { styles } from './styles'\nimport SafeHTMLComponent from '../../../../components/SafeHTMLComponent'\nimport { BondsData } from '../../../../types/bonds'\n\nconst ProjectInfo = ({ selectedBond }: { selectedBond?: BondsData }) => {\n const description: string | undefined = selectedBond?.fullDescription ?? selectedBond?.shortDescription\n\n return (\n <Flex sx={styles.projectInfoContainer}>\n <Flex sx={styles.tokenTitle}>About {selectedBond?.earnToken.symbol}</Flex>\n <Flex sx={styles.fullDescription}>{description && <SafeHTMLComponent html={description} />}</Flex>\n <Flex sx={{ flexDirection: 'column' }}></Flex>\n </Flex>\n )\n}\n\nexport default ProjectInfo\n"],"names":["_jsxs","_jsx"],"mappings":";;;;;AAMA,MAAM,WAAW,GAAG,CAAC,EAAE,YAAY,EAAgC,KAAI;IACrE,MAAM,WAAW,GAAuB,YAAY,EAAE,eAAe,IAAI,YAAY,EAAE,gBAAgB;IAEvG,QACEA,IAAA,CAAC,IAAI,EAAA,EAAC,EAAE,EAAE,MAAM,CAAC,oBAAoB,EAAA,QAAA,EAAA,CACnCA,IAAA,CAAC,IAAI,EAAA,EAAC,EAAE,EAAE,MAAM,CAAC,UAAU,EAAA,QAAA,EAAA,CAAA,QAAA,EAAS,YAAY,EAAE,SAAS,CAAC,MAAM,CAAA,EAAA,CAAQ,EAC1EC,GAAA,CAAC,IAAI,EAAA,EAAC,EAAE,EAAE,MAAM,CAAC,eAAe,EAAA,QAAA,EAAG,WAAW,IAAIA,GAAA,CAAC,iBAAiB,EAAA,EAAC,IAAI,EAAE,WAAW,EAAA,CAAI,EAAA,CAAQ,EAClGA,GAAA,CAAC,IAAI,EAAA,EAAC,EAAE,EAAE,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAA,CAAS,CAAA,EAAA,CACzC;AAEX;;;;"}
|
|
@@ -15,30 +15,7 @@ const styles = {
|
|
|
15
15
|
fontWeight: 500,
|
|
16
16
|
lineHeight: '21px',
|
|
17
17
|
mt: '10px',
|
|
18
|
-
}
|
|
19
|
-
imagesWrapper: {
|
|
20
|
-
mt: '10px',
|
|
21
|
-
justifyContent: 'space-between',
|
|
22
|
-
flexWrap: ['wrap', 'wrap', 'wrap', 'nowrap'],
|
|
23
|
-
'& > div:last-child': {
|
|
24
|
-
marginRight: '0',
|
|
25
|
-
},
|
|
26
|
-
'& > div:nth-of-type(3)': {
|
|
27
|
-
marginRight: ['0px', '0px', '0px', '10px'],
|
|
28
|
-
},
|
|
29
|
-
'& > div:nth-of-type(n+4)': {
|
|
30
|
-
mt: ['15px', '15px', '15px', '0px'],
|
|
31
|
-
},
|
|
32
|
-
},
|
|
33
|
-
imageContainer: {
|
|
34
|
-
p: '10px',
|
|
35
|
-
background: 'white3',
|
|
36
|
-
borderRadius: 'normal',
|
|
37
|
-
mr: '10px',
|
|
38
|
-
width: ['30%', '30%', '30%', '100%'],
|
|
39
|
-
height: ['40px', '40px', '40px', '67px'],
|
|
40
|
-
},
|
|
41
|
-
};
|
|
18
|
+
}};
|
|
42
19
|
|
|
43
20
|
export { styles };
|
|
44
21
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sources":["../../../../../src/views/ProjectView/components/ProjectInfo/styles.ts"],"sourcesContent":["import { ThemeUIStyleObject } from 'theme-ui'\n\nexport const styles: Record<\n 'projectInfoContainer' | 'tokenTitle' | 'fullDescription' | 'imagesWrapper' | 'imageContainer',\n ThemeUIStyleObject\n> = {\n projectInfoContainer: {\n width: '100%',\n background: 'white2',\n p: '20px',\n borderRadius: 'normal',\n flexDirection: 'column',\n },\n tokenTitle: {\n width: '100%',\n fontSize: ['22px'],\n },\n fullDescription: {\n fontSize: '14px',\n fontWeight: 500,\n lineHeight: '21px',\n mt: '10px',\n },\n imagesWrapper: {\n mt: '10px',\n justifyContent: 'space-between',\n flexWrap: ['wrap', 'wrap', 'wrap', 'nowrap'],\n '& > div:last-child': {\n marginRight: '0',\n },\n '& > div:nth-of-type(3)': {\n marginRight: ['0px', '0px', '0px', '10px'],\n },\n '& > div:nth-of-type(n+4)': {\n mt: ['15px', '15px', '15px', '0px'],\n },\n },\n imageContainer: {\n p: '10px',\n background: 'white3',\n borderRadius: 'normal',\n mr: '10px',\n width: ['30%', '30%', '30%', '100%'],\n height: ['40px', '40px', '40px', '67px'],\n },\n}\n"],"names":[],"mappings":"AAEO,MAAM,MAAM,GAGf;AACF,IAAA,oBAAoB,EAAE;AACpB,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,UAAU,EAAE,QAAQ;AACpB,QAAA,CAAC,EAAE,MAAM;AACT,QAAA,YAAY,EAAE,QAAQ;AACtB,QAAA,aAAa,EAAE,QAAQ;AACxB,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,CAAC,MAAM,CAAC;AACnB,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,QAAQ,EAAE,MAAM;AAChB,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,UAAU,EAAE,MAAM;AAClB,QAAA,EAAE,EAAE,MAAM;AACX
|
|
1
|
+
{"version":3,"file":"styles.js","sources":["../../../../../src/views/ProjectView/components/ProjectInfo/styles.ts"],"sourcesContent":["import { ThemeUIStyleObject } from 'theme-ui'\n\nexport const styles: Record<\n 'projectInfoContainer' | 'tokenTitle' | 'fullDescription' | 'imagesWrapper' | 'imageContainer',\n ThemeUIStyleObject\n> = {\n projectInfoContainer: {\n width: '100%',\n background: 'white2',\n p: '20px',\n borderRadius: 'normal',\n flexDirection: 'column',\n },\n tokenTitle: {\n width: '100%',\n fontSize: ['22px'],\n },\n fullDescription: {\n fontSize: '14px',\n fontWeight: 500,\n lineHeight: '21px',\n mt: '10px',\n },\n imagesWrapper: {\n mt: '10px',\n justifyContent: 'space-between',\n flexWrap: ['wrap', 'wrap', 'wrap', 'nowrap'],\n '& > div:last-child': {\n marginRight: '0',\n },\n '& > div:nth-of-type(3)': {\n marginRight: ['0px', '0px', '0px', '10px'],\n },\n '& > div:nth-of-type(n+4)': {\n mt: ['15px', '15px', '15px', '0px'],\n },\n },\n imageContainer: {\n p: '10px',\n background: 'white3',\n borderRadius: 'normal',\n mr: '10px',\n width: ['30%', '30%', '30%', '100%'],\n height: ['40px', '40px', '40px', '67px'],\n },\n}\n"],"names":[],"mappings":"AAEO,MAAM,MAAM,GAGf;AACF,IAAA,oBAAoB,EAAE;AACpB,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,UAAU,EAAE,QAAQ;AACpB,QAAA,CAAC,EAAE,MAAM;AACT,QAAA,YAAY,EAAE,QAAQ;AACtB,QAAA,aAAa,EAAE,QAAQ;AACxB,KAAA;AACD,IAAA,UAAU,EAAE;AACV,QAAA,KAAK,EAAE,MAAM;QACb,QAAQ,EAAE,CAAC,MAAM,CAAC;AACnB,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,QAAQ,EAAE,MAAM;AAChB,QAAA,UAAU,EAAE,GAAG;AACf,QAAA,UAAU,EAAE,MAAM;AAClB,QAAA,EAAE,EAAE,MAAM;AACX;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'theme-ui/jsx-runtime';
|
|
2
|
-
import { useState } from 'react';
|
|
2
|
+
import { useState, useMemo } from 'react';
|
|
3
3
|
import Flex from '../../components/uikit-sdk/Flex/index.js';
|
|
4
4
|
import useBondsData from '../../state/bonds/useBondsData.js';
|
|
5
5
|
import useBondsList from '../../state/bonds/useBondsList.js';
|
|
6
|
-
import
|
|
6
|
+
import BuyBond from '../BuyBond/BuyComponent.js';
|
|
7
7
|
import TabNav from '../../components/uikit-sdk/TabNav/index.js';
|
|
8
8
|
import YourBonds from '../YourBonds/YourBonds.js';
|
|
9
9
|
import SoldOutBuyBondPlaceholder from './SoldOutBuyBondPlaceholder.js';
|
|
@@ -16,10 +16,17 @@ const SingleBond = ({ tokenSymbol }) => {
|
|
|
16
16
|
// State
|
|
17
17
|
const [activeTab, setActiveTab] = useState('Buy Bond');
|
|
18
18
|
// Data
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
const activeBond = bonds?.find((bond) => tokenSymbol?.some((symbol) => bond.earnToken.symbol?.toLowerCase() === symbol.toLowerCase()));
|
|
20
|
+
const soldOutBond = useMemo(() => {
|
|
21
|
+
if (!allBonds)
|
|
22
|
+
return undefined;
|
|
23
|
+
for (const bondsForChain of Object.values(allBonds)) {
|
|
24
|
+
const bond = bondsForChain.find((item) => tokenSymbol?.some((symbol) => item.earnToken.symbol?.toLowerCase() === symbol.toLowerCase()));
|
|
25
|
+
if (bond)
|
|
26
|
+
return bond;
|
|
27
|
+
}
|
|
28
|
+
return undefined;
|
|
29
|
+
}, [allBonds, tokenSymbol]);
|
|
23
30
|
const bondAddress = activeBond?.contractAddress?.[activeBond?.chainId];
|
|
24
31
|
const bondChain = activeBond?.chainId;
|
|
25
32
|
return (jsx(Flex, { sx: { flexDirection: 'column' }, children: jsxs(Flex, { sx: {
|
|
@@ -29,7 +36,7 @@ const SingleBond = ({ tokenSymbol }) => {
|
|
|
29
36
|
borderRadius: 'normal',
|
|
30
37
|
p: '0 20px 20px 20px',
|
|
31
38
|
mx: '10px',
|
|
32
|
-
}, children: activeBond ? (jsx(
|
|
39
|
+
}, children: activeBond ? (jsx(BuyBond, { bondAddress: bondAddress, bondChain: bondChain })) : soldOutBond && isFetched ? (jsx(SoldOutBuyBondPlaceholder, { bond: soldOutBond })) : isFetched ? (jsx(Flex, { sx: { justifyContent: 'center', width: '100%', pt: '20px' }, children: "No bond" })) : (jsx(Flex, { className: "placeholder-monkey-wrapper", children: jsx(Spinner, { size: 100 }) })) })) : (jsx(YourBonds, { showOnly: tokenSymbol?.[0] }))] }) }));
|
|
33
40
|
};
|
|
34
41
|
|
|
35
42
|
export { SingleBond as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleBond.js","sources":["../../../src/views/SingleBond/SingleBond.tsx"],"sourcesContent":["import React, { useState } from 'react'\nimport Flex from '../../components/uikit-sdk/Flex'\nimport useBondsData from '../../state/bonds/useBondsData'\nimport useBondsList from '../../state/bonds/useBondsList'\nimport BuyBond from '../BuyBond/BuyComponent'\nimport TabNav from '../../components/uikit-sdk/TabNav'\nimport YourBonds from '../YourBonds/YourBonds'\nimport SoldOutBuyBondPlaceholder from './SoldOutBuyBondPlaceholder'\nimport { Spinner } from 'theme-ui'\n\nexport interface SingleBondProps {\n tokenSymbol?: string[]\n}\n\nconst SingleBond: React.FC<SingleBondProps> = ({ tokenSymbol }) => {\n // Data Hooks\n const { data: bonds, isFetched } = useBondsData()\n const { data: allBonds } = useBondsList()\n\n // State\n const [activeTab, setActiveTab] = useState<string>('Buy Bond')\n\n // Data\n const
|
|
1
|
+
{"version":3,"file":"SingleBond.js","sources":["../../../src/views/SingleBond/SingleBond.tsx"],"sourcesContent":["import React, { useMemo, useState } from 'react'\nimport Flex from '../../components/uikit-sdk/Flex'\nimport useBondsData from '../../state/bonds/useBondsData'\nimport useBondsList from '../../state/bonds/useBondsList'\nimport BuyBond from '../BuyBond/BuyComponent'\nimport TabNav from '../../components/uikit-sdk/TabNav'\nimport YourBonds from '../YourBonds/YourBonds'\nimport SoldOutBuyBondPlaceholder from './SoldOutBuyBondPlaceholder'\nimport { Spinner } from 'theme-ui'\n\nexport interface SingleBondProps {\n tokenSymbol?: string[]\n}\n\nconst SingleBond: React.FC<SingleBondProps> = ({ tokenSymbol }) => {\n // Data Hooks\n const { data: bonds, isFetched } = useBondsData()\n const { data: allBonds } = useBondsList()\n\n // State\n const [activeTab, setActiveTab] = useState<string>('Buy Bond')\n\n // Data\n const activeBond = bonds?.find((bond) =>\n tokenSymbol?.some((symbol) => bond.earnToken.symbol?.toLowerCase() === symbol.toLowerCase()),\n )\n const soldOutBond = useMemo(() => {\n if (!allBonds) return undefined\n\n for (const bondsForChain of Object.values(allBonds)) {\n const bond = bondsForChain.find((item) =>\n tokenSymbol?.some((symbol) => item.earnToken.symbol?.toLowerCase() === symbol.toLowerCase()),\n )\n\n if (bond) return bond\n }\n\n return undefined\n }, [allBonds, tokenSymbol])\n\n const bondAddress = activeBond?.contractAddress?.[activeBond?.chainId]\n const bondChain = activeBond?.chainId\n\n return (\n <Flex sx={{ flexDirection: 'column' }}>\n <Flex\n sx={{\n flexDirection: 'column',\n }}\n >\n <Flex sx={{ width: '100%', justifyContent: 'center', mb: '15px' }}>\n <TabNav\n activeTab={activeTab}\n tabOptions={['Buy Bond', 'Your Bonds']}\n onChangeActiveTab={(newValue: string) => setActiveTab(newValue)}\n />\n </Flex>\n {activeTab === 'Buy Bond' ? (\n <Flex\n sx={{\n background: activeTab === 'Buy Bond' && 'white2',\n borderRadius: 'normal',\n p: '0 20px 20px 20px',\n mx: '10px',\n }}\n >\n {activeBond ? (\n <BuyBond bondAddress={bondAddress} bondChain={bondChain} />\n ) : soldOutBond && isFetched ? (\n <SoldOutBuyBondPlaceholder bond={soldOutBond} />\n ) : isFetched ? (\n <Flex sx={{ justifyContent: 'center', width: '100%', pt: '20px' }}>No bond</Flex>\n ) : (\n <Flex className=\"placeholder-monkey-wrapper\">\n <Spinner size={100} />\n </Flex>\n )}\n </Flex>\n ) : (\n <YourBonds showOnly={tokenSymbol?.[0]} />\n )}\n </Flex>\n </Flex>\n )\n}\n\nexport default SingleBond\n"],"names":["_jsx","_jsxs"],"mappings":"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"}
|
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": "6.1
|
|
6
|
+
"version": "6.2.1",
|
|
7
7
|
"module": "dist/main.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"types": "dist/main.d.ts",
|
|
@@ -112,8 +112,8 @@
|
|
|
112
112
|
"@solana/web3.js": "^1.98.4",
|
|
113
113
|
"@tanstack/react-query": "^5.90.2",
|
|
114
114
|
"axios": "^1.8.2",
|
|
115
|
-
"react": ">=17
|
|
116
|
-
"react-dom": ">=17
|
|
115
|
+
"react": ">=17",
|
|
116
|
+
"react-dom": ">=17",
|
|
117
117
|
"wagmi": "^2.14.16"
|
|
118
118
|
},
|
|
119
119
|
"dependencies": {
|
|
@@ -132,6 +132,8 @@
|
|
|
132
132
|
"theme-ui": "0.17.2"
|
|
133
133
|
},
|
|
134
134
|
"devDependencies": {
|
|
135
|
+
"react": "19.2.8",
|
|
136
|
+
"react-dom": "19.2.8",
|
|
135
137
|
"@eslint/js": "9.39.4",
|
|
136
138
|
"@rainbow-me/rainbowkit": "2.2.10",
|
|
137
139
|
"@rollup/plugin-commonjs": "25.0.8",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BillsConfig, ChainId, PreTGEConfig, Token } from '@ape.swap/apeswap-lists';
|
|
2
|
-
import { UseQueryResult } from '@tanstack/react-query';
|
|
3
|
-
export type TokenList = Record<ChainId, Record<string, Token>>;
|
|
4
|
-
export default function useTokenList(): UseQueryResult<TokenList>;
|
|
5
|
-
export declare const getTokenList: (chains: number[], apiUrl: string, bondList: BillsConfig[], preTGEList: PreTGEConfig[]) => TokenList;
|