@ape.swap/bonds-sdk 1.0.78-2.test.10 → 1.0.78-2.test.12
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/components/BondMenu/BondMenu.d.ts +1 -0
- package/dist/components/BondMenu/BondMenu.js +1 -0
- package/dist/components/BondRows/BondRow.d.ts +1 -0
- package/dist/components/BondRows/BondRow.js +1 -0
- package/dist/components/BondRows/BondRowHeader.d.ts +1 -0
- package/dist/components/BondRows/BondRowHeader.js +1 -0
- package/dist/components/BondRows/BondRowsByChain.d.ts +1 -0
- package/dist/components/BondRows/BondRowsByChain.js +1 -0
- package/dist/components/BondRows/BondRowsWithTitle.d.ts +1 -0
- package/dist/components/BondRows/BondRowsWithTitle.js +1 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +1 -0
- package/dist/components/ProgressBar/ProgressBar.js +1 -0
- package/dist/components/TokenInfoAndName/index.d.ts +1 -0
- package/dist/components/TokenInfoAndName/index.js +5 -26
- package/dist/scss/BondMenu.scss +29 -0
- package/dist/scss/BondModal.scss +409 -0
- package/dist/scss/BondRow.scss +98 -0
- package/dist/scss/BondRowHeader.scss +124 -0
- package/dist/scss/BondRowsByChain.scss +5 -0
- package/dist/scss/BondRowsWithTitle.scss +4 -0
- package/dist/scss/Bonds.scss +17 -0
- package/dist/scss/ProgressBar.scss +13 -0
- package/dist/scss/TokenInfoName.scss +45 -0
- package/dist/scss/YourBonds.scss +198 -0
- package/dist/scss/YourBondsModal.scss +314 -0
- package/dist/views/BondModal/BondModal.d.ts +1 -0
- package/dist/views/BondModal/BondModal.js +1 -0
- package/dist/views/Bonds/Bonds.d.ts +1 -0
- package/dist/views/Bonds/Bonds.js +3 -2
- package/dist/views/YourBonds/YourBonds.d.ts +1 -0
- package/dist/views/YourBonds/YourBonds.js +1 -0
- package/dist/views/YourBondsModal/YourBondsModal.d.ts +1 -0
- package/dist/views/YourBondsModal/YourBondsModal.js +1 -0
- package/package.json +4 -5
|
@@ -52,6 +52,7 @@ import BOND_ABI from '../../config/abi/bond.json';
|
|
|
52
52
|
import ERC_20_ABI from '../../config/abi/erc20.json';
|
|
53
53
|
import { NETWORK_ICONS, NETWORK_LABEL } from '../../config/constants/chains';
|
|
54
54
|
import { formatUSDNumber, getPremiumColor, premium, youGet, youGetUSD, youSpend, youSpendUSD } from './helper';
|
|
55
|
+
import '../../scss/BondModal.scss';
|
|
55
56
|
import { useChainId, useSwitchChain, useWaitForTransactionReceipt, useWriteContract } from "wagmi";
|
|
56
57
|
import { PUBLIC_RPC_URLS } from "../../config/constants/networks";
|
|
57
58
|
import useModal from "../../hooks/useModal";
|
|
@@ -16,6 +16,7 @@ import getTimePeriods from '../../utils/getTimePeriods';
|
|
|
16
16
|
import { defaultTheme } from '../../theme';
|
|
17
17
|
import { BigNumber } from 'bignumber.js';
|
|
18
18
|
import { ChainId } from '../../enum/apeswaplists';
|
|
19
|
+
import '../../scss/Bonds.scss';
|
|
19
20
|
import BondRowHeader from '../../components/BondRows/BondRowHeader';
|
|
20
21
|
import BondRowsByChain from '../../components/BondRows/BondRowsByChain';
|
|
21
22
|
import { useTopTags } from '../../hooks/useTopThreeTags';
|
|
@@ -167,7 +168,7 @@ var Bonds = function (_a) {
|
|
|
167
168
|
setBondsRendered(true);
|
|
168
169
|
}
|
|
169
170
|
}, [billstoRender]);
|
|
170
|
-
return (
|
|
171
|
-
|
|
171
|
+
return (_jsx(ThemeUIProvider, { theme: defaultTheme, children: !bondsRendered ? (_jsxs(Flex, { className: "bonds-spinner", children: [" ", _jsx(Spinner, { size: 100 }), " "] }))
|
|
172
|
+
: (_jsxs(Flex, { className: "bonds-container table-container", children: [_jsx(BondRowHeader, { inputValue: inputValue, setChainFilterOption: setChainFilterOption, chainFilterOption: chainFilterOption !== null && chainFilterOption !== void 0 ? chainFilterOption : ['All Chains'], filterOptions: filterOptions, filterOption: filterOption, setFilterOption: handleChangeFilterOption, onInputChange: handleInputChange, onHandleQueryChange: setInputValue, onSort: handleSort }), _jsx(BondRowsByChain, { chains: chains, bonds: billstoRender, hotBonds: hotBonds, hideTitles: inputValue !== '' })] })) }));
|
|
172
173
|
};
|
|
173
174
|
export default Bonds;
|
|
@@ -49,6 +49,7 @@ import { useEffect, useState } from 'react';
|
|
|
49
49
|
import { Flex, Spinner, ThemeUIProvider } from 'theme-ui';
|
|
50
50
|
import getTimePeriods from '../../utils/getTimePeriods';
|
|
51
51
|
import { defaultTheme } from '../../theme';
|
|
52
|
+
import '../../scss/YourBonds.scss';
|
|
52
53
|
import { BigNumber } from 'bignumber.js';
|
|
53
54
|
import { Text, Button, Svg } from '../../components/uikit-sdk';
|
|
54
55
|
import { MAINNET_CHAINS, NETWORK_LABEL } from '../../config/constants/chains';
|
|
@@ -49,6 +49,7 @@ import { UserBillTooltipText } from '../../enum/tooltips';
|
|
|
49
49
|
import { getPendingVesting } from '../../hooks/usePendingVesting';
|
|
50
50
|
import { formatNumberSI } from '../../utils/formatNumber';
|
|
51
51
|
import { StyledHeadingText, TraitsContentContainer } from './styles';
|
|
52
|
+
import '../../scss/YourBondsModal.scss';
|
|
52
53
|
import { useChainId, useSwitchChain, useWaitForTransactionReceipt, useWriteContract } from 'wagmi';
|
|
53
54
|
import BOND_ABI from '../../config/abi/bond.json';
|
|
54
55
|
var YourBondsModal = function (_a) {
|
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": "1.0.
|
|
6
|
+
"version": "1.0.78-2.test.12",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.es.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -12,9 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
14
|
"prepublishOnly": "npm run build",
|
|
15
|
-
"build": "npm run
|
|
16
|
-
"build:ts": "npm run clean && tsc",
|
|
17
|
-
"build:scss": "sass src/styles.scss dist/styles.css --no-source-map --style=compressed",
|
|
15
|
+
"build": "npm run clean && tsc && npm run copy",
|
|
18
16
|
"dev": "vite",
|
|
19
17
|
"lint": "eslint",
|
|
20
18
|
"start": "react-scripts start",
|
|
@@ -95,5 +93,6 @@
|
|
|
95
93
|
"last 1 firefox version",
|
|
96
94
|
"last 1 safari version"
|
|
97
95
|
]
|
|
98
|
-
}
|
|
96
|
+
},
|
|
97
|
+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
99
98
|
}
|