tek-wallet 0.0.153 → 0.0.155
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/ui/DepositFunction/index.js +15 -71
- package/dist/components/ui/QRCode/index.js +2 -16
- package/dist/components/ui/TokenSelection/index.js +1 -1
- package/dist/components/views/CreateWalletView/index.js +0 -1
- package/dist/handlers/auth/create/index.js +9 -10
- package/dist/hooks/useDepositData.d.ts +3 -0
- package/dist/hooks/useDepositData.js +16 -0
- package/dist/hooks/useWallet.js +17 -4
- package/dist/providers/DepositProvider/index.d.ts +8 -0
- package/dist/providers/DepositProvider/index.js +125 -0
- package/dist/providers/TekWalletProvider/index.js +2 -1
- package/dist/providers/WalletDataProvider/index.js +1 -3
- package/dist/services/axios/get-config-tokens-list/index.d.ts +7 -2
- package/dist/services/axios/get-config-tokens-list/index.js +9 -8
- package/dist/services/axios/get-deposit-tokens-list/index.d.ts +5 -0
- package/dist/services/axios/get-deposit-tokens-list/index.js +67 -0
- package/dist/types/expose-type.d.ts +53 -2
- package/package.json +1 -1
- package/dist/services/axios/get-config-tokens-list/type.d.ts +0 -1
- package/dist/services/axios/get-config-tokens-list/type.js +0 -2
|
@@ -52,7 +52,7 @@ var DepositFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
52
52
|
var theme = (0, material_1.useTheme)();
|
|
53
53
|
var _a = (0, react_1.useState)(DepositStep.SELECT_TOKEN), currentStep = _a[0], setCurrentStep = _a[1];
|
|
54
54
|
var _b = (0, react_1.useState)(), selectedToken = _b[0], setSelectedToken = _b[1];
|
|
55
|
-
|
|
55
|
+
var _c = (0, react_1.useState)(), selectedNetwork = _c[0], setSelectedNetwork = _c[1];
|
|
56
56
|
var tokens = (0, useWalletData_1.default)().tokens;
|
|
57
57
|
var open = function () {
|
|
58
58
|
var _a;
|
|
@@ -82,15 +82,22 @@ var DepositFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
82
82
|
nextStep();
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
+
var handleSelectNetwork = function (network) {
|
|
86
|
+
console.warn("network", selectedNetwork);
|
|
87
|
+
setSelectedNetwork(network);
|
|
88
|
+
nextStep();
|
|
89
|
+
};
|
|
85
90
|
return ((0, jsx_runtime_1.jsx)(DrawerComponent_1.default, { ref: drawerRef, trigger: props.children, onOpen: props.onOpen, onClose: props.onClose, children: (0, jsx_runtime_1.jsx)(ModalLayout_1.default, { overrideHeader: (0, jsx_runtime_1.jsx)(BackHeader_1.default, { sx: {
|
|
86
91
|
width: "100%",
|
|
87
92
|
paddingBottom: theme.mixins.customPadding.p16,
|
|
88
93
|
display: "flex",
|
|
89
|
-
|
|
94
|
+
alignItems: "center",
|
|
95
|
+
my: theme.mixins.customPadding.p24,
|
|
96
|
+
}, overrideBack: handleBack, hideBack: currentStep === DepositStep.SELECT_TOKEN, center: DEPOSIT_STEP_NAME[currentStep], children: (0, jsx_runtime_1.jsx)(CloseModal_1.default, { sx: { marginLeft: "auto" }, onClick: props.onClose }) }), onClose: close, children: (0, jsx_runtime_1.jsxs)(SwiperControlled_1.default, { ref: swiperRef, swiperProps: { autoHeight: true, spaceBetween: 32 }, children: [(0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12, height: "fit-content" }), children: tokens === null || tokens === void 0 ? void 0 : tokens.map(function (item) {
|
|
90
97
|
var stringifiedTokenData = JSON.stringify(__assign(__assign({}, item), { name: "Fake", fullname: "Fake fullname" }));
|
|
91
98
|
return ((0, jsx_runtime_1.jsx)(TokenSelection_1.default, { onClick: handleSelectToken, tokenData: stringifiedTokenData, active: (selectedToken === null || selectedToken === void 0 ? void 0 : selectedToken.id) != "kf" }, item.id));
|
|
92
99
|
}) }) }, DepositStep.SELECT_TOKEN), (0, jsx_runtime_1.jsx)(react_2.SwiperSlide, { children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g12 }), children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(function (item) {
|
|
93
|
-
return ((0, jsx_runtime_1.jsx)(NetworkSelection_1.default, { networkData: JSON.stringify({
|
|
100
|
+
return ((0, jsx_runtime_1.jsx)(NetworkSelection_1.default, { onClick: handleSelectNetwork, networkData: JSON.stringify({
|
|
94
101
|
name: "network ".concat(item),
|
|
95
102
|
icon: "https://via.placeholder.com/150",
|
|
96
103
|
}) }, item));
|
|
@@ -98,86 +105,23 @@ var DepositFunction = (0, react_1.forwardRef)(function (props, ref) {
|
|
|
98
105
|
display: "flex",
|
|
99
106
|
flexDirection: "column",
|
|
100
107
|
gap: theme.mixins.gaps.g16,
|
|
101
|
-
}, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
102
|
-
width: "100%",
|
|
103
|
-
display: "flex",
|
|
104
|
-
flexDirection: "column",
|
|
105
|
-
gap: "0.75rem",
|
|
106
|
-
backgroundColor: "ui-background-222",
|
|
107
|
-
borderRadius: "0.75rem",
|
|
108
|
-
padding: "1.5rem",
|
|
109
|
-
alignItems: "flex-start",
|
|
110
|
-
}, id: "share-deposit-info", children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
111
|
-
display: "flex",
|
|
112
|
-
flexDirection: "column",
|
|
113
|
-
gap: "0.125rem",
|
|
114
|
-
color: "text.white",
|
|
115
|
-
alignSelf: "center",
|
|
116
|
-
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
117
|
-
fontSize: theme.typography.fontSize12,
|
|
118
|
-
fontWeight: theme.typography.fontWeight500,
|
|
119
|
-
leading: "typography.leading150",
|
|
120
|
-
}, children: "Harry Andrew" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
121
|
-
fontSize: theme.typography.fontSize12,
|
|
122
|
-
fontWeight: theme.typography.fontWeight400,
|
|
123
|
-
leading: "typography.leading150",
|
|
124
|
-
}, children: "@user1234we" })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
108
|
+
}, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({ width: "100%" }, theme.mixins.column), { gap: theme.mixins.gaps.g12, backgroundColor: theme.palette.background.black24, borderRadius: theme.mixins.theBorderRadius.r16, padding: theme.mixins.customPadding.p16, alignItems: "flex-start", backdropFilter: "blur(10px)" }), id: "share-deposit-info", children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g4, color: "text.white", alignSelf: "center" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: "Harry Andrew" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: "@user1234we" })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
125
109
|
width: "fit-content",
|
|
126
110
|
height: "fit-content",
|
|
127
111
|
alignSelf: "center",
|
|
128
112
|
borderRadius: theme.mixins.theBorderRadius.r12,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
flexDirection: "column",
|
|
132
|
-
gap: "0.125rem",
|
|
133
|
-
color: "text.white",
|
|
134
|
-
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
135
|
-
fontSize: theme.typography.fontSize10,
|
|
136
|
-
leading: "typography.leading150",
|
|
137
|
-
}, children: "Network" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
138
|
-
fontSize: theme.typography.fontSize13,
|
|
139
|
-
fontWeight: theme.typography.fontWeight500,
|
|
140
|
-
leading: "typography.leading150",
|
|
141
|
-
}, children: "Ethereum (ERC20)" })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
142
|
-
display: "flex",
|
|
143
|
-
flexDirection: "column",
|
|
144
|
-
gap: "0.125rem",
|
|
145
|
-
color: "text.white",
|
|
146
|
-
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
147
|
-
fontSize: theme.typography.fontSize10,
|
|
148
|
-
leading: "typography.leading150",
|
|
149
|
-
}, children: "Address" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
150
|
-
fontSize: theme.typography.fontSize13,
|
|
151
|
-
fontWeight: theme.typography.fontWeight500,
|
|
152
|
-
leading: "typography.leading150",
|
|
153
|
-
wordBreak: "break-all",
|
|
154
|
-
}, children: "tebfwe78w237dbyuc78wb4b3y8cbwebd8732w9bcubf638uegyg7dt63ged87dxi8w3gdyhf73" })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
155
|
-
display: "flex",
|
|
156
|
-
alignItems: "center",
|
|
157
|
-
gap: "8px",
|
|
158
|
-
backgroundColor: "ui-background-white-16",
|
|
159
|
-
borderRadius: "12px",
|
|
160
|
-
padding: "8px 12px",
|
|
161
|
-
}, children: (0, jsx_runtime_1.jsxs)(Text_1.default, { className: "text-11 text-ui-text-white leading-140", children: ["Deposit min ", (0, jsx_runtime_1.jsx)("strong", { children: "0.001" }), " ETH and select the correct network, ", "or you'll lose your assets."] }) })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
162
|
-
display: "flex",
|
|
163
|
-
alignItems: "center",
|
|
164
|
-
gap: "0.75rem",
|
|
165
|
-
justifyContent: "center",
|
|
166
|
-
}, children: [(0, jsx_runtime_1.jsx)(CopyTextComponent_1.default, { value: "https://reactjs.org/", children: (0, jsx_runtime_1.jsxs)(Button_1.default.Secondary, { className: "gap-1.5 flex items-center", children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
113
|
+
overflow: "hidden",
|
|
114
|
+
}, children: (0, jsx_runtime_1.jsx)(QRCode_1.default, {}) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g4, color: "text.white" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: "Network" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.value), children: "Ethereum (ERC20)" })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g4, color: "text.white" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: "Address" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: __assign(__assign({}, theme.mixins.value), { wordBreak: "break-all" }), children: "tebfwe78w237dbyuc78wb4b3y8cbwebd8732w9bcubf638uegyg7dt63ged87dxi8w3gdyhf73" })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { gap: theme.mixins.gaps.g4, backgroundColor: theme.palette.background.white16, borderRadius: theme.mixins.theBorderRadius.r12, padding: theme.mixins.customPadding.p8 }), children: (0, jsx_runtime_1.jsxs)(Text_1.default, { sx: __assign({}, theme.mixins.valueDescription), children: ["Deposit min ", (0, jsx_runtime_1.jsx)("strong", { children: "0.001" }), " ETH and select the correct network, ", "or you'll lose your assets."] }) })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12, justifyContent: "center" }), children: [(0, jsx_runtime_1.jsx)(CopyTextComponent_1.default, { value: "https://reactjs.org/", children: (0, jsx_runtime_1.jsxs)(Button_1.default.Secondary, { className: "gap-1.5 flex items-center", children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
167
115
|
fontSize: theme.typography.fontSize12,
|
|
168
116
|
fontWeight: theme.typography.fontWeight400,
|
|
169
117
|
leading: "typography.leading150",
|
|
170
118
|
textTransform: "capitalize",
|
|
171
|
-
}, children: "Copy" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("copy"), width: 20 })] }) }), (0, jsx_runtime_1.jsx)(Share_1.default, { elementId: "share-deposit-info", children: (0, jsx_runtime_1.jsxs)(Button_1.default.Secondary, { sx: {
|
|
172
|
-
gap: "0.125rem",
|
|
173
|
-
display: "flex",
|
|
174
|
-
alignItems: "center",
|
|
175
|
-
}, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
119
|
+
}, children: "Copy" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("copy"), width: 20 })] }) }), (0, jsx_runtime_1.jsx)(Share_1.default, { elementId: "share-deposit-info", children: (0, jsx_runtime_1.jsxs)(Button_1.default.Secondary, { sx: __assign({ gap: theme.mixins.gaps.g4 }, theme.mixins.row), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
|
|
176
120
|
fontSize: theme.typography.fontSize12,
|
|
177
121
|
fontWeight: theme.typography.fontWeight400,
|
|
178
122
|
leading: "typography.leading150",
|
|
179
123
|
textTransform: "capitalize",
|
|
180
|
-
}, children: "Share" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("
|
|
124
|
+
}, children: "Share" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("share"), width: 20 })] }) })] })] }) }, DepositStep.SHOW_QR_CODE)] }, tokens === null || tokens === void 0 ? void 0 : tokens.length) }) }));
|
|
181
125
|
});
|
|
182
126
|
DepositFunction.displayName = "DepositFunction";
|
|
183
127
|
exports.default = DepositFunction;
|
|
@@ -4,27 +4,13 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
4
4
|
var qrcode_react_1 = require("qrcode.react");
|
|
5
5
|
// import getIcon from "../../../utils/getIcon";
|
|
6
6
|
function QRCode() {
|
|
7
|
-
return (
|
|
8
|
-
// <QRCodeCanvas
|
|
9
|
-
// className=""
|
|
10
|
-
// value="https://reactjs.org/"
|
|
11
|
-
// size={160}
|
|
12
|
-
// imageSettings={{
|
|
13
|
-
// src: getIcon("eth"),
|
|
14
|
-
// x: undefined,
|
|
15
|
-
// y: undefined,
|
|
16
|
-
// height: 32,
|
|
17
|
-
// width: 32,
|
|
18
|
-
// excavate: true,
|
|
19
|
-
// }}
|
|
20
|
-
// />
|
|
21
|
-
(0, jsx_runtime_1.jsx)(qrcode_react_1.QRCodeCanvas, { value: "https://picturesofpeoplescanningqrcodes.tumblr.com/", title: "Title for my QR Code", size: 128, bgColor: "#ffffff", fgColor: "#000000", level: "H", minVersion: 8, marginSize: 2, imageSettings: {
|
|
7
|
+
return ((0, jsx_runtime_1.jsx)(qrcode_react_1.QRCodeCanvas, { value: "https://picturesofpeoplescanningqrcodes.tumblr.com/", title: "Title for my QR Code", size: 128, bgColor: "#ffffff", fgColor: "#000000", level: "H", minVersion: 8, marginSize: 6, imageSettings: {
|
|
22
8
|
src: "https://static.zpao.com/favicon.png",
|
|
23
9
|
x: undefined,
|
|
24
10
|
y: undefined,
|
|
25
11
|
height: 24,
|
|
26
12
|
width: 24,
|
|
27
|
-
opacity: 1
|
|
13
|
+
opacity: 1,
|
|
28
14
|
excavate: true,
|
|
29
15
|
} }));
|
|
30
16
|
}
|
|
@@ -38,6 +38,6 @@ var TokenSelection = function (props) {
|
|
|
38
38
|
var tokenData = (0, react_1.useMemo)(function () { return (0, parsePropsData_1.default)(tokenDataString); }, [tokenDataString]);
|
|
39
39
|
return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ onClick: function () { var _a; return (_a = props === null || props === void 0 ? void 0 : props.onClick) === null || _a === void 0 ? void 0 : _a.call(props, tokenData); }, sx: __assign({ backgroundColor: props.active
|
|
40
40
|
? "background.secondary16"
|
|
41
|
-
: "background.white16", border: "1px solid", borderColor: props.active ? "border.secondary" : "transparent", borderRadius: theme.mixins.theBorderRadius.
|
|
41
|
+
: "background.white16", border: "1px solid", borderColor: props.active ? "border.secondary" : "transparent", borderRadius: theme.mixins.theBorderRadius.r16, padding: theme.mixins.customPadding.p12, display: "flex", alignItems: "center", cursor: "pointer" }, sx) }, rest, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.row), { gap: theme.mixins.gaps.g12 }), children: [(0, jsx_runtime_1.jsx)(Icon_1.default, { width: 20 }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({}, theme.mixins.column), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.value, children: tokenData === null || tokenData === void 0 ? void 0 : tokenData.name }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.valueDescription, children: "tokenData.name" })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign(__assign({}, theme.mixins.column), { marginLeft: "auto", alignItems: "end" }), children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.value, children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: 20000 }) }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: theme.mixins.valueDescription, children: (0, jsx_runtime_1.jsx)(Formatter_1.default, { value: 2000 }) })] })] })));
|
|
42
42
|
};
|
|
43
43
|
exports.default = TokenSelection;
|
|
@@ -44,21 +44,20 @@ var server_1 = require("next/server");
|
|
|
44
44
|
var setLoginInfoToCookies_1 = __importDefault(require("../functions/setLoginInfoToCookies"));
|
|
45
45
|
var errorHandler_1 = __importDefault(require("../functions/errorHandler"));
|
|
46
46
|
var createWalletHandler = function (req) { return __awaiter(void 0, void 0, void 0, function () {
|
|
47
|
-
var
|
|
48
|
-
return __generator(this, function (
|
|
49
|
-
switch (
|
|
47
|
+
var passcode, response, tokenInfo, err_1;
|
|
48
|
+
return __generator(this, function (_a) {
|
|
49
|
+
switch (_a.label) {
|
|
50
50
|
case 0:
|
|
51
|
-
|
|
51
|
+
_a.trys.push([0, 5, , 6]);
|
|
52
52
|
console.warn("🚀 ~ createWalletHandler ~ req:", req);
|
|
53
53
|
return [4 /*yield*/, req.json()];
|
|
54
54
|
case 1:
|
|
55
|
-
|
|
55
|
+
passcode = (_a.sent()).passcode;
|
|
56
56
|
return [4 /*yield*/, (0, createWalletExternalService_1.default)({
|
|
57
57
|
passcode: passcode,
|
|
58
|
-
appSlug: appSlug,
|
|
59
58
|
})];
|
|
60
59
|
case 2:
|
|
61
|
-
response =
|
|
60
|
+
response = _a.sent();
|
|
62
61
|
console.warn("🚀 ~ createWalletHandler ~ response:", response);
|
|
63
62
|
if (!response.success) return [3 /*break*/, 4];
|
|
64
63
|
tokenInfo = response.data.user;
|
|
@@ -77,11 +76,11 @@ var createWalletHandler = function (req) { return __awaiter(void 0, void 0, void
|
|
|
77
76
|
Date.now(),
|
|
78
77
|
})];
|
|
79
78
|
case 3:
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
_a.sent();
|
|
80
|
+
_a.label = 4;
|
|
82
81
|
case 4: return [2 /*return*/, server_1.NextResponse.json(response)];
|
|
83
82
|
case 5:
|
|
84
|
-
err_1 =
|
|
83
|
+
err_1 = _a.sent();
|
|
85
84
|
return [2 /*return*/, (0, errorHandler_1.default)(err_1)];
|
|
86
85
|
case 6: return [2 /*return*/];
|
|
87
86
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var react_1 = require("react");
|
|
4
|
+
var DepositProvider_1 = require("../providers/DepositProvider");
|
|
5
|
+
var DepositProvider_2 = require("../providers/DepositProvider");
|
|
6
|
+
function useDepositData() {
|
|
7
|
+
try {
|
|
8
|
+
var data = (0, react_1.useContext)(DepositProvider_2.DepositContext);
|
|
9
|
+
return data;
|
|
10
|
+
}
|
|
11
|
+
catch (error) {
|
|
12
|
+
console.error("🚀 ~ useDepositData ~ error:", error);
|
|
13
|
+
return DepositProvider_1.initialDeposit;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.default = useDepositData;
|
package/dist/hooks/useWallet.js
CHANGED
|
@@ -1,17 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
2
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
14
|
var react_1 = require("react");
|
|
15
|
+
var DepositProvider_1 = require("../providers/DepositProvider");
|
|
4
16
|
var WalletDataProvider_1 = require("../providers/WalletDataProvider");
|
|
5
17
|
function useWallet() {
|
|
18
|
+
var depositData = (0, react_1.useContext)(DepositProvider_1.DepositContext);
|
|
19
|
+
var walletData = (0, react_1.useContext)(WalletDataProvider_1.WalletDataContext);
|
|
6
20
|
try {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return data;
|
|
21
|
+
delete walletData.session;
|
|
22
|
+
return __assign(__assign({}, walletData), depositData);
|
|
10
23
|
}
|
|
11
24
|
catch (error) {
|
|
12
25
|
console.error("🚀 ~ useWallet ~ error:", error);
|
|
13
26
|
delete WalletDataProvider_1.initialWalletData.session;
|
|
14
|
-
return WalletDataProvider_1.initialWalletData;
|
|
27
|
+
return __assign(__assign({}, WalletDataProvider_1.initialWalletData), DepositProvider_1.initialDeposit);
|
|
15
28
|
}
|
|
16
29
|
}
|
|
17
30
|
exports.default = useWallet;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { DepositProviderDataType } from "../../types/expose-type";
|
|
3
|
+
export declare const initialDeposit: DepositProviderDataType;
|
|
4
|
+
export declare const DepositContext: React.Context<DepositProviderDataType>;
|
|
5
|
+
declare function DepositProvider({ children }: {
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default DepositProvider;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
46
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
47
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
48
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
|
+
function step(op) {
|
|
50
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
52
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
53
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
|
+
switch (op[0]) {
|
|
55
|
+
case 0: case 1: t = op; break;
|
|
56
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
57
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
58
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
59
|
+
default:
|
|
60
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
61
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
62
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
63
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
64
|
+
if (t[2]) _.ops.pop();
|
|
65
|
+
_.trys.pop(); continue;
|
|
66
|
+
}
|
|
67
|
+
op = body.call(thisArg, _);
|
|
68
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
69
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
73
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
74
|
+
};
|
|
75
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
76
|
+
exports.DepositContext = exports.initialDeposit = void 0;
|
|
77
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
78
|
+
var react_1 = __importStar(require("react"));
|
|
79
|
+
var get_deposit_tokens_list_1 = __importDefault(require("../../services/axios/get-deposit-tokens-list"));
|
|
80
|
+
var useWalletData_1 = __importDefault(require("../../hooks/useWalletData"));
|
|
81
|
+
exports.initialDeposit = {
|
|
82
|
+
isLoadingDepositToken: true,
|
|
83
|
+
depositTokens: undefined,
|
|
84
|
+
updateDepositToken: function () { },
|
|
85
|
+
};
|
|
86
|
+
exports.DepositContext = react_1.default.createContext(exports.initialDeposit);
|
|
87
|
+
function DepositProvider(_a) {
|
|
88
|
+
var _this = this;
|
|
89
|
+
var children = _a.children;
|
|
90
|
+
var isAuthenticated = (0, useWalletData_1.default)().isAuthenticated;
|
|
91
|
+
var _b = (0, react_1.useState)(true), isLoadingDepositToken = _b[0], setIsLoadingDepositToken = _b[1];
|
|
92
|
+
var _c = react_1.default.useState(undefined), depositTokens = _c[0], setDepositTokens = _c[1];
|
|
93
|
+
var updateDepositToken = (0, react_1.useCallback)(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
94
|
+
var response, error_1;
|
|
95
|
+
return __generator(this, function (_a) {
|
|
96
|
+
switch (_a.label) {
|
|
97
|
+
case 0:
|
|
98
|
+
_a.trys.push([0, 2, , 3]);
|
|
99
|
+
if (!isAuthenticated) {
|
|
100
|
+
throw new Error("Authenticate to get deposit tokens");
|
|
101
|
+
}
|
|
102
|
+
setIsLoadingDepositToken(true);
|
|
103
|
+
return [4 /*yield*/, (0, get_deposit_tokens_list_1.default)()];
|
|
104
|
+
case 1:
|
|
105
|
+
response = _a.sent();
|
|
106
|
+
console.warn("🚀 ~ getBalance ~ response:", response);
|
|
107
|
+
setDepositTokens(response === null || response === void 0 ? void 0 : response.data);
|
|
108
|
+
setIsLoadingDepositToken(false);
|
|
109
|
+
return [3 /*break*/, 3];
|
|
110
|
+
case 2:
|
|
111
|
+
error_1 = _a.sent();
|
|
112
|
+
console.error("🚀 ~ getBalance ~ error:", error_1);
|
|
113
|
+
setIsLoadingDepositToken(false);
|
|
114
|
+
return [3 /*break*/, 3];
|
|
115
|
+
case 3: return [2 /*return*/];
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}); }, [isAuthenticated]);
|
|
119
|
+
return ((0, jsx_runtime_1.jsx)(exports.DepositContext.Provider, { value: {
|
|
120
|
+
isLoadingDepositToken: isLoadingDepositToken,
|
|
121
|
+
depositTokens: depositTokens,
|
|
122
|
+
updateDepositToken: updateDepositToken,
|
|
123
|
+
}, children: children }));
|
|
124
|
+
}
|
|
125
|
+
exports.default = DepositProvider;
|
|
@@ -7,8 +7,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
var WalletDataProvider_1 = __importDefault(require("../WalletDataProvider"));
|
|
9
9
|
var mui_1 = __importDefault(require("../../theme/mui"));
|
|
10
|
+
var DepositProvider_1 = __importDefault(require("../DepositProvider"));
|
|
10
11
|
function TekWalletProvider(_a) {
|
|
11
12
|
var children = _a.children;
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(WalletDataProvider_1.default, { children: (0, jsx_runtime_1.jsx)(mui_1.default, { children: children }) }));
|
|
13
|
+
return ((0, jsx_runtime_1.jsx)(WalletDataProvider_1.default, { children: (0, jsx_runtime_1.jsx)(DepositProvider_1.default, { children: (0, jsx_runtime_1.jsx)(mui_1.default, { children: children }) }) }));
|
|
13
14
|
}
|
|
14
15
|
exports.default = TekWalletProvider;
|
|
@@ -90,9 +90,7 @@ exports.initialWalletData = {
|
|
|
90
90
|
isAuthLoading: true,
|
|
91
91
|
tokens: undefined,
|
|
92
92
|
isTokensLoading: true,
|
|
93
|
-
updateLogin: function () {
|
|
94
|
-
console.warn("update login void");
|
|
95
|
-
},
|
|
93
|
+
updateLogin: function () { },
|
|
96
94
|
updateBalance: function () { },
|
|
97
95
|
disconnect: function () { },
|
|
98
96
|
createWallet: function () { return Promise.resolve({}); },
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export type TransactionType = "deposit" | "withdrawn" | "transfer-internal";
|
|
2
|
+
export interface GetConfigTokenListQuery {
|
|
3
|
+
page?: number;
|
|
4
|
+
take?: number;
|
|
5
|
+
transactionType: TransactionType;
|
|
6
|
+
}
|
|
7
|
+
declare const getConfigTokenList: <T>(query?: GetConfigTokenListQuery) => Promise<T>;
|
|
3
8
|
export default getConfigTokenList;
|
|
@@ -40,16 +40,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
var userClientRequest_1 = __importDefault(require("../clients/userClientRequest"));
|
|
43
|
-
var getConfigTokenList = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
43
|
+
var getConfigTokenList = function (query) { return __awaiter(void 0, void 0, void 0, function () {
|
|
44
44
|
var response;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
return __generator(this, function (_a) {
|
|
46
|
+
switch (_a.label) {
|
|
47
|
+
case 0: return [4 /*yield*/, userClientRequest_1.default.get("/platform-config/list-tokens", {
|
|
48
|
+
params: query,
|
|
49
|
+
})];
|
|
49
50
|
case 1:
|
|
50
|
-
response =
|
|
51
|
-
console.warn("🚀 ~ getConfigTokenList
|
|
52
|
-
return [2 /*return*/,
|
|
51
|
+
response = _a.sent();
|
|
52
|
+
console.warn("🚀 ~ getConfigTokenList response:", response);
|
|
53
|
+
return [2 /*return*/, response.data];
|
|
53
54
|
}
|
|
54
55
|
});
|
|
55
56
|
}); };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DepositTokenList } from "./../../../types/expose-type";
|
|
2
|
+
import { GetConfigTokenListQuery } from "../get-config-tokens-list";
|
|
3
|
+
export type GetDepositTokenListQuery = Omit<GetConfigTokenListQuery, "transactionType">;
|
|
4
|
+
declare const getDepositTokenList: (query?: GetDepositTokenListQuery) => Promise<DepositTokenList>;
|
|
5
|
+
export default getDepositTokenList;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
24
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
+
function step(op) {
|
|
27
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
+
switch (op[0]) {
|
|
32
|
+
case 0: case 1: t = op; break;
|
|
33
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
+
default:
|
|
37
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
+
if (t[2]) _.ops.pop();
|
|
42
|
+
_.trys.pop(); continue;
|
|
43
|
+
}
|
|
44
|
+
op = body.call(thisArg, _);
|
|
45
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
50
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
|
+
};
|
|
52
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
var get_config_tokens_list_1 = __importDefault(require("../get-config-tokens-list"));
|
|
54
|
+
var getDepositTokenList = function (query) { return __awaiter(void 0, void 0, void 0, function () {
|
|
55
|
+
var params, response;
|
|
56
|
+
return __generator(this, function (_a) {
|
|
57
|
+
switch (_a.label) {
|
|
58
|
+
case 0:
|
|
59
|
+
params = __assign(__assign({}, query), { transactionType: "deposit" });
|
|
60
|
+
return [4 /*yield*/, (0, get_config_tokens_list_1.default)(params)];
|
|
61
|
+
case 1:
|
|
62
|
+
response = _a.sent();
|
|
63
|
+
return [2 /*return*/, response === null || response === void 0 ? void 0 : response.data];
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
}); };
|
|
67
|
+
exports.default = getDepositTokenList;
|
|
@@ -24,7 +24,6 @@ export interface SignOutResponse {
|
|
|
24
24
|
}
|
|
25
25
|
export interface CreateWalletServiceBody {
|
|
26
26
|
passcode: string;
|
|
27
|
-
appSlug: string;
|
|
28
27
|
}
|
|
29
28
|
export interface CreateWalletServiceResponse {
|
|
30
29
|
success: boolean;
|
|
@@ -62,7 +61,12 @@ export interface WalletProviderDataType {
|
|
|
62
61
|
importWallet: (body: ImportWalletServiceBody, onStart?: () => void, onSuccess?: (data?: ImportWalletServiceResponse) => void, onError?: (error?: Error) => void) => Promise<ImportWalletServiceResponse>;
|
|
63
62
|
getSeedPhrase: (body: GetSeedPhraseServiceBody, onStart?: () => void, onSuccess?: (data?: GetSeedPhraseServiceResponse) => void, onError?: (error?: Error) => void) => Promise<GetSeedPhraseServiceResponse>;
|
|
64
63
|
}
|
|
65
|
-
export
|
|
64
|
+
export interface DepositProviderDataType {
|
|
65
|
+
isLoadingDepositToken: boolean;
|
|
66
|
+
depositTokens: DepositCurrency[] | undefined;
|
|
67
|
+
updateDepositToken: () => void;
|
|
68
|
+
}
|
|
69
|
+
export type Wallet = Omit<WalletProviderDataType, "session"> & DepositProviderDataType;
|
|
66
70
|
export interface LoginInfo {
|
|
67
71
|
accessToken: string;
|
|
68
72
|
refreshToken: string;
|
|
@@ -158,3 +162,50 @@ export interface ResponseError<T = string> {
|
|
|
158
162
|
status: number;
|
|
159
163
|
message: T;
|
|
160
164
|
}
|
|
165
|
+
export interface DepositTokenListResponse {
|
|
166
|
+
success: boolean;
|
|
167
|
+
message: string;
|
|
168
|
+
data: DepositTokenList;
|
|
169
|
+
timestamp: string;
|
|
170
|
+
}
|
|
171
|
+
export interface DepositTokenList {
|
|
172
|
+
data: DepositCurrency[];
|
|
173
|
+
paginated: Paginated;
|
|
174
|
+
}
|
|
175
|
+
export interface Paginated {
|
|
176
|
+
keyword: string;
|
|
177
|
+
page: number;
|
|
178
|
+
take: number;
|
|
179
|
+
sort: string;
|
|
180
|
+
sorted: string;
|
|
181
|
+
from_date: string;
|
|
182
|
+
to_date: string;
|
|
183
|
+
number_records: number;
|
|
184
|
+
pages: number;
|
|
185
|
+
has_prev: boolean;
|
|
186
|
+
has_next: boolean;
|
|
187
|
+
}
|
|
188
|
+
export interface Networkdata {
|
|
189
|
+
id: number;
|
|
190
|
+
status: string;
|
|
191
|
+
name: string;
|
|
192
|
+
slug: string;
|
|
193
|
+
network_type: string;
|
|
194
|
+
}
|
|
195
|
+
export interface DepositCurrency {
|
|
196
|
+
id: number;
|
|
197
|
+
status: string;
|
|
198
|
+
name: string;
|
|
199
|
+
slug: string;
|
|
200
|
+
is_crypto_token: boolean;
|
|
201
|
+
address: string;
|
|
202
|
+
network: number;
|
|
203
|
+
wallet_integrations_currencies: number;
|
|
204
|
+
wallet_integrations_input_withdrawn: number;
|
|
205
|
+
wallet_integrations_output_withdrawn: number;
|
|
206
|
+
full_name: string;
|
|
207
|
+
icon: string;
|
|
208
|
+
usd_rate: string;
|
|
209
|
+
icon_svg: string;
|
|
210
|
+
network_data: Networkdata;
|
|
211
|
+
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type GetConfigTokenListResponse = any;
|