tek-wallet 0.0.140 → 0.0.142

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.
@@ -14,6 +14,7 @@ var __assign = (this && this.__assign) || function () {
14
14
  var __importDefault = (this && this.__importDefault) || function (mod) {
15
15
  return (mod && mod.__esModule) ? mod : { "default": mod };
16
16
  };
17
+ var _a;
17
18
  Object.defineProperty(exports, "__esModule", { value: true });
18
19
  var jsx_runtime_1 = require("react/jsx-runtime");
19
20
  var react_1 = require("react");
@@ -21,7 +22,6 @@ var DrawerComponent_1 = __importDefault(require("../DrawerComponent"));
21
22
  var SwiperControlled_1 = __importDefault(require("../SwiperControlled"));
22
23
  var useWalletData_1 = __importDefault(require("../../../hooks/useWalletData"));
23
24
  var ModalLayout_1 = __importDefault(require("../ModalLayout"));
24
- var CloseModal_1 = __importDefault(require("../CloseModal"));
25
25
  var react_2 = require("swiper/react");
26
26
  var BackHeader_1 = __importDefault(require("../BackHeader"));
27
27
  var ModalTitle_1 = __importDefault(require("../ModalTitle"));
@@ -41,6 +41,11 @@ var DepositStep;
41
41
  DepositStep[DepositStep["SELECT_NETWORK"] = 2] = "SELECT_NETWORK";
42
42
  DepositStep[DepositStep["SHOW_QR_CODE"] = 3] = "SHOW_QR_CODE";
43
43
  })(DepositStep || (DepositStep = {}));
44
+ var DEPOSIT_STEP_NAME = (_a = {},
45
+ _a[DepositStep.SELECT_TOKEN] = "Select token",
46
+ _a[DepositStep.SELECT_NETWORK] = "Select network",
47
+ _a[DepositStep.SHOW_QR_CODE] = "Scan QR code",
48
+ _a);
44
49
  var DepositFunction = (0, react_1.forwardRef)(function (props, ref) {
45
50
  var drawerRef = (0, react_1.useRef)(null);
46
51
  var swiperRef = (0, react_1.useRef)(null);
@@ -64,109 +69,105 @@ var DepositFunction = (0, react_1.forwardRef)(function (props, ref) {
64
69
  open: open,
65
70
  close: close,
66
71
  }); });
67
- 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.jsxs)(ModalLayout_1.default, { title: "Deposit", onClose: close, hideHeader: true, children: [(0, jsx_runtime_1.jsx)(CloseModal_1.default, { onClick: close, sx: {
68
- position: "absolute",
69
- right: "1rem",
70
- zIndex: 10,
71
- } }), (0, jsx_runtime_1.jsxs)(SwiperControlled_1.default, { ref: swiperRef, children: [(0, jsx_runtime_1.jsxs)(react_2.SwiperSlide, { children: [(0, jsx_runtime_1.jsx)(BackHeader_1.default, { sx: { paddingBottom: "1rem" }, hideBack: true, children: (0, jsx_runtime_1.jsx)(ModalTitle_1.default, { children: "Select token" }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { color: "red" }, onClick: function () { return console.warn(tokens); }, children: "Click" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
72
- display: "flex",
73
- flexDirection: "column",
74
- gap: theme.mixins.gaps.g16,
75
- }, children: tokens === null || tokens === void 0 ? void 0 : tokens.map(function (item, index) {
76
- var stringifiedTokenData = JSON.stringify(__assign(__assign({}, item), { name: "Fake", fullname: "Fake fullname" }));
77
- return ((0, jsx_runtime_1.jsx)(TokenSelection_1.default, { tokenData: stringifiedTokenData, active: index === 1 }, item.id));
78
- }) })] }, DepositStep.SELECT_TOKEN), (0, jsx_runtime_1.jsxs)(react_2.SwiperSlide, { children: [(0, jsx_runtime_1.jsx)(BackHeader_1.default, { sx: { paddingBottom: "1rem" }, overrideBack: prevStep, children: (0, jsx_runtime_1.jsx)(ModalTitle_1.default, { children: "Select network" }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
79
- display: "flex",
80
- alignItems: "center",
81
- gap: theme.mixins.gaps.g12,
82
- }, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(function (item) {
83
- return ((0, jsx_runtime_1.jsx)(NetworkSelection_1.default, { networkData: JSON.stringify({
84
- name: "network ".concat(item),
85
- icon: "https://via.placeholder.com/150",
86
- }) }, item));
87
- }) })] }, DepositStep.SELECT_NETWORK), (0, jsx_runtime_1.jsxs)(react_2.SwiperSlide, { children: [(0, jsx_runtime_1.jsx)(BackHeader_1.default, { sx: { paddingBottom: "1rem" }, overrideBack: prevStep, children: (0, jsx_runtime_1.jsx)(ModalTitle_1.default, { children: "Scan QR code" }) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
88
- display: "flex",
89
- flexDirection: "column",
90
- gap: theme.mixins.gaps.g16,
91
- }, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
92
- width: "100%",
93
- display: "flex",
94
- flexDirection: "column",
95
- gap: "0.75rem",
96
- backgroundColor: "ui-background-222",
97
- borderRadius: "0.75rem",
98
- padding: "1.5rem",
99
- alignItems: "flex-start",
100
- }, id: "share-deposit-info", children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
101
- display: "flex",
102
- flexDirection: "column",
103
- gap: "0.125rem",
104
- color: "text.white",
105
- alignSelf: "center",
106
- }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
107
- fontSize: theme.typography.fontSize12,
108
- fontWeight: theme.typography.fontWeight500,
109
- leading: "typography.leading150",
110
- }, children: "Harry Andrew" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
72
+ 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, { title: DEPOSIT_STEP_NAME[currentStep], onClose: close, children: (0, jsx_runtime_1.jsxs)(SwiperControlled_1.default, { ref: swiperRef, children: [(0, jsx_runtime_1.jsxs)(react_2.SwiperSlide, { children: [(0, jsx_runtime_1.jsx)(BackHeader_1.default, { sx: { paddingBottom: "1rem" }, hideBack: true, children: (0, jsx_runtime_1.jsx)(ModalTitle_1.default, { children: "Select token" }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { color: "red" }, onClick: function () { return console.warn(tokens); }, children: "Click" }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
73
+ display: "flex",
74
+ flexDirection: "column",
75
+ gap: theme.mixins.gaps.g16,
76
+ }, children: tokens === null || tokens === void 0 ? void 0 : tokens.map(function (item) {
77
+ var stringifiedTokenData = JSON.stringify(__assign(__assign({}, item), { name: "Fake", fullname: "Fake fullname" }));
78
+ return ((0, jsx_runtime_1.jsx)(TokenSelection_1.default, { tokenData: stringifiedTokenData }, item.id));
79
+ }) })] }, DepositStep.SELECT_TOKEN), (0, jsx_runtime_1.jsxs)(react_2.SwiperSlide, { children: [(0, jsx_runtime_1.jsx)(BackHeader_1.default, { sx: { paddingBottom: "1rem" }, overrideBack: prevStep, children: (0, jsx_runtime_1.jsx)(ModalTitle_1.default, { children: "Select network" }) }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
80
+ display: "flex",
81
+ alignItems: "center",
82
+ gap: theme.mixins.gaps.g12,
83
+ }, children: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map(function (item) {
84
+ return ((0, jsx_runtime_1.jsx)(NetworkSelection_1.default, { networkData: JSON.stringify({
85
+ name: "network ".concat(item),
86
+ icon: "https://via.placeholder.com/150",
87
+ }) }, item));
88
+ }) })] }, DepositStep.SELECT_NETWORK), (0, jsx_runtime_1.jsxs)(react_2.SwiperSlide, { children: [(0, jsx_runtime_1.jsx)(BackHeader_1.default, { sx: { paddingBottom: "1rem" }, overrideBack: prevStep, children: (0, jsx_runtime_1.jsx)(ModalTitle_1.default, { children: "Scan QR code" }) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
89
+ display: "flex",
90
+ flexDirection: "column",
91
+ gap: theme.mixins.gaps.g16,
92
+ }, children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
93
+ width: "100%",
94
+ display: "flex",
95
+ flexDirection: "column",
96
+ gap: "0.75rem",
97
+ backgroundColor: "ui-background-222",
98
+ borderRadius: "0.75rem",
99
+ padding: "1.5rem",
100
+ alignItems: "flex-start",
101
+ }, id: "share-deposit-info", children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
102
+ display: "flex",
103
+ flexDirection: "column",
104
+ gap: "0.125rem",
105
+ color: "text.white",
106
+ alignSelf: "center",
107
+ }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
108
+ fontSize: theme.typography.fontSize12,
109
+ fontWeight: theme.typography.fontWeight500,
110
+ leading: "typography.leading150",
111
+ }, children: "Harry Andrew" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
112
+ fontSize: theme.typography.fontSize12,
113
+ fontWeight: theme.typography.fontWeight400,
114
+ leading: "typography.leading150",
115
+ }, children: "@user1234we" })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
116
+ alignSelf: "center",
117
+ padding: "0.75rem",
118
+ backgroundColor: "ui-background-white",
119
+ }, children: (0, jsx_runtime_1.jsx)(QRCode_1.default, {}) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
120
+ display: "flex",
121
+ flexDirection: "column",
122
+ gap: "0.125rem",
123
+ color: "text.white",
124
+ }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
125
+ fontSize: theme.typography.fontSize10,
126
+ leading: "typography.leading150",
127
+ }, children: "Network" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
128
+ fontSize: theme.typography.fontSize13,
129
+ fontWeight: theme.typography.fontWeight500,
130
+ leading: "typography.leading150",
131
+ }, children: "Ethereum (ERC20)" })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
132
+ display: "flex",
133
+ flexDirection: "column",
134
+ gap: "0.125rem",
135
+ color: "text.white",
136
+ }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
137
+ fontSize: theme.typography.fontSize10,
138
+ leading: "typography.leading150",
139
+ }, children: "Address" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
140
+ fontSize: theme.typography.fontSize13,
141
+ fontWeight: theme.typography.fontWeight500,
142
+ leading: "typography.leading150",
143
+ wordBreak: "break-all",
144
+ }, children: "tebfwe78w237dbyuc78wb4b3y8cbwebd8732w9bcubf638uegyg7dt63ged87dxi8w3gdyhf73" })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
145
+ display: "flex",
146
+ alignItems: "center",
147
+ gap: "8px",
148
+ backgroundColor: "ui-background-white-16",
149
+ borderRadius: "12px",
150
+ padding: "8px 12px",
151
+ }, 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: {
152
+ display: "flex",
153
+ alignItems: "center",
154
+ gap: "0.75rem",
155
+ justifyContent: "center",
156
+ }, 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: {
111
157
  fontSize: theme.typography.fontSize12,
112
158
  fontWeight: theme.typography.fontWeight400,
113
159
  leading: "typography.leading150",
114
- }, children: "@user1234we" })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
115
- alignSelf: "center",
116
- padding: "0.75rem",
117
- backgroundColor: "ui-background-white",
118
- }, children: (0, jsx_runtime_1.jsx)(QRCode_1.default, {}) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
119
- display: "flex",
120
- flexDirection: "column",
160
+ textTransform: "capitalize",
161
+ }, 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: {
121
162
  gap: "0.125rem",
122
- color: "text.white",
123
- }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
124
- fontSize: theme.typography.fontSize10,
125
- leading: "typography.leading150",
126
- }, children: "Network" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
127
- fontSize: theme.typography.fontSize13,
128
- fontWeight: theme.typography.fontWeight500,
129
- leading: "typography.leading150",
130
- }, children: "Ethereum (ERC20)" })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
131
163
  display: "flex",
132
- flexDirection: "column",
133
- gap: "0.125rem",
134
- color: "text.white",
164
+ alignItems: "center",
135
165
  }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
136
- fontSize: theme.typography.fontSize10,
137
- leading: "typography.leading150",
138
- }, children: "Address" }), (0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
139
- fontSize: theme.typography.fontSize13,
140
- fontWeight: theme.typography.fontWeight500,
166
+ fontSize: theme.typography.fontSize12,
167
+ fontWeight: theme.typography.fontWeight400,
141
168
  leading: "typography.leading150",
142
- wordBreak: "break-all",
143
- }, children: "tebfwe78w237dbyuc78wb4b3y8cbwebd8732w9bcubf638uegyg7dt63ged87dxi8w3gdyhf73" })] }), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
144
- display: "flex",
145
- alignItems: "center",
146
- gap: "8px",
147
- backgroundColor: "ui-background-white-16",
148
- borderRadius: "12px",
149
- padding: "8px 12px",
150
- }, 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: {
151
- display: "flex",
152
- alignItems: "center",
153
- gap: "0.75rem",
154
- justifyContent: "center",
155
- }, 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: {
156
- fontSize: theme.typography.fontSize12,
157
- fontWeight: theme.typography.fontWeight400,
158
- leading: "typography.leading150",
159
- textTransform: "capitalize",
160
- }, 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: {
161
- gap: "0.125rem",
162
- display: "flex",
163
- alignItems: "center",
164
- }, children: [(0, jsx_runtime_1.jsx)(Text_1.default, { sx: {
165
- fontSize: theme.typography.fontSize12,
166
- fontWeight: theme.typography.fontWeight400,
167
- leading: "typography.leading150",
168
- textTransform: "capitalize",
169
- }, children: "Share" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("copy"), width: 20 })] }) })] })] })] }, DepositStep.SHOW_QR_CODE)] })] }) }));
169
+ textTransform: "capitalize",
170
+ }, children: "Share" }), (0, jsx_runtime_1.jsx)(Icon_1.default, { src: (0, getIcon_1.default)("copy"), width: 20 })] }) })] })] })] }, DepositStep.SHOW_QR_CODE)] }) }) }));
170
171
  });
171
172
  DepositFunction.displayName = "DepositFunction";
172
173
  exports.default = DepositFunction;
@@ -22,8 +22,14 @@ var getImage_1 = __importDefault(require("../../../utils/getImage"));
22
22
  var ModalLayout = function (props) {
23
23
  var theme = (0, material_1.useTheme)();
24
24
  return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: __assign({ borderTop: "2px ".concat(theme.palette.secondary.main, " solid"), borderRadius: "1.5rem 1.5rem 0 0", maxHeight: "100dvh", backgroundImage: "url(".concat((0, getImage_1.default)("modal-bg", "jpg"), ")"), backgroundSize: "cover", backgroundPosition: "top", backgroundRepeat: "no-repeat", display: "flex", flexDirection: "column" }, theme.mixins.pagePadding), children: [!props.hideHeader && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
25
- display: "flex",
26
- alignItems: "center",
27
- }, children: [(0, jsx_runtime_1.jsx)(ModalTitle_1.default, { children: props.title }), (0, jsx_runtime_1.jsx)(CloseModal_1.default, { sx: { marginLeft: "auto" }, onClick: props.onClose })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: { my: 1 } })] })), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { flex: 1, overflowY: "auto" }, children: props.children })] }));
25
+ width: "100%",
26
+ position: "relative",
27
+ minHeight: "2rem",
28
+ }, children: [(0, jsx_runtime_1.jsx)(ModalTitle_1.default, { children: props.title }), (0, jsx_runtime_1.jsx)(CloseModal_1.default, { sx: {
29
+ position: "absolute",
30
+ right: "1em",
31
+ top: "50%",
32
+ transform: "translateY(-50%)",
33
+ }, onClick: props.onClose })] }), (0, jsx_runtime_1.jsx)(material_1.Divider, { sx: { my: "0.75rem" } })] })), (0, jsx_runtime_1.jsx)(material_1.Box, { sx: { flex: 1, overflowY: "auto" }, children: props.children })] }));
28
34
  };
29
35
  exports.default = ModalLayout;
@@ -36,7 +36,7 @@ var TokenSelection = function (props) {
36
36
  var tokenDataString = props.tokenData, rest = __rest(props, ["tokenData"]);
37
37
  var theme = (0, material_1.useTheme)();
38
38
  var tokenData = (0, react_1.useMemo)(function () { return (0, parsePropsData_1.default)(tokenDataString); }, [tokenDataString]);
39
- return ((0, jsx_runtime_1.jsxs)("div", __assign({ sx: {
39
+ return ((0, jsx_runtime_1.jsxs)(material_1.Box, __assign({ sx: {
40
40
  backgroundColor: "background.white16",
41
41
  border: "1px solid",
42
42
  borderColor: props.active ? "border.secondary" : "transparent",
@@ -0,0 +1,3 @@
1
+ import { GetConfigTokenListResponse } from "./type";
2
+ declare const getConfigTokenList: () => Promise<GetConfigTokenListResponse>;
3
+ export default getConfigTokenList;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ 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);
13
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
18
+ 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;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
38
+ var __importDefault = (this && this.__importDefault) || function (mod) {
39
+ return (mod && mod.__esModule) ? mod : { "default": mod };
40
+ };
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ var userClientRequest_1 = __importDefault(require("../clients/userClientRequest"));
43
+ var getConfigTokenList = function () { return __awaiter(void 0, void 0, void 0, function () {
44
+ var response;
45
+ var _a;
46
+ return __generator(this, function (_b) {
47
+ switch (_b.label) {
48
+ case 0: return [4 /*yield*/, userClientRequest_1.default.get("/platform-config/list-tokens")];
49
+ case 1:
50
+ response = _b.sent();
51
+ console.warn("🚀 ~ getConfigTokenList ~ response:", response);
52
+ return [2 /*return*/, (_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.data];
53
+ }
54
+ });
55
+ }); };
56
+ exports.default = getConfigTokenList;
@@ -0,0 +1 @@
1
+ export type GetConfigTokenListResponse = any;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -47,7 +47,7 @@ export interface GetBalanceServiceResponse {
47
47
  address: string;
48
48
  app_slug: string[];
49
49
  balances: Balance[];
50
- blockchain_wallets: Blockchainwallet[];
50
+ blockchain_wallets: BlockchainWallet[];
51
51
  }
52
52
  export interface WalletProviderDataType {
53
53
  isAuthenticated: boolean | undefined;
@@ -80,7 +80,7 @@ export interface WalletData {
80
80
  address: string;
81
81
  app_slug: string[];
82
82
  balances: Balance[];
83
- blockchain_wallets: Blockchainwallet[];
83
+ blockchain_wallets: BlockchainWallet[];
84
84
  seed_pharse: string;
85
85
  user: User;
86
86
  }
@@ -92,7 +92,7 @@ export interface User {
92
92
  expires_in: number;
93
93
  refresh_expires_in: number;
94
94
  }
95
- export interface Blockchainwallet {
95
+ export interface BlockchainWallet {
96
96
  master_address: string;
97
97
  blockchain_address: string;
98
98
  network_slug: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.140",
3
+ "version": "0.0.142",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",