@ape.swap/bonds-sdk 1.0.55 → 1.0.57
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.
|
@@ -131,9 +131,9 @@ var Bonds = function (_a) {
|
|
|
131
131
|
return b.discount - a.discount;
|
|
132
132
|
}
|
|
133
133
|
});
|
|
134
|
-
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" })] })), sortedBonds.map(function (bond) {
|
|
134
|
+
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", sx: styles.tableContainer }, { children: [_jsxs(Flex, __assign({ className: "container header-container", sx: styles.headerContainer }, { 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" })] })), sortedBonds.map(function (bond) {
|
|
135
135
|
var _a, _b, _c;
|
|
136
|
-
return (_jsxs(Flex, __assign({ className: "container bondrow-container" }, { children: [_jsx(Flex, __assign({ className: "column column-token", sx: styles.columnToken }, { children: bond.showcaseTokenName })), _jsx(Flex, __assign({ className: "column column-discount", sx: getColumnDiscountStyle((_a = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _a !== void 0 ? _a : 0) }, { children: "".concat((_b = bond === null || bond === void 0 ? void 0 : bond.discount) === null || _b === void 0 ? void 0 : _b.toFixed(2), "%") })), _jsx(Flex, __assign({ className: "column column-arr", sx: styles.columnArr }, { children: "".concat("".concat(((((_c = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _c !== void 0 ? _c : 0) * 365) / vestingTime(bond.vestingTerm).days).toFixed(2), "%")) })), _jsx(Flex, __assign({ className: "column column-term", sx: styles.columnTerm }, { children: vestingTime(bond.vestingTerm).days ? "".concat(vestingTime(bond.vestingTerm).days, " D") : '-' })), _jsx(Flex, __assign({ className: "column column-tokensremaining", sx: styles.columnTokensRemaining }, { children: bond.tokensRemaining.split('.')[0] })), _jsx(Flex, { className: "column column-hotbond", sx: styles.hotBond })] })));
|
|
136
|
+
return (_jsxs(Flex, __assign({ className: "container bondrow-container", sx: styles.bondrowContainer }, { children: [_jsx(Flex, __assign({ className: "column column-token", sx: styles.columnToken }, { children: bond.showcaseTokenName })), _jsx(Flex, __assign({ className: "column column-discount", sx: getColumnDiscountStyle((_a = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _a !== void 0 ? _a : 0) }, { children: "".concat((_b = bond === null || bond === void 0 ? void 0 : bond.discount) === null || _b === void 0 ? void 0 : _b.toFixed(2), "%") })), _jsx(Flex, __assign({ className: "column column-arr", sx: styles.columnArr }, { children: "".concat("".concat(((((_c = bond === null || bond === void 0 ? void 0 : bond.discount) !== null && _c !== void 0 ? _c : 0) * 365) / vestingTime(bond.vestingTerm).days).toFixed(2), "%")) })), _jsx(Flex, __assign({ className: "column column-term", sx: styles.columnTerm }, { children: vestingTime(bond.vestingTerm).days ? "".concat(vestingTime(bond.vestingTerm).days, " D") : '-' })), _jsx(Flex, __assign({ className: "column column-tokensremaining", sx: styles.columnTokensRemaining }, { children: bond.tokensRemaining.split('.')[0] })), _jsx(Flex, { className: "column column-hotbond", sx: styles.hotBond })] })));
|
|
137
137
|
})] }))] })));
|
|
138
138
|
};
|
|
139
139
|
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.
|
|
6
|
+
"version": "1.0.57",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.es.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
@@ -11,11 +11,9 @@
|
|
|
11
11
|
"dist"
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
|
-
"build": "
|
|
14
|
+
"build": "tsc",
|
|
15
15
|
"prepublishOnly": "npm run build",
|
|
16
|
-
"start": "react-scripts start"
|
|
17
|
-
"clean": "rimraf dist/",
|
|
18
|
-
"copy": "copyfiles -u 1 ./src/**/*.scss ./dist/styles"
|
|
16
|
+
"start": "react-scripts start"
|
|
19
17
|
},
|
|
20
18
|
"peerDependencies": {
|
|
21
19
|
"axios": "^1.7.2",
|
|
@@ -28,20 +26,8 @@
|
|
|
28
26
|
"@ape.swap/apeswap-lists": "^2.0.9",
|
|
29
27
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
30
28
|
"@babel/plugin-transform-private-property-in-object": "^7.24.7",
|
|
31
|
-
"@types/crypto-js": "^4.1.1",
|
|
32
|
-
"@types/d3": "^7.4.0",
|
|
33
|
-
"@types/dom-to-image": "2.6.4",
|
|
34
|
-
"@types/dompurify": "^3.0.5",
|
|
35
|
-
"@types/jest": "^29.2.5",
|
|
36
|
-
"@types/lodash": "^4.14.191",
|
|
37
|
-
"@types/qs": "^6.9.7",
|
|
38
29
|
"@types/react": "^17.0.0 || ^18.0.0",
|
|
39
|
-
"@types/react-datepicker": "6.0.3",
|
|
40
30
|
"@types/react-dom": "^17.0.0 || ^18.0.0",
|
|
41
|
-
"@types/react-helmet": "^6.1.6",
|
|
42
|
-
"@types/react-mailchimp-subscribe": "^2.1.1",
|
|
43
|
-
"@types/react-window": "^1.8.5",
|
|
44
|
-
"@types/uuid": "^9.0.1",
|
|
45
31
|
"@web3-react/coinbase-wallet": "^8.2.0",
|
|
46
32
|
"@web3-react/core": "^8.2.0",
|
|
47
33
|
"@web3-react/eip1193": "^8.2.0",
|
|
@@ -53,25 +39,13 @@
|
|
|
53
39
|
"@web3-react/url": "^8.2.0",
|
|
54
40
|
"@web3-react/walletconnect-v2": "^8.3.3",
|
|
55
41
|
"axios": "^1.7.2",
|
|
56
|
-
"copyfiles": "^2.4.1",
|
|
57
|
-
"css-loader": "^7.1.2",
|
|
58
42
|
"ethers": "5.7.2",
|
|
59
|
-
"node-sass": "^7.0.3",
|
|
60
|
-
"react-redux": "^8.0.5",
|
|
61
|
-
"react-scripts": "^5.0.1",
|
|
62
|
-
"react-svg": "^16.1.10",
|
|
63
43
|
"sass": "^1.77.7",
|
|
64
44
|
"theme-ui": "^0.16.2",
|
|
65
45
|
"typescript": "^4.0.0"
|
|
66
46
|
},
|
|
67
47
|
"dependencies": {
|
|
68
|
-
"@types/node": "18.11.19",
|
|
69
|
-
"@types/react": "18.0.27",
|
|
70
|
-
"@types/react-dom": "18.0.10",
|
|
71
|
-
"@types/theme-ui": "^0.6.0",
|
|
72
|
-
"react-redux": "^8.0.5",
|
|
73
48
|
"react-scripts": "^5.0.1",
|
|
74
|
-
"react-svg": "^16.1.10",
|
|
75
49
|
"sass": "^1.77.7",
|
|
76
50
|
"theme-ui": "^0.16.2"
|
|
77
51
|
},
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.container.table-container {
|
|
3
|
-
width: 100%;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
padding: 50px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.container.header-container {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-around;
|
|
12
|
-
padding: 5px;
|
|
13
|
-
font-size: 12px;
|
|
14
|
-
color: #78787D;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.container.bondrow-container {
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: row;
|
|
20
|
-
width: 100%;
|
|
21
|
-
justify-content: space-around;
|
|
22
|
-
background-color:#151320;
|
|
23
|
-
margin-bottom: 10px;
|
|
24
|
-
padding: 20px;
|
|
25
|
-
border-radius: 10px;
|
|
26
|
-
border: 1px solid #4B4B53
|
|
27
|
-
}
|