@ape.swap/bonds-sdk 1.0.747 → 1.0.748

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.
@@ -4,7 +4,6 @@ interface BondRowProps {
4
4
  key: string;
5
5
  bond: BondsDataResponse;
6
6
  hotBonds?: string[];
7
- rowClick: (bond: BondsDataResponse) => void;
8
7
  }
9
8
  declare const BondRow: React.FC<BondRowProps>;
10
9
  export default BondRow;
@@ -26,7 +26,6 @@ var BondRow = function (_a) {
26
26
  window.history.pushState({ path: newUrl }, '', newUrl);
27
27
  setIsModalOpen(true);
28
28
  }
29
- // navigate(`/?bondAddress=${bond.billAddress}&bondChain=${bond.chainId}`, { replace: true });
30
29
  };
31
30
  // Functions for calcuations
32
31
  var vestingTime = function (vestingTerm) {
@@ -1,10 +1,9 @@
1
1
  import { BondsDataResponse } from '../../types/bonds';
2
2
  import '../../scss/BondRowsByChain.scss';
3
- declare const BondRowsByChain: ({ bonds, hotBonds, hideTitles, rowClick, chains }: {
3
+ declare const BondRowsByChain: ({ bonds, hotBonds, hideTitles, chains }: {
4
4
  bonds: BondsDataResponse[];
5
5
  hotBonds?: string[];
6
6
  hideTitles: boolean;
7
- rowClick: (bond: BondsDataResponse) => void;
8
7
  chains?: number[];
9
8
  }) => import("react").JSX.Element;
10
9
  export default BondRowsByChain;
@@ -4,10 +4,10 @@ import { MAINNET_CHAINS } from '../../config/constants/chains';
4
4
  import '../../scss/BondRowsByChain.scss';
5
5
  import { Flex } from 'theme-ui';
6
6
  var BondRowsByChain = function (_a) {
7
- var bonds = _a.bonds, hotBonds = _a.hotBonds, hideTitles = _a.hideTitles, rowClick = _a.rowClick, chains = _a.chains;
7
+ var bonds = _a.bonds, hotBonds = _a.hotBonds, hideTitles = _a.hideTitles, chains = _a.chains;
8
8
  return (_jsx(Flex, { className: "bondrowsbychain", children: (MAINNET_CHAINS.map(function (chain, index) {
9
9
  return ((!chains || chains.length === 0 || chains.includes(chain)) &&
10
- _jsx(BondRowsWithTitle, { chain: chain, bonds: bonds, hotBonds: hotBonds, hideTitles: hideTitles, rowClick: rowClick }, chain));
10
+ _jsx(BondRowsWithTitle, { chain: chain, bonds: bonds, hotBonds: hotBonds, hideTitles: hideTitles }, chain));
11
11
  })) }));
12
12
  };
13
13
  export default BondRowsByChain;
@@ -1,10 +1,9 @@
1
1
  import { BondsDataResponse } from "../../types/bonds";
2
2
  import '../../scss/BondRowsWithTitle.scss';
3
- declare const BondRowsWithTitle: ({ chain, bonds, hotBonds, hideTitles, rowClick, }: {
3
+ declare const BondRowsWithTitle: ({ chain, bonds, hotBonds, hideTitles }: {
4
4
  chain: number;
5
5
  bonds: BondsDataResponse[];
6
6
  hotBonds?: string[];
7
7
  hideTitles: boolean;
8
- rowClick: (bond: BondsDataResponse) => void;
9
8
  }) => import("react").JSX.Element;
10
9
  export default BondRowsWithTitle;
@@ -6,7 +6,7 @@ import { useState } from "react";
6
6
  import '../../scss/BondRowsWithTitle.scss';
7
7
  import { Flex } from "theme-ui";
8
8
  var BondRowsWithTitle = function (_a) {
9
- var chain = _a.chain, bonds = _a.bonds, hotBonds = _a.hotBonds, hideTitles = _a.hideTitles, rowClick = _a.rowClick;
9
+ var chain = _a.chain, bonds = _a.bonds, hotBonds = _a.hotBonds, hideTitles = _a.hideTitles;
10
10
  var billsFilteredByChain = bonds.filter(function (bill) { return bill.chainId === chain; });
11
11
  var key = chain;
12
12
  var _b = useState(true), isOpen = _b[0], setIsOpen = _b[1];
@@ -15,6 +15,6 @@ var BondRowsWithTitle = function (_a) {
15
15
  overflow: 'hidden',
16
16
  width: '100%',
17
17
  marginTop: '0px',
18
- }, children: billsFilteredByChain === null || billsFilteredByChain === void 0 ? void 0 : billsFilteredByChain.map(function (bill) { return (_jsx(BondRow, { bond: bill, hotBonds: hotBonds, rowClick: rowClick }, bill.billAddress)); }) }, key))] }) }, key));
18
+ }, children: billsFilteredByChain === null || billsFilteredByChain === void 0 ? void 0 : billsFilteredByChain.map(function (bill) { return (_jsx(BondRow, { bond: bill, hotBonds: hotBonds }, bill.billAddress)); }) }, key))] }) }, key));
19
19
  };
20
20
  export default BondRowsWithTitle;
@@ -121,7 +121,6 @@ var Bonds = function (_a) {
121
121
  window.history.pushState({ path: newUrl }, '', newUrl);
122
122
  setIsModalOpen(true);
123
123
  }
124
- // navigate(`/?bondAddress=${bond.billAddress}&bondChain=${bond.chainId}`, { replace: true });
125
124
  };
126
125
  // Functions for calcuations
127
126
  var vestingTime = function (vestingTerm) {
@@ -181,6 +180,6 @@ var Bonds = function (_a) {
181
180
  }
182
181
  }, [billstoRender]);
183
182
  return (_jsx(ThemeUIProvider, { theme: defaultTheme, children: !bondsRendered ? (_jsxs(Flex, { className: "bonds-spinner", children: [" ", _jsx(Spinner, { size: 100 }), " "] }))
184
- : (_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 !== '', rowClick: rowClick })] })) }));
183
+ : (_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 !== '' })] })) }));
185
184
  };
186
185
  export default Bonds;
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.747",
6
+ "version": "1.0.748",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",