@ape.swap/bonds-sdk 1.0.81 → 1.0.82
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.
|
@@ -58,6 +58,7 @@ import { defaultTheme } from '../../theme';
|
|
|
58
58
|
import Svg from '../uikit/Svg';
|
|
59
59
|
import '../../scss/bonds.scss';
|
|
60
60
|
import BondModal from '../BondModal/BondModal';
|
|
61
|
+
import { Button } from '../uikit/Button';
|
|
61
62
|
var Bonds = function (_a) {
|
|
62
63
|
var connectionString = _a.connectionString;
|
|
63
64
|
var _b = useWeb3React(), account = _b.account, isActive = _b.isActive;
|
|
@@ -145,7 +146,7 @@ var Bonds = function (_a) {
|
|
|
145
146
|
setSelectedBond(bond);
|
|
146
147
|
setIsModalOpen(true);
|
|
147
148
|
};
|
|
148
|
-
return (_jsxs(ThemeUIProvider, __assign({ theme: defaultTheme }, { children: [isActive && account && (_jsx("p", { children: account })), isActive && account && (_jsx(
|
|
149
|
+
return (_jsxs(ThemeUIProvider, __assign({ theme: defaultTheme }, { children: [isActive && account && (_jsx("p", { children: account })), isActive && account && (_jsx(Button, __assign({ onClick: handleApprove }, { children: "Approve USDT" }))), _jsxs(Flex, __assign({ className: "container table-container" }, { children: [_jsxs(Flex, __assign({ className: "container header-container" }, { children: [_jsx(Flex, __assign({ className: "column column-header" }, { children: "Tokens" })), _jsx(Flex, __assign({ className: "column column-header" }, { children: "Discount" })), _jsx(Flex, __assign({ className: "column column-header" }, { children: "ARR" })), _jsx(Flex, __assign({ className: "column column-header" }, { children: "Terms" })), _jsx(Flex, __assign({ className: "column column-header" }, { children: "Tokens Remaining" })), _jsx(Flex, { className: "column column-header" })] })), _jsx(BondModal, { isOpen: isModalOpen, onClose: function () { return setIsModalOpen(false); }, bond: selectedBond }), sortedBonds.map(function (bond) {
|
|
149
150
|
var _a, _b, _c, _d;
|
|
150
151
|
return (
|
|
151
152
|
// <Flex className="container bondrow-container" onClick={() => handleRowClick(bond.billAddress)}>
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { ThemeUIStyleObject } from 'theme-ui';
|
|
2
|
-
export declare const StyledTag:
|
|
3
|
+
export declare const StyledTag: import("@emotion/styled").StyledComponent<{
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
7
|
export declare const styles: Record<'listTagCont' | 'tagText', (props: {
|
|
4
8
|
variant?: any;
|
|
5
9
|
}) => ThemeUIStyleObject>;
|
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.82",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.es.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"prepublishOnly": "npm run build",
|
|
15
15
|
"start": "react-scripts start",
|
|
16
|
-
"clean": "rimraf dist/",
|
|
17
|
-
"copy": "copyfiles -u 1 src/**/*.scss dist/",
|
|
16
|
+
"clean": "rimraf dist/",
|
|
17
|
+
"copy": "copyfiles -u 1 src/**/*.scss dist/",
|
|
18
18
|
"build": "npm run clean && tsc && npm run copy"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"axios": "^1.7.2",
|
|
22
22
|
"ethers": "5.7.2",
|
|
23
|
-
"react": "^
|
|
23
|
+
"react": "^18.3.1",
|
|
24
24
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
25
25
|
"theme-ui": "^0.16.2"
|
|
26
26
|
},
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
30
30
|
"@babel/plugin-transform-private-property-in-object": "^7.24.7",
|
|
31
31
|
"@types/lodash": "^4.17.6",
|
|
32
|
-
"@types/react": "^
|
|
33
|
-
"@types/react-dom": "^
|
|
32
|
+
"@types/react": "^18.3.3",
|
|
33
|
+
"@types/react-dom": "^18.3.0",
|
|
34
34
|
"@web3-react/coinbase-wallet": "^8.2.0",
|
|
35
35
|
"@web3-react/core": "^8.2.0",
|
|
36
36
|
"@web3-react/eip1193": "^8.2.0",
|
|
@@ -49,14 +49,21 @@
|
|
|
49
49
|
"typescript": "^4.0.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
+
"@emotion/react": "^11.11.4",
|
|
53
|
+
"@emotion/styled": "^11.11.5",
|
|
54
|
+
"@types/node": "^20.14.10",
|
|
52
55
|
"framer-motion": "^11.3.2",
|
|
53
56
|
"lodash": "^4.17.21",
|
|
54
57
|
"lottie-react": "^2.4.0",
|
|
55
58
|
"next": "^14.2.5",
|
|
56
59
|
"numbro": "^2.5.0",
|
|
60
|
+
"react-redux": "^9.1.2",
|
|
61
|
+
"react-router-dom": "^6.24.1",
|
|
57
62
|
"react-scripts": "^5.0.1",
|
|
63
|
+
"react-svg": "^16.1.34",
|
|
58
64
|
"rimraf": "^6.0.1",
|
|
59
65
|
"sass": "^1.77.7",
|
|
66
|
+
"swiper": "^11.1.4",
|
|
60
67
|
"theme-ui": "^0.16.2"
|
|
61
68
|
},
|
|
62
69
|
"browserslist": {
|