@ape.swap/bonds-sdk 1.0.453 → 1.0.454

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.
Files changed (25) hide show
  1. package/dist/components/{Bonds/BondRows → BondRows}/BondRow.d.ts +1 -1
  2. package/dist/components/{Bonds/BondRows → BondRows}/BondRow.js +9 -9
  3. package/dist/components/{Bonds/BondRows → BondRows}/BondRowHeader.js +3 -3
  4. package/dist/components/{Bonds/BondRows → BondRows}/BondRowsByChain.d.ts +1 -1
  5. package/dist/components/{Bonds/BondRows → BondRows}/BondRowsByChain.js +3 -2
  6. package/dist/components/{Bonds/BondRows → BondRows}/BondRowsWithTitle.d.ts +1 -1
  7. package/dist/components/{Bonds/BondRows → BondRows}/BondRowsWithTitle.js +1 -1
  8. package/dist/components/{Bonds/BondRows → BondRows}/ChainTitle.js +2 -2
  9. package/dist/components/YourBondsModal/YourBondsModal.js +1 -1
  10. package/dist/index.d.ts +3 -3
  11. package/dist/index.js +3 -3
  12. package/dist/{components → pages}/BondSingle/BondSingle.js +2 -2
  13. package/dist/{components → pages}/Bonds/Bonds.js +3 -3
  14. package/dist/{components → pages}/YourBonds/YourBonds.js +3 -3
  15. package/dist/scss/BondRowHeader.scss +1 -1
  16. package/package.json +1 -1
  17. /package/dist/components/{Bonds/BondRows → BondRows}/BondRowHeader.d.ts +0 -0
  18. /package/dist/components/{Bonds/BondRows → BondRows}/ChainTitle.d.ts +0 -0
  19. /package/dist/{components → pages}/BondSingle/BondSingle.d.ts +0 -0
  20. /package/dist/{components → pages}/Bonds/Bonds.d.ts +0 -0
  21. /package/dist/{components → pages}/YourBonds/YourBonds.d.ts +0 -0
  22. /package/dist/{components → pages}/YourBonds/fetchBillsUser.d.ts +0 -0
  23. /package/dist/{components → pages}/YourBonds/fetchBillsUser.js +0 -0
  24. /package/dist/{components → pages}/YourBonds/getBillNftData.d.ts +0 -0
  25. /package/dist/{components → pages}/YourBonds/getBillNftData.js +0 -0
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BondsDataResponse } from "../../../types/bonds";
2
+ import { BondsDataResponse } from "../../types/bonds";
3
3
  import '../../../scss/BondRow.scss';
4
4
  interface BondRowProps {
5
5
  key: string;
@@ -11,15 +11,15 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
13
13
  import BigNumber from "bignumber.js";
14
- import { ChainId } from "../../../enum/apeswaplists";
15
- import ProgressBar from "../../ProgressBar/ProgressBar";
16
- import ProgressBarWrapper from "../../ProgressBar/ProgressBarWrapper";
17
- import TokenInfoAndName from "../../TokenInfoAndName";
18
- import Tooltip from "../../Tooltip/Tooltip";
19
- import { Flex, Svg, TooltipBubble } from "../../uikit-sdk";
20
- import { formatDollar, formatValue } from "../../../utils/formatNumbers";
21
- import getTimePeriods from "../../../utils/getTimePeriods";
22
- import { BLOCK_EXPLORER } from "../../../config/constants/chains";
14
+ import { ChainId } from "../../enum/apeswaplists";
15
+ import ProgressBar from "../ProgressBar/ProgressBar";
16
+ import ProgressBarWrapper from "../ProgressBar/ProgressBarWrapper";
17
+ import TokenInfoAndName from "../TokenInfoAndName";
18
+ import Tooltip from "../Tooltip/Tooltip";
19
+ import { Flex, Svg, TooltipBubble } from "../uikit-sdk";
20
+ import { formatDollar, formatValue } from "../../utils/formatNumbers";
21
+ import getTimePeriods from "../../utils/getTimePeriods";
22
+ import { BLOCK_EXPLORER } from "../../config/constants/chains";
23
23
  import { useState } from "react";
24
24
  import { useNavigate } from "react-router-dom";
25
25
  import '../../../scss/BondRow.scss';
@@ -11,9 +11,9 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
13
13
  import { Flex } from 'theme-ui';
14
- import { Input } from '../../uikit-sdk/Input';
15
- import { Svg, TooltipBubble } from '../../uikit-sdk';
16
- import { TooltipText } from '../../../enum/tooltips';
14
+ import { Input } from '../uikit-sdk/Input';
15
+ import { Svg, TooltipBubble } from '../uikit-sdk';
16
+ import { TooltipText } from '../../enum/tooltips';
17
17
  import '../../../scss/BondRowHeader.scss';
18
18
  var BondRowHeader = function (_a) {
19
19
  var inputValue = _a.inputValue, onInputChange = _a.onInputChange, onSort = _a.onSort;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { BondsDataResponse } from '../../../types/bonds';
2
+ import { BondsDataResponse } from '../../types/bonds';
3
3
  declare const BondRowsByChain: ({ bonds, hotBonds, rowClick }: {
4
4
  bonds: BondsDataResponse[];
5
5
  hotBonds?: string[] | undefined;
@@ -10,9 +10,10 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
13
- import { Flex } from '../../uikit-sdk';
14
- import { ChainId, MAINNET_CHAINS } from '../../../config/constants/chains';
15
13
  import BondRowsWithTitle from './BondRowsWithTitle';
14
+ import { ChainId } from '../../enum/apeswaplists';
15
+ import { Flex } from '../uikit-sdk';
16
+ import { MAINNET_CHAINS } from '../../config/constants/chains';
16
17
  var BondRowsByChain = function (_a) {
17
18
  var bonds = _a.bonds, hotBonds = _a.hotBonds, rowClick = _a.rowClick;
18
19
  return (_jsxs(Flex, __assign({ sx: { width: '100%', flexDirection: 'column', mt: '5px' } }, { children: [[ChainId.MAINNET].map(function (chain, index) {
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BondsDataResponse } from "../../../types/bonds";
2
+ import { BondsDataResponse } from "../../types/bonds";
3
3
  declare const BondRowsWithTitle: ({ chain, bonds, hotBonds, rowClick, }: {
4
4
  chain: number;
5
5
  bonds: BondsDataResponse[];
@@ -10,11 +10,11 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
13
- import { Flex } from "../../uikit-sdk";
14
13
  import { AnimatePresence, motion } from "framer-motion";
15
14
  import ChainTitle from "./ChainTitle";
16
15
  import BondRow from "./BondRow";
17
16
  import { useState } from "react";
17
+ import { Flex } from "../uikit-sdk";
18
18
  var BondRowsWithTitle = function (_a) {
19
19
  var chain = _a.chain, bonds = _a.bonds, hotBonds = _a.hotBonds, rowClick = _a.rowClick;
20
20
  var billsFilteredByChain = bonds.filter(function (bill) { return bill.chainId === chain; });
@@ -10,8 +10,8 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "theme-ui/jsx-runtime";
13
- import { NETWORK_LABEL } from '../../../config/constants/chains';
14
- import { Flex, Svg } from '../../uikit-sdk';
13
+ import { Flex, Svg } from '../uikit-sdk';
14
+ import { NETWORK_LABEL } from '../../config/constants/chains';
15
15
  var ChainTitle = function (_a) {
16
16
  var chain = _a.chain, pt = _a.pt, isOpen = _a.isOpen;
17
17
  return (_jsxs(Flex, __assign({ sx: {
@@ -62,9 +62,9 @@ import { getBalanceNumber } from '../../utils/getBalanceNumber';
62
62
  import { MAINNET_CHAINS, NETWORK_ICONS } from '../../config/constants/chains';
63
63
  import { getPendingVesting } from '../../hooks/usePendingVesting';
64
64
  import { formatNumberSI } from '../../utils/formatNumber';
65
- import { fetchUserOwnedBillsDataAsync } from '../YourBonds/fetchBillsUser';
66
65
  import { StyledHeadingText, TraitsContentContainer } from './styles';
67
66
  import { AnimatePresence, motion } from 'framer-motion';
67
+ import { fetchUserOwnedBillsDataAsync } from '../../pages/YourBonds/fetchBillsUser';
68
68
  var YourBondsModal = function (_a) {
69
69
  var isOpen = _a.isOpen, onClose = _a.onClose, bondAddress = _a.bondAddress;
70
70
  if (!isOpen)
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import Bonds from './components/Bonds/Bonds';
2
- import BondSingle from './components/BondSingle/BondSingle';
1
+ import Bonds from './pages/Bonds/Bonds';
2
+ import BondSingle from './pages/BondSingle/BondSingle';
3
+ import YourBonds from './pages/YourBonds/YourBonds';
3
4
  import BondModal from './components/BondModal/BondModal';
4
- import YourBonds from './components/YourBonds/YourBonds';
5
5
  import YourBondsModal from './components/YourBondsModal/YourBondsModal';
6
6
  export { Bonds, BondSingle, BondModal, YourBonds, YourBondsModal };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/index.ts
2
- import Bonds from './components/Bonds/Bonds';
3
- import BondSingle from './components/BondSingle/BondSingle';
2
+ import Bonds from './pages/Bonds/Bonds';
3
+ import BondSingle from './pages/BondSingle/BondSingle';
4
+ import YourBonds from './pages/YourBonds/YourBonds';
4
5
  import BondModal from './components/BondModal/BondModal';
5
- import YourBonds from './components/YourBonds/YourBonds';
6
6
  import YourBondsModal from './components/YourBondsModal/YourBondsModal';
7
7
  export { Bonds, BondSingle, BondModal, YourBonds, YourBondsModal };
@@ -22,10 +22,10 @@ import { BigNumber } from 'bignumber.js';
22
22
  import { getFirstNonZeroDigits } from '../../utils/roundNumber';
23
23
  import { useParams } from 'react-router-dom';
24
24
  import { isNumber } from '../../utils/numbers';
25
- import { Button, ListTag, Svg, TooltipBubble } from '../uikit-sdk';
25
+ import { Button, ListTag, Svg, TooltipBubble } from '../../components/uikit-sdk';
26
26
  import { TooltipText } from '../../enum/tooltips';
27
27
  import { formatNumberSI } from '../../utils/formatNumber';
28
- import TokenImage from '../uikit-sdk/TokenImage';
28
+ import TokenImage from '../../components/uikit-sdk/TokenImage';
29
29
  var BondSingle = function (_a) {
30
30
  var billAddress = useParams().billAddress;
31
31
  var _b = useWeb3React(), account = _b.account, isActive = _b.isActive;
@@ -68,9 +68,9 @@ import { BigNumber } from 'bignumber.js';
68
68
  import { ChainId } from '../../enum/apeswaplists';
69
69
  import { formatValue } from '../../utils/formatNumbers';
70
70
  import { BLOCK_EXPLORER } from '../../config/constants/chains';
71
- import BondRowsByChain from './BondRows/BondRowsByChain';
72
71
  import '../../scss/Bonds.scss';
73
- import BondRowsHeader from './BondRows/BondRowHeader';
72
+ import BondRowHeader from '../../components/BondRows/BondRowHeader';
73
+ import BondRowsByChain from '../../components/BondRows/BondRowsByChain';
74
74
  var Bonds = function (_a) {
75
75
  var connectionString = _a.connectionString;
76
76
  var _b = useWeb3React(), account = _b.account, isActive = _b.isActive;
@@ -267,6 +267,6 @@ var Bonds = function (_a) {
267
267
  setBondsRendered(true);
268
268
  }
269
269
  }, [filteredBonds]);
270
- return (_jsxs(ThemeUIProvider, __assign({ theme: defaultTheme }, { children: [isActive && account && _jsx("p", { children: account }), isActive && account && _jsx("button", __assign({ onClick: handleApprove }, { children: "Approve USDT" })), bondsRendered && (_jsxs(Flex, __assign({ className: "container table-container" }, { children: [_jsx(BondRowsHeader, { inputValue: inputValue, onInputChange: handleInputChange, onSort: handleSort }), _jsx(BondRowsByChain, { bonds: filteredBonds, hotBonds: hotBonds, rowClick: rowClick })] })))] })));
270
+ return (_jsxs(ThemeUIProvider, __assign({ theme: defaultTheme }, { children: [isActive && account && _jsx("p", { children: account }), isActive && account && _jsx("button", __assign({ onClick: handleApprove }, { children: "Approve USDT" })), bondsRendered && (_jsxs(Flex, __assign({ className: "container table-container" }, { children: [_jsx(BondRowHeader, { inputValue: inputValue, onInputChange: handleInputChange, onSort: handleSort }), _jsx(BondRowsByChain, { bonds: filteredBonds, hotBonds: hotBonds, rowClick: rowClick })] })))] })));
271
271
  };
272
272
  export default Bonds;
@@ -65,9 +65,9 @@ import getTimePeriods from '../../utils/getTimePeriods';
65
65
  import { defaultTheme } from '../../theme';
66
66
  import '../../scss/YourBonds.scss';
67
67
  import { BigNumber } from 'bignumber.js';
68
- import { Text, Button, Svg } from '../uikit-sdk';
68
+ import { Text, Button, Svg } from '../../components/uikit-sdk';
69
69
  import { MAINNET_CHAINS } from '../../config/constants/chains';
70
- import TokenInfoAndName from '../TokenInfoAndName';
70
+ import TokenInfoAndName from '../../components/TokenInfoAndName';
71
71
  import { getBalanceNumber } from '../../utils/getBalanceNumber';
72
72
  import { getFirstNonZeroDigits } from '../../utils/roundNumber';
73
73
  import { formatNumberSI } from '../../utils/formatNumber';
@@ -75,7 +75,7 @@ import useCurrentTime from '../../hooks/useTimer';
75
75
  import { getPendingVesting } from '../../hooks/usePendingVesting';
76
76
  import axios from 'axios';
77
77
  import { fetchUserOwnedBillsDataAsync } from './fetchBillsUser';
78
- import { Input } from '../uikit-sdk/Input';
78
+ import { Input } from '../../components/uikit-sdk/Input';
79
79
  var YourBonds = function (_a) {
80
80
  var connectionString = _a.connectionString;
81
81
  var _b = useWeb3React(), account = _b.account, isActive = _b.isActive;
@@ -8,7 +8,7 @@
8
8
  padding-left: 15px;
9
9
  padding-right: 15px;
10
10
  padding-bottom: 5px;
11
- font-size: 12px;
11
+ font-size: 11px;
12
12
  color: #73728E;
13
13
  }
14
14
 
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.453",
6
+ "version": "1.0.454",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",
File without changes