@ultrade/shared 1.0.0
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/baseModel/base.model.d.ts +26 -0
- package/dist/baseModel/index.d.ts +2 -0
- package/dist/common/auth.helper.d.ts +4 -0
- package/dist/common/auth.helper.js +367 -0
- package/dist/common/awsKms.d.ts +2 -0
- package/dist/common/awsKms.js +265 -0
- package/dist/common/big-number.helper.d.ts +38 -0
- package/dist/common/big-number.helper.js +263 -0
- package/dist/common/index.d.ts +11 -0
- package/dist/common/index.js +2541 -0
- package/dist/common/indexer.helper.d.ts +2 -0
- package/dist/common/indexer.helper.js +387 -0
- package/dist/common/logger.d.ts +32 -0
- package/dist/common/logger.js +188 -0
- package/dist/common/mappers/codexAsset.mapper.d.ts +2 -0
- package/dist/common/mappers/codexAsset.mapper.js +40 -0
- package/dist/common/mappers/codexBalance.mapper.d.ts +2 -0
- package/dist/common/mappers/codexBalance.mapper.js +38 -0
- package/dist/common/mappers/index.d.ts +3 -0
- package/dist/common/mappers/index.js +1421 -0
- package/dist/common/mappers/trade.mapper.d.ts +6 -0
- package/dist/common/mappers/trade.mapper.js +1343 -0
- package/dist/common/migration.helpers.d.ts +4 -0
- package/dist/common/migration.helpers.js +44 -0
- package/dist/common/redis.helper.d.ts +27 -0
- package/dist/common/redis.helper.js +269 -0
- package/dist/common/secret.helper.d.ts +28 -0
- package/dist/common/secret.helper.js +144 -0
- package/dist/common/timestamp.helper.d.ts +1 -0
- package/dist/common/timestamp.helper.js +41 -0
- package/dist/common/utils/assert.d.ts +1 -0
- package/dist/common/utils/assert.js +32 -0
- package/dist/common/utils/decode.d.ts +5 -0
- package/dist/common/utils/decode.js +206 -0
- package/dist/common/utils/index.d.ts +9 -0
- package/dist/common/utils/index.js +122 -0
- package/dist/common/utils/social.d.ts +1 -0
- package/dist/common/utils/social.js +30 -0
- package/dist/common/utils/stat.d.ts +1 -0
- package/dist/common/utils/stat.js +274 -0
- package/dist/constants/allowedUrls.d.ts +1 -0
- package/dist/constants/auth.d.ts +2 -0
- package/dist/constants/cctp.d.ts +3 -0
- package/dist/constants/codex.d.ts +11 -0
- package/dist/constants/env.d.ts +6 -0
- package/dist/constants/index.d.ts +7 -0
- package/dist/constants/index.js +455 -0
- package/dist/constants/queue.d.ts +39 -0
- package/dist/constants/response.d.ts +82 -0
- package/dist/constants/settings.d.ts +2 -0
- package/dist/constants/social.d.ts +3 -0
- package/dist/constants/withdrawalWalletsMessage.d.ts +1 -0
- package/dist/enums/chains.enum.d.ts +50 -0
- package/dist/enums/db/account/index.d.ts +19 -0
- package/dist/enums/db/affiliate.enum.d.ts +7 -0
- package/dist/enums/db/available-pair-settings.enum.d.ts +12 -0
- package/dist/enums/db/chains.d.ts +30 -0
- package/dist/enums/db/common.enum.d.ts +4 -0
- package/dist/enums/db/component/index.d.ts +22 -0
- package/dist/enums/db/index.d.ts +21 -0
- package/dist/enums/db/market-maker.enum.d.ts +15 -0
- package/dist/enums/db/notification-center/userNotification.enum.d.ts +36 -0
- package/dist/enums/db/order-side.enum.d.ts +5 -0
- package/dist/enums/db/order-status.enum.d.ts +8 -0
- package/dist/enums/db/order-type.enum.d.ts +7 -0
- package/dist/enums/db/pending-actions.enum.d.ts +6 -0
- package/dist/enums/db/relayer.enum.d.ts +23 -0
- package/dist/enums/db/setting-type.enum.d.ts +8 -0
- package/dist/enums/db/social-action.enum.d.ts +24 -0
- package/dist/enums/db/social-prompt.enum.d.ts +8 -0
- package/dist/enums/db/social.enum.d.ts +10 -0
- package/dist/enums/db/state-type.enum.d.ts +9 -0
- package/dist/enums/db/trade.enums.d.ts +10 -0
- package/dist/enums/db/tradingKeyType.enum.d.ts +4 -0
- package/dist/enums/db/upgrade.enum.d.ts +5 -0
- package/dist/enums/db/withdrawal-wallet.enum.d.ts +5 -0
- package/dist/enums/index.d.ts +5 -0
- package/dist/enums/index.js +893 -0
- package/dist/enums/maintenanceMode.enum.d.ts +10 -0
- package/dist/enums/notification.enum.d.ts +7 -0
- package/dist/enums/social.enum.d.ts +10 -0
- package/dist/helpers/Encoding.d.ts +33 -0
- package/dist/helpers/Encoding.js +318 -0
- package/dist/helpers/algo.helper.d.ts +14 -0
- package/dist/helpers/algo.helper.js +1211 -0
- package/dist/helpers/api.helper.d.ts +16 -0
- package/dist/helpers/api.helper.js +1652 -0
- package/dist/helpers/assert.helper.d.ts +10 -0
- package/dist/helpers/assert.helper.js +1677 -0
- package/dist/helpers/atomic.helper.d.ts +21 -0
- package/dist/helpers/atomic.helper.js +712 -0
- package/dist/helpers/balance.helper.d.ts +13 -0
- package/dist/helpers/balance.helper.js +4330 -0
- package/dist/helpers/codex/common.helper.d.ts +24 -0
- package/dist/helpers/codex/common.helper.js +4246 -0
- package/dist/helpers/codex/index.d.ts +6 -0
- package/dist/helpers/codex/index.js +4246 -0
- package/dist/helpers/codex/mbr.helper.d.ts +6 -0
- package/dist/helpers/codex/mbr.helper.js +4246 -0
- package/dist/helpers/codex/mna.helper.d.ts +2 -0
- package/dist/helpers/codex/mna.helper.js +4246 -0
- package/dist/helpers/codex/order.helper.d.ts +6 -0
- package/dist/helpers/codex/order.helper.js +4246 -0
- package/dist/helpers/codex/setGlobal.helper.d.ts +27 -0
- package/dist/helpers/codex/setGlobal.helper.js +4312 -0
- package/dist/helpers/codex/transfer.helper.d.ts +21 -0
- package/dist/helpers/codex/transfer.helper.js +4246 -0
- package/dist/helpers/codex/txn.helper.d.ts +13 -0
- package/dist/helpers/codex/txn.helper.js +4246 -0
- package/dist/helpers/codex.helper.d.ts +106 -0
- package/dist/helpers/codex.helper.js +4246 -0
- package/dist/helpers/email.helper.d.ts +5 -0
- package/dist/helpers/email.helper.js +112 -0
- package/dist/helpers/eth.helper.d.ts +12 -0
- package/dist/helpers/eth.helper.js +4246 -0
- package/dist/helpers/hummingbots.helper.d.ts +2 -0
- package/dist/helpers/hummingbots.helper.js +163 -0
- package/dist/helpers/index.d.ts +5 -0
- package/dist/helpers/index.js +837 -0
- package/dist/helpers/interval.helpers.d.ts +9 -0
- package/dist/helpers/interval.helpers.js +110 -0
- package/dist/helpers/liquidity.helper.d.ts +6 -0
- package/dist/helpers/liquidity.helper.js +81 -0
- package/dist/helpers/order.helper.d.ts +7 -0
- package/dist/helpers/order.helper.js +946 -0
- package/dist/helpers/pair.helper.d.ts +9 -0
- package/dist/helpers/pair.helper.js +938 -0
- package/dist/helpers/pointSystem.helper.d.ts +14 -0
- package/dist/helpers/pointSystem.helper.js +392 -0
- package/dist/helpers/ticker.helpers.d.ts +8 -0
- package/dist/helpers/ticker.helpers.js +358 -0
- package/dist/helpers/vaa.helper.d.ts +2 -0
- package/dist/helpers/vaa.helper.js +4350 -0
- package/dist/helpers/withdraw.helper.d.ts +14 -0
- package/dist/helpers/withdraw.helper.js +4784 -0
- package/dist/interfaces/accountInfo.interface.d.ts +15 -0
- package/dist/interfaces/algostreamer/index.d.ts +49 -0
- package/dist/interfaces/api/affiliate.interface.d.ts +71 -0
- package/dist/interfaces/cache.interface.d.ts +25 -0
- package/dist/interfaces/confirmed-txn.interface.d.ts +46 -0
- package/dist/interfaces/controller.interface.d.ts +6 -0
- package/dist/interfaces/db/baseModel.interface.d.ts +5 -0
- package/dist/interfaces/db/hummingbot/index.d.ts +18 -0
- package/dist/interfaces/db/index.d.ts +10 -0
- package/dist/interfaces/db/market/index.d.ts +313 -0
- package/dist/interfaces/db/marketing/index.d.ts +48 -0
- package/dist/interfaces/db/notification_center/index.d.ts +33 -0
- package/dist/interfaces/db/relayer/index.d.ts +56 -0
- package/dist/interfaces/db/social/index.d.ts +188 -0
- package/dist/interfaces/db/softDeleteModel.interface.d.ts +4 -0
- package/dist/interfaces/db/white_label/index.d.ts +161 -0
- package/dist/interfaces/db/withdrawal_wallets/index.d.ts +12 -0
- package/dist/interfaces/dto/index.d.ts +62 -0
- package/dist/interfaces/emailService.interface.d.ts +4 -0
- package/dist/interfaces/index.d.ts +17 -0
- package/dist/interfaces/index.js +1319 -0
- package/dist/interfaces/kmsService.interface.d.ts +4 -0
- package/dist/interfaces/last-look-trade.interface.d.ts +10 -0
- package/dist/interfaces/market.interface.d.ts +17 -0
- package/dist/interfaces/order.interface.d.ts +162 -0
- package/dist/interfaces/pair.interface.d.ts +10 -0
- package/dist/interfaces/query.interface.d.ts +6 -0
- package/dist/interfaces/services/accountCache.interface.d.ts +15 -0
- package/dist/interfaces/services/algod.interface.d.ts +5 -0
- package/dist/interfaces/services/balances.interface.d.ts +11 -0
- package/dist/interfaces/services/coin-market-cap.interface.d.ts +124 -0
- package/dist/interfaces/services/index.d.ts +8 -0
- package/dist/interfaces/services/price-model.interface.d.ts +4 -0
- package/dist/interfaces/services/price-service.interface.d.ts +8 -0
- package/dist/interfaces/services/socialActivity.interface.d.ts +48 -0
- package/dist/interfaces/services/tmc.interface.d.ts +9 -0
- package/dist/interfaces/streaming.interface.d.ts +95 -0
- package/dist/interfaces/timestream.interface.d.ts +29 -0
- package/dist/interfaces/trading.interface.d.ts +235 -0
- package/dist/interfaces/tradingKey.interface.d.ts +26 -0
- package/dist/interfaces/transfer.interface.d.ts +12 -0
- package/dist/interfaces/wallet.interface.d.ts +89 -0
- package/dist/interfaces/withdrawalWallets.interface.d.ts +14 -0
- package/dist/types/algo-order.type.d.ts +10 -0
- package/dist/types/amm/amm.d.ts +163 -0
- package/dist/types/api/request.types.d.ts +99 -0
- package/dist/types/codex.types.d.ts +28 -0
- package/dist/types/hummingbots.types.d.ts +23 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.js +362 -0
- package/dist/types/notification.type.d.ts +10 -0
- package/dist/types/settings.type.d.ts +162 -0
- package/dist/types/state.type.d.ts +4 -0
- package/package.json +78 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ICompanySetting } from '@interfaces';
|
|
2
|
+
export declare const transformPointSystemSettings: (pointSystemSettings: ICompanySetting[]) => {
|
|
3
|
+
discordEnabled: string | boolean;
|
|
4
|
+
telegramBotName: string | boolean;
|
|
5
|
+
telegramBotId: string | boolean;
|
|
6
|
+
telegramEnabled: string | boolean;
|
|
7
|
+
telegramGroupId: string | boolean;
|
|
8
|
+
telegramGroupName: string | boolean;
|
|
9
|
+
twitterAccountId: string | boolean;
|
|
10
|
+
twitterAccountName: string | boolean;
|
|
11
|
+
twitterEnabled: string | boolean;
|
|
12
|
+
twitterJobEnabled: string | boolean;
|
|
13
|
+
guideLink: string | boolean;
|
|
14
|
+
};
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory();
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else {
|
|
7
|
+
var a = factory();
|
|
8
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
|
+
}
|
|
10
|
+
})(global, () => {
|
|
11
|
+
return /******/ (() => { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 573:
|
|
16
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
/***/ }),
|
|
23
|
+
|
|
24
|
+
/***/ 3574:
|
|
25
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29
|
+
if (k2 === undefined) k2 = k;
|
|
30
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
31
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
32
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
33
|
+
}
|
|
34
|
+
Object.defineProperty(o, k2, desc);
|
|
35
|
+
}) : (function(o, m, k, k2) {
|
|
36
|
+
if (k2 === undefined) k2 = k;
|
|
37
|
+
o[k2] = m[k];
|
|
38
|
+
}));
|
|
39
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
40
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
43
|
+
__exportStar(__webpack_require__(7114), exports);
|
|
44
|
+
__exportStar(__webpack_require__(5386), exports);
|
|
45
|
+
__exportStar(__webpack_require__(7159), exports);
|
|
46
|
+
__exportStar(__webpack_require__(9181), exports);
|
|
47
|
+
__exportStar(__webpack_require__(7359), exports);
|
|
48
|
+
__exportStar(__webpack_require__(3620), exports);
|
|
49
|
+
__exportStar(__webpack_require__(573), exports);
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/***/ }),
|
|
53
|
+
|
|
54
|
+
/***/ 3620:
|
|
55
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
59
|
+
exports.HummingbotInstanceStatus = void 0;
|
|
60
|
+
var HummingbotInstanceStatus;
|
|
61
|
+
(function (HummingbotInstanceStatus) {
|
|
62
|
+
HummingbotInstanceStatus["PREPARING"] = "provisioning";
|
|
63
|
+
HummingbotInstanceStatus["STOPPING"] = "stopping";
|
|
64
|
+
HummingbotInstanceStatus["RUNNING"] = "running";
|
|
65
|
+
HummingbotInstanceStatus["STOPPED"] = "stopped";
|
|
66
|
+
HummingbotInstanceStatus["FAILED"] = "failed";
|
|
67
|
+
})(HummingbotInstanceStatus || (exports.HummingbotInstanceStatus = HummingbotInstanceStatus = {}));
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/***/ }),
|
|
71
|
+
|
|
72
|
+
/***/ 5386:
|
|
73
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/***/ }),
|
|
80
|
+
|
|
81
|
+
/***/ 7114:
|
|
82
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/***/ }),
|
|
89
|
+
|
|
90
|
+
/***/ 7159:
|
|
91
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
95
|
+
exports.defaultThemesValue = exports.defaultThemeSettingValue = exports.defaultLogoSettingValue = exports.requiredColors = exports.settingIdToSecretType = exports.CredentialNameEnum = exports.AffDashboardVisibilitySettingEnum = exports.SettingIds = void 0;
|
|
96
|
+
var SettingIds;
|
|
97
|
+
(function (SettingIds) {
|
|
98
|
+
SettingIds["ENABLED"] = "company.enabled";
|
|
99
|
+
SettingIds["APP_TITLE"] = "company.appTitle";
|
|
100
|
+
SettingIds["DOMAIN"] = "company.domain";
|
|
101
|
+
SettingIds["LOGO"] = "appearance.logo";
|
|
102
|
+
SettingIds["AMM"] = "product.amm";
|
|
103
|
+
SettingIds["OBDEX"] = "product.obdex";
|
|
104
|
+
SettingIds["THEMES"] = "appearance.themes";
|
|
105
|
+
SettingIds["DIRECT_SETTLE"] = "company.directSettlement";
|
|
106
|
+
SettingIds["AMM_FEE"] = "company.ammFee";
|
|
107
|
+
SettingIds["FEE_SHARE"] = "company.feeShare";
|
|
108
|
+
SettingIds["MIN_FEE"] = "company.minFee";
|
|
109
|
+
SettingIds["MAKER_FEE"] = "company.makerFee";
|
|
110
|
+
SettingIds["TAKER_FEE"] = "company.takerFee";
|
|
111
|
+
SettingIds["GEOBLOCK"] = "company.geoblock";
|
|
112
|
+
SettingIds["EMBEDDED_APP_URL"] = "company.embeddedAppUrl";
|
|
113
|
+
SettingIds["PRODUCT_OBDEX"] = "product.obdex";
|
|
114
|
+
SettingIds["PRODUCT_AMM"] = "product.amm";
|
|
115
|
+
SettingIds["NEW_TAB"] = "appearance.newTab";
|
|
116
|
+
SettingIds["APPEARANCE_TARGET"] = "appearance.target";
|
|
117
|
+
SettingIds["CUSTOM_MENU_ITEMS"] = "appearance.customMenuItems";
|
|
118
|
+
SettingIds["REPORT_BUTTONS"] = "appearance.reportButtons";
|
|
119
|
+
SettingIds["APPEARANCE_CHART_TYPE"] = "appearance.chartType";
|
|
120
|
+
SettingIds["APPEARANCE_CHART_INT"] = "appearance.chartInt";
|
|
121
|
+
SettingIds["PINNED_PAIRS"] = "markets.pinnedPairs";
|
|
122
|
+
SettingIds["KYC_TRADE_REQUIREMENT_ENABLED"] = "markets.kycTradeRequirementEnabled";
|
|
123
|
+
SettingIds["AFFILIATE_DASHBOARD_VISIBILITY"] = "product.affiliateDashboardVisibility";
|
|
124
|
+
SettingIds["AFFILIATE_DASHBOARD_THRESHOLD"] = "product.affiliateDashboardThreshold";
|
|
125
|
+
SettingIds["AFFILIATE_DEFAULT_FEE_SHARE"] = "product.affiliateDefaultFeeShare";
|
|
126
|
+
SettingIds["AFFILIATE_POINTS_REWARD"] = "product.affiliatePointsReward";
|
|
127
|
+
SettingIds["POINT_SYSTEM_MODE"] = "product.pointSystem";
|
|
128
|
+
SettingIds["POINT_SYSTEM_TELEGRAM_API_TOKEN"] = "point-system.telegramApiToken";
|
|
129
|
+
SettingIds["POINT_SYSTEM_TELEGRAM_ENABLED"] = "point-system.telegramEnabled";
|
|
130
|
+
SettingIds["POINT_SYSTEM_TELEGRAM_GROUP_ID"] = "point-system.telegramGroupId";
|
|
131
|
+
SettingIds["POINT_SYSTEM_TELEGRAM_BOT_NAME"] = "point-system.telegramBotName";
|
|
132
|
+
SettingIds["POINT_SYSTEM_TELEGRAM_BOT_ID"] = "point-system.telegramBotId";
|
|
133
|
+
SettingIds["POINT_SYSTEM_TELEGRAM_GROUP_NAME"] = "point-system.telegramGroupName";
|
|
134
|
+
SettingIds["POINT_SYSTEM_TELEGRAM_WEBHOOK_TOKEN"] = "point-system.telegramWebhookToken";
|
|
135
|
+
SettingIds["POINT_SYSTEM_DISCORD_CLIENT_ID"] = "point-system.discordClientId";
|
|
136
|
+
SettingIds["POINT_SYSTEM_DISCORD_CLIENT_SECRET"] = "point-system.discordClientSecret";
|
|
137
|
+
SettingIds["POINT_SYSTEM_DISCORD_SERVER_ID"] = "point-system.discordServerId";
|
|
138
|
+
SettingIds["POINT_SYSTEM_DISCORD_ENABLED"] = "point-system.discordEnabled";
|
|
139
|
+
SettingIds["POINT_SYSTEM_TWITTER_CLIENT_ID"] = "point-system.twitterClientId";
|
|
140
|
+
SettingIds["POINT_SYSTEM_TWITTER_CLIENT_SECRET"] = "point-system.twitterClientSecret";
|
|
141
|
+
SettingIds["POINT_SYSTEM_TWITTER_BEARER_TOKEN"] = "point-system.twitterBearerToken";
|
|
142
|
+
SettingIds["POINT_SYSTEM_TWITTER_REFRESH_TOKEN"] = "point-system.twitterRefreshToken";
|
|
143
|
+
SettingIds["POINT_SYSTEM_TWITTER_ENABLED"] = "point-system.twitterEnabled";
|
|
144
|
+
SettingIds["POINT_SYSTEM_TWITTER_JOB_ENABLED"] = "point-system.twitterJobEnabled";
|
|
145
|
+
SettingIds["POINT_SYSTEM_TWITTER_HASHTAGS"] = "point-system.twitterHashtags";
|
|
146
|
+
SettingIds["POINT_SYSTEM_TWITTER_TWEET_EXP_TIME"] = "point-system.twitterPostDefaultExpirationTime";
|
|
147
|
+
SettingIds["POINT_SYSTEM_TWITTER_ACCOUNT_NAME"] = "point-system.twitterAccountName";
|
|
148
|
+
SettingIds["POINT_SYSTEM_TWITTER_ACCOUNT_ID"] = "point-system.twitterAccountId";
|
|
149
|
+
SettingIds["POINT_SYSTEM_TWITTER_WEBHOOK_TOKEN"] = "point-system.twitterWebhookToken";
|
|
150
|
+
SettingIds["POINT_SYSTEM_GUIDE_LINK"] = "point-system.guideLink";
|
|
151
|
+
})(SettingIds || (exports.SettingIds = SettingIds = {}));
|
|
152
|
+
var AffDashboardVisibilitySettingEnum;
|
|
153
|
+
(function (AffDashboardVisibilitySettingEnum) {
|
|
154
|
+
AffDashboardVisibilitySettingEnum["DISABLED"] = "disabled";
|
|
155
|
+
AffDashboardVisibilitySettingEnum["ENABLED_FOR_ALL"] = "enabled for all";
|
|
156
|
+
AffDashboardVisibilitySettingEnum["ENABLED_FOR_AFFILIATES"] = "enabled for affiliates";
|
|
157
|
+
})(AffDashboardVisibilitySettingEnum || (exports.AffDashboardVisibilitySettingEnum = AffDashboardVisibilitySettingEnum = {}));
|
|
158
|
+
var CredentialNameEnum;
|
|
159
|
+
(function (CredentialNameEnum) {
|
|
160
|
+
CredentialNameEnum["API_TOKEN"] = "apiToken";
|
|
161
|
+
CredentialNameEnum["CLIENT_ID"] = "clientId";
|
|
162
|
+
CredentialNameEnum["CLIENT_SECRET"] = "clientSecret";
|
|
163
|
+
CredentialNameEnum["BEARER_TOKEN"] = "bearerToken";
|
|
164
|
+
CredentialNameEnum["REFRESH_TOKEN"] = "refreshToken";
|
|
165
|
+
CredentialNameEnum["ACCESS_TOKEN"] = "accessToken";
|
|
166
|
+
})(CredentialNameEnum || (exports.CredentialNameEnum = CredentialNameEnum = {}));
|
|
167
|
+
exports.settingIdToSecretType = {
|
|
168
|
+
'point-system.telegramApiToken': CredentialNameEnum.API_TOKEN,
|
|
169
|
+
'point-system.discordClientId': CredentialNameEnum.CLIENT_ID,
|
|
170
|
+
'point-system.discordClientSecret': CredentialNameEnum.CLIENT_SECRET,
|
|
171
|
+
'point-system.twitterClientSecret': CredentialNameEnum.CLIENT_SECRET,
|
|
172
|
+
'point-system.twitterClientId': CredentialNameEnum.CLIENT_ID,
|
|
173
|
+
'point-system.twitterBearerToken': CredentialNameEnum.BEARER_TOKEN,
|
|
174
|
+
'point-system.twitterRefreshToken': CredentialNameEnum.REFRESH_TOKEN,
|
|
175
|
+
};
|
|
176
|
+
exports.requiredColors = [
|
|
177
|
+
'primary-1',
|
|
178
|
+
'primary-2',
|
|
179
|
+
'main-background',
|
|
180
|
+
'primary-text',
|
|
181
|
+
'module-background',
|
|
182
|
+
'buy-text',
|
|
183
|
+
'buy-background',
|
|
184
|
+
'sell-text',
|
|
185
|
+
'sell-background',
|
|
186
|
+
'secondary-text',
|
|
187
|
+
'input-background-default',
|
|
188
|
+
'input-background-hover',
|
|
189
|
+
'input-background-disabled',
|
|
190
|
+
'input-border-default',
|
|
191
|
+
'module-border',
|
|
192
|
+
'button-disabled',
|
|
193
|
+
'button-border',
|
|
194
|
+
'input-border-active',
|
|
195
|
+
'active-element-default',
|
|
196
|
+
'hover-element-default',
|
|
197
|
+
'dropdown-shadow',
|
|
198
|
+
'button-text',
|
|
199
|
+
'pair-active-row',
|
|
200
|
+
];
|
|
201
|
+
exports.defaultLogoSettingValue = `{"theme1":{"value":"${process.env.FRONTEND_URL}/Theme%3DDark.svg","active":true},"theme2":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true},"theme3":{"value":"${process.env.FRONTEND_URL}/Theme%3DLight.svg","active":true}}`;
|
|
202
|
+
exports.defaultThemeSettingValue = '{"theme1":{"name":"dark","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(1, 1, 1, 1)","primary-text":"rgba(255, 255, 255, 1)","module-background":"rgba(19, 23, 34, 1)","buy-text":"rgba(82, 164, 154, 1)","buy-background":"rgba(2, 199, 122, 0.25)","sell-text":"rgba(221, 94, 86, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","input-background-default":"rgba(13, 15, 21, 1)","input-background-hover":"rgba(28, 33, 45, 1)","input-background-disabled":"rgba(25, 29, 41, 1)","input-border-default":"rgba(28, 33, 45, 1)","module-border":"rgba(28, 33, 45, 1)","button-disabled":"rgba(111, 113, 118, 1)","button-border":"rgba(255, 255, 255, 1)","input-border-active":"rgba(185, 163, 238, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgba(28, 33, 45, 1)"}},"theme2":{"name":"light","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(249, 248, 248, 1)","primary-text":"rgba(0, 0, 0, 1)","module-background":"rgba(255, 255, 255, 1)","buy-text":"rgba(0, 112, 98, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-text":"rgba(195, 12, 1, 1)","sell-background":"rgba(255, 59, 105, 0.25)","secondary-text":"rgba(127, 127, 127, 1)","button-disabled":"rgba(203, 199, 199, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(249, 248, 248, 1)","input-border-default":"rgba(228, 225, 225, 1)","module-border":"rgba(228, 225, 225, 1)","button-border":"rgba(170, 167, 167, 1)","input-border-active":"rgba(0, 0, 0, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}},"theme3":{"name":"purple","active":true,"value":{"primary-1":"rgba(118, 63, 229, 1)","primary-2":"rgba(249, 132, 146, 1)","main-background":"rgba(255, 255, 255, 1)","primary-text":"rgba(0, 0, 0, 1)","secondary-text":"rgba(127, 127, 127, 1)","buy-text":"rgba(0, 112, 98, 1)","sell-text":"rgba(195, 12, 1, 1)","buy-background":"rgba(0, 112, 98, 0.25)","sell-background":"rgba(255, 59, 105, 0.25)","module-background":"rgba(254, 250, 255, 1)","module-border":"rgba(228, 225, 225, 1)","input-background-default":"rgba(255, 255, 255, 1)","input-background-hover":"rgba(249, 248, 248, 1)","input-background-disabled":"rgba(254, 250, 255, 1)","input-border-default":"rgba(228, 225, 225, 1)","input-border-active":"rgba(0, 0, 0, 1)","button-border":"rgba(170, 167, 167, 1)","button-disabled":"rgba(203, 199, 199, 1)","active-element-default":"rgba(230, 136, 150, 1)","hover-element-default":"rgba(185, 163, 238, 1)","dropdown-shadow":"rgba(154, 92, 253, 0.45)","button-text":"rgba(255, 255, 255, 1)","pair-active-row":"rgb(249, 248, 248)"}}}';
|
|
203
|
+
var defaultThemesValue;
|
|
204
|
+
(function (defaultThemesValue) {
|
|
205
|
+
defaultThemesValue["theme1"] = "{\"name\":\"dark\",\"id\":\"theme1\",\"active\":true, \"chartColors\":{\"bullish_candle_color\": \"rgba(2, 199, 122, 0.25)\",\"bearish_candle_color\": \"rgba(221, 94, 86, 1)\",\"bullish_wick_color\": \"rgba(2, 199, 122, 0.25)\",\"bearish_wick_color\": \"rgba(221, 94, 86, 1)\",\"bullish_outline_color\": \"rgba(2, 199, 122, 0.25)\",\"bearish_outline_color\": \"rgba(221, 94, 86, 1)\",\"line_color\": \"rgba(41, 98, 255, 1)\",\"chart_background\": \"rgba(19, 23, 34, 1)\",\"chart_text\": \"rgba(127, 127, 127, 1)\"}, \"colors\":{\"primary-1\":\"rgba(118, 63, 229, 1)\",\"primary-2\":\"rgba(249, 132, 146, 1)\",\"main-background\":\"rgba(1, 1, 1, 1)\",\"primary-text\":\"rgba(255, 255, 255, 1)\",\"module-background\":\"rgba(19, 23, 34, 1)\",\"buy-text\":\"rgba(82, 164, 154, 1)\",\"buy-background\":\"rgba(2, 199, 122, 0.25)\",\"sell-text\":\"rgba(221, 94, 86, 1)\",\"sell-background\":\"rgba(255, 59, 105, 0.25)\",\"secondary-text\":\"rgba(127, 127, 127, 1)\",\"input-background-default\":\"rgba(13, 15, 21, 1)\",\"input-background-hover\":\"rgba(28, 33, 45, 1)\",\"input-background-disabled\":\"rgba(25, 29, 41, 1)\",\"input-border-default\":\"rgba(28, 33, 45, 1)\",\"module-border\":\"rgba(28, 33, 45, 1)\",\"button-disabled\":\"rgba(111, 113, 118, 1)\",\"button-border\":\"rgba(255, 255, 255, 1)\",\"input-border-active\":\"rgba(185, 163, 238, 1)\",\"active-element-default\":\"rgba(230, 136, 150, 1)\",\"hover-element-default\":\"rgba(185, 163, 238, 1)\",\"dropdown-shadow\":\"rgba(154, 92, 253, 0.45)\",\"button-text\":\"rgba(255, 255, 255, 1)\",\"pair-active-row\":\"rgba(28, 33, 45, 1)\"}}";
|
|
206
|
+
defaultThemesValue["theme2"] = "{\"name\":\"light\",\"id\":\"theme2\",\"active\":true, \"chartColors\":{\"bullish_candle_color\": \"rgba(0, 112, 98, 1)\",\"bearish_candle_color\": \"rgba(195, 12, 1, 1)\",\"bullish_wick_color\": \"rgba(0, 112, 98, 1)\",\"bearish_wick_color\": \"rgba(195, 12, 1, 1)\",\"bullish_outline_color\": \"rgba(0, 112, 98, 1)\",\"bearish_outline_color\": \"rgba(195, 12, 1, 1)\",\"line_color\": \"rgba(41, 98, 255, 1)\",\"chart_background\": \"rgba(255, 255, 255, 1)\",\"chart_text\": \"rgba(127, 127, 127, 1)\"}, \"colors\":{\"primary-1\":\"rgba(118, 63, 229, 1)\",\"primary-2\":\"rgba(249, 132, 146, 1)\",\"main-background\":\"rgba(249, 248, 248, 1)\",\"primary-text\":\"rgba(0, 0, 0, 1)\",\"module-background\":\"rgba(255, 255, 255, 1)\",\"buy-text\":\"rgba(0, 112, 98, 1)\",\"buy-background\":\"rgba(0, 112, 98, 0.25)\",\"sell-text\":\"rgba(195, 12, 1, 1)\",\"sell-background\":\"rgba(255, 59, 105, 0.25)\",\"secondary-text\":\"rgba(127, 127, 127, 1)\",\"button-disabled\":\"rgba(203, 199, 199, 1)\",\"input-background-default\":\"rgba(255, 255, 255, 1)\",\"input-background-hover\":\"rgba(249, 248, 248, 1)\",\"input-background-disabled\":\"rgba(249, 248, 248, 1)\",\"input-border-default\":\"rgba(228, 225, 225, 1)\",\"module-border\":\"rgba(228, 225, 225, 1)\",\"button-border\":\"rgba(170, 167, 167, 1)\",\"input-border-active\":\"rgba(0, 0, 0, 1)\",\"active-element-default\":\"rgba(230, 136, 150, 1)\",\"hover-element-default\":\"rgba(185, 163, 238, 1)\",\"dropdown-shadow\":\"rgba(154, 92, 253, 0.45)\",\"button-text\":\"rgba(255, 255, 255, 1)\",\"pair-active-row\":\"rgb(249, 248, 248)\"}}";
|
|
207
|
+
defaultThemesValue["theme3"] = "{\"name\":\"purple\",\"id\":\"theme3\",\"active\":true, \"chartColors\":{\"bullish_candle_color\": \"rgba(0, 112, 98, 1)\",\"bearish_candle_color\": \"rgba(195, 12, 1, 1)\",\"bullish_wick_color\": \"rgba(0, 112, 98, 1)\",\"bearish_wick_color\": \"rgba(195, 12, 1, 1)\",\"bullish_outline_color\": \"rgba(0, 112, 98, 1)\",\"bearish_outline_color\": \"rgba(195, 12, 1, 1)\",\"line_color\": \"rgba(41, 98, 255, 1)\",\"chart_background\": \"rgba(254, 250, 255, 1)\",\"chart_text\": \"rgba(127, 127, 127, 1)\"}, \"colors\":{\"primary-1\":\"rgba(118, 63, 229, 1)\",\"primary-2\":\"rgba(249, 132, 146, 1)\",\"main-background\":\"rgba(255, 255, 255, 1)\",\"primary-text\":\"rgba(0, 0, 0, 1)\",\"secondary-text\":\"rgba(127, 127, 127, 1)\",\"buy-text\":\"rgba(0, 112, 98, 1)\",\"sell-text\":\"rgba(195, 12, 1, 1)\",\"buy-background\":\"rgba(0, 112, 98, 0.25)\",\"sell-background\":\"rgba(255, 59, 105, 0.25)\",\"module-background\":\"rgba(254, 250, 255, 1)\",\"module-border\":\"rgba(228, 225, 225, 1)\",\"input-background-default\":\"rgba(255, 255, 255, 1)\",\"input-background-hover\":\"rgba(249, 248, 248, 1)\",\"input-background-disabled\":\"rgba(254, 250, 255, 1)\",\"input-border-default\":\"rgba(228, 225, 225, 1)\",\"input-border-active\":\"rgba(0, 0, 0, 1)\",\"button-border\":\"rgba(170, 167, 167, 1)\",\"button-disabled\":\"rgba(203, 199, 199, 1)\",\"active-element-default\":\"rgba(230, 136, 150, 1)\",\"hover-element-default\":\"rgba(185, 163, 238, 1)\",\"dropdown-shadow\":\"rgba(154, 92, 253, 0.45)\",\"button-text\":\"rgba(255, 255, 255, 1)\",\"pair-active-row\":\"rgb(249, 248, 248)\"}}";
|
|
208
|
+
})(defaultThemesValue || (exports.defaultThemesValue = defaultThemesValue = {}));
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
/***/ }),
|
|
212
|
+
|
|
213
|
+
/***/ 7359:
|
|
214
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
218
|
+
exports.ChartQueryDto = exports.StatisticTypeQuery = exports.UsersQueryDto = exports.PairsQueryDto = exports.SmallTimeframeEnum = void 0;
|
|
219
|
+
var SmallTimeframeEnum;
|
|
220
|
+
(function (SmallTimeframeEnum) {
|
|
221
|
+
SmallTimeframeEnum["last_7_days"] = "last_7_days";
|
|
222
|
+
SmallTimeframeEnum["last_30_days"] = "last_30_days";
|
|
223
|
+
SmallTimeframeEnum["last_90_days"] = "last_90_days";
|
|
224
|
+
SmallTimeframeEnum["last_year"] = "last_year";
|
|
225
|
+
})(SmallTimeframeEnum || (exports.SmallTimeframeEnum = SmallTimeframeEnum = {}));
|
|
226
|
+
class PairsQueryDto {
|
|
227
|
+
constructor() {
|
|
228
|
+
this.timeRange = SmallTimeframeEnum.last_30_days;
|
|
229
|
+
this.sortBy = 'volume_usd';
|
|
230
|
+
this.order = 'desc';
|
|
231
|
+
this.limit = 20;
|
|
232
|
+
this.page = 1;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
exports.PairsQueryDto = PairsQueryDto;
|
|
236
|
+
class UsersQueryDto {
|
|
237
|
+
constructor() {
|
|
238
|
+
this.timeRange = SmallTimeframeEnum.last_30_days;
|
|
239
|
+
this.sortBy = 'volume_usd';
|
|
240
|
+
this.order = 'desc';
|
|
241
|
+
this.limit = 20;
|
|
242
|
+
this.page = 1;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
exports.UsersQueryDto = UsersQueryDto;
|
|
246
|
+
var StatisticTypeQuery;
|
|
247
|
+
(function (StatisticTypeQuery) {
|
|
248
|
+
StatisticTypeQuery["volume"] = "volume";
|
|
249
|
+
StatisticTypeQuery["fees"] = "fees";
|
|
250
|
+
StatisticTypeQuery["orders"] = "orders";
|
|
251
|
+
StatisticTypeQuery["dau"] = "dau";
|
|
252
|
+
})(StatisticTypeQuery || (exports.StatisticTypeQuery = StatisticTypeQuery = {}));
|
|
253
|
+
class ChartQueryDto {
|
|
254
|
+
constructor() {
|
|
255
|
+
this.type = StatisticTypeQuery.volume;
|
|
256
|
+
this.timeRange = SmallTimeframeEnum.last_7_days;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
exports.ChartQueryDto = ChartQueryDto;
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
/***/ }),
|
|
263
|
+
|
|
264
|
+
/***/ 9181:
|
|
265
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
//--import { Asset } from "@ultrade/shared/db/entities/market/asset.entity";
|
|
269
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
270
|
+
exports.AmmBucketKeys = exports.VALIDATOR_APP_ID = exports.CONTRACT_VERSION = exports.AmmForeignResources = exports.AmmChars = exports.AmmIds = exports.PoolType = void 0;
|
|
271
|
+
var PoolType;
|
|
272
|
+
(function (PoolType) {
|
|
273
|
+
PoolType["STABLE"] = "stable";
|
|
274
|
+
PoolType["CPMM"] = "constant_product";
|
|
275
|
+
PoolType["LEND"] = "lending";
|
|
276
|
+
PoolType["NANO"] = "nano";
|
|
277
|
+
PoolType["MVNANO"] = "mvnano";
|
|
278
|
+
})(PoolType || (exports.PoolType = PoolType = {}));
|
|
279
|
+
var AmmIds;
|
|
280
|
+
(function (AmmIds) {
|
|
281
|
+
AmmIds[AmmIds["ultrade"] = 0] = "ultrade";
|
|
282
|
+
AmmIds[AmmIds["tinyman"] = 1] = "tinyman";
|
|
283
|
+
AmmIds[AmmIds["pactfi"] = 2] = "pactfi";
|
|
284
|
+
AmmIds[AmmIds["humble"] = 3] = "humble";
|
|
285
|
+
AmmIds[AmmIds["algofi"] = 4] = "algofi";
|
|
286
|
+
})(AmmIds || (exports.AmmIds = AmmIds = {}));
|
|
287
|
+
var AmmChars;
|
|
288
|
+
(function (AmmChars) {
|
|
289
|
+
AmmChars["ultrade"] = "U";
|
|
290
|
+
AmmChars["tinyman"] = "T";
|
|
291
|
+
AmmChars["pactfi"] = "P";
|
|
292
|
+
AmmChars["humble"] = "H";
|
|
293
|
+
AmmChars["algofi"] = "A";
|
|
294
|
+
})(AmmChars || (exports.AmmChars = AmmChars = {}));
|
|
295
|
+
var AmmForeignResources;
|
|
296
|
+
(function (AmmForeignResources) {
|
|
297
|
+
AmmForeignResources[AmmForeignResources["ultrade"] = 1] = "ultrade";
|
|
298
|
+
AmmForeignResources[AmmForeignResources["tinyman"] = 2] = "tinyman";
|
|
299
|
+
AmmForeignResources[AmmForeignResources["pactfi"] = 1] = "pactfi";
|
|
300
|
+
AmmForeignResources[AmmForeignResources["humble"] = 1] = "humble";
|
|
301
|
+
AmmForeignResources[AmmForeignResources["algofi"] = 2] = "algofi";
|
|
302
|
+
})(AmmForeignResources || (exports.AmmForeignResources = AmmForeignResources = {}));
|
|
303
|
+
exports.CONTRACT_VERSION = {
|
|
304
|
+
V1_1: 'v1_1',
|
|
305
|
+
V2: 'v2',
|
|
306
|
+
};
|
|
307
|
+
exports.VALIDATOR_APP_ID = {
|
|
308
|
+
[exports.CONTRACT_VERSION.V1_1]: {
|
|
309
|
+
testnet: 62368684,
|
|
310
|
+
mainnet: 552635992,
|
|
311
|
+
},
|
|
312
|
+
[exports.CONTRACT_VERSION.V2]: {
|
|
313
|
+
testnet: 148607000,
|
|
314
|
+
mainnet: 1002541853,
|
|
315
|
+
},
|
|
316
|
+
};
|
|
317
|
+
var AmmBucketKeys;
|
|
318
|
+
(function (AmmBucketKeys) {
|
|
319
|
+
AmmBucketKeys["ASSETS"] = "assets.json";
|
|
320
|
+
AmmBucketKeys["TOP_ASSETS"] = "topAssets.json";
|
|
321
|
+
})(AmmBucketKeys || (exports.AmmBucketKeys = AmmBucketKeys = {}));
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
/***/ })
|
|
325
|
+
|
|
326
|
+
/******/ });
|
|
327
|
+
/************************************************************************/
|
|
328
|
+
/******/ // The module cache
|
|
329
|
+
/******/ var __webpack_module_cache__ = {};
|
|
330
|
+
/******/
|
|
331
|
+
/******/ // The require function
|
|
332
|
+
/******/ function __webpack_require__(moduleId) {
|
|
333
|
+
/******/ // Check if module is in cache
|
|
334
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
335
|
+
/******/ if (cachedModule !== undefined) {
|
|
336
|
+
/******/ return cachedModule.exports;
|
|
337
|
+
/******/ }
|
|
338
|
+
/******/ // Create a new module (and put it into the cache)
|
|
339
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
340
|
+
/******/ // no module.id needed
|
|
341
|
+
/******/ // no module.loaded needed
|
|
342
|
+
/******/ exports: {}
|
|
343
|
+
/******/ };
|
|
344
|
+
/******/
|
|
345
|
+
/******/ // Execute the module function
|
|
346
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
347
|
+
/******/
|
|
348
|
+
/******/ // Return the exports of the module
|
|
349
|
+
/******/ return module.exports;
|
|
350
|
+
/******/ }
|
|
351
|
+
/******/
|
|
352
|
+
/************************************************************************/
|
|
353
|
+
var __webpack_exports__ = {};
|
|
354
|
+
// This entry needs to be wrapped in an IIFE because it uses a non-standard name for the exports (exports).
|
|
355
|
+
(() => {
|
|
356
|
+
var exports = __webpack_exports__;
|
|
357
|
+
|
|
358
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
359
|
+
exports.transformPointSystemSettings = void 0;
|
|
360
|
+
const _types_1 = __webpack_require__(3574);
|
|
361
|
+
const transformPointSystemSettings = (pointSystemSettings) => {
|
|
362
|
+
const settingsObj = {};
|
|
363
|
+
pointSystemSettings.forEach(({ settingId, value, setting }) => {
|
|
364
|
+
if (setting.type === 'boolean') {
|
|
365
|
+
settingsObj[settingId] = value === 'true';
|
|
366
|
+
}
|
|
367
|
+
else {
|
|
368
|
+
settingsObj[settingId] = value;
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
return {
|
|
372
|
+
discordEnabled: settingsObj[_types_1.SettingIds.POINT_SYSTEM_DISCORD_ENABLED],
|
|
373
|
+
telegramBotName: settingsObj[_types_1.SettingIds.POINT_SYSTEM_TELEGRAM_BOT_NAME],
|
|
374
|
+
telegramBotId: settingsObj[_types_1.SettingIds.POINT_SYSTEM_TELEGRAM_BOT_ID],
|
|
375
|
+
telegramEnabled: settingsObj[_types_1.SettingIds.POINT_SYSTEM_TELEGRAM_ENABLED],
|
|
376
|
+
telegramGroupId: settingsObj[_types_1.SettingIds.POINT_SYSTEM_TELEGRAM_GROUP_ID],
|
|
377
|
+
telegramGroupName: settingsObj[_types_1.SettingIds.POINT_SYSTEM_TELEGRAM_GROUP_NAME],
|
|
378
|
+
twitterAccountId: settingsObj[_types_1.SettingIds.POINT_SYSTEM_TWITTER_ACCOUNT_ID],
|
|
379
|
+
twitterAccountName: settingsObj[_types_1.SettingIds.POINT_SYSTEM_TWITTER_ACCOUNT_NAME],
|
|
380
|
+
twitterEnabled: settingsObj[_types_1.SettingIds.POINT_SYSTEM_TWITTER_ENABLED],
|
|
381
|
+
twitterJobEnabled: settingsObj[_types_1.SettingIds.POINT_SYSTEM_TWITTER_JOB_ENABLED],
|
|
382
|
+
guideLink: settingsObj[_types_1.SettingIds.POINT_SYSTEM_GUIDE_LINK],
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
exports.transformPointSystemSettings = transformPointSystemSettings;
|
|
386
|
+
|
|
387
|
+
})();
|
|
388
|
+
|
|
389
|
+
/******/ return __webpack_exports__;
|
|
390
|
+
/******/ })()
|
|
391
|
+
;
|
|
392
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Candle, Ticker } from "../interfaces/timestream.interface";
|
|
2
|
+
export declare function groupTickersByInterval(tickers: Ticker[], newIntervalInSec: number, endTimeInSec: number): Ticker[];
|
|
3
|
+
export declare function groupTickersByMonthInterval(tickers: Ticker[], months: number, endTimeInSec: number): Ticker[];
|
|
4
|
+
export declare function groupTickersByYearInterval(tickers: Ticker[], years: number, endTimeInSec: number): Ticker[];
|
|
5
|
+
export declare function mapCandleToTicker(candle: Omit<Candle, 'tradeCount'>): Ticker;
|
|
6
|
+
export declare function roundUpSecondsInTimestamp(timeInSec: number): number;
|
|
7
|
+
export declare function roundUpMinutesInTimestamp(timeInSec: number): number;
|
|
8
|
+
export declare function roundUpHoursInTimestamp(timeInSec: number): number;
|