@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.
Files changed (189) hide show
  1. package/dist/baseModel/base.model.d.ts +26 -0
  2. package/dist/baseModel/index.d.ts +2 -0
  3. package/dist/common/auth.helper.d.ts +4 -0
  4. package/dist/common/auth.helper.js +367 -0
  5. package/dist/common/awsKms.d.ts +2 -0
  6. package/dist/common/awsKms.js +265 -0
  7. package/dist/common/big-number.helper.d.ts +38 -0
  8. package/dist/common/big-number.helper.js +263 -0
  9. package/dist/common/index.d.ts +11 -0
  10. package/dist/common/index.js +2541 -0
  11. package/dist/common/indexer.helper.d.ts +2 -0
  12. package/dist/common/indexer.helper.js +387 -0
  13. package/dist/common/logger.d.ts +32 -0
  14. package/dist/common/logger.js +188 -0
  15. package/dist/common/mappers/codexAsset.mapper.d.ts +2 -0
  16. package/dist/common/mappers/codexAsset.mapper.js +40 -0
  17. package/dist/common/mappers/codexBalance.mapper.d.ts +2 -0
  18. package/dist/common/mappers/codexBalance.mapper.js +38 -0
  19. package/dist/common/mappers/index.d.ts +3 -0
  20. package/dist/common/mappers/index.js +1421 -0
  21. package/dist/common/mappers/trade.mapper.d.ts +6 -0
  22. package/dist/common/mappers/trade.mapper.js +1343 -0
  23. package/dist/common/migration.helpers.d.ts +4 -0
  24. package/dist/common/migration.helpers.js +44 -0
  25. package/dist/common/redis.helper.d.ts +27 -0
  26. package/dist/common/redis.helper.js +269 -0
  27. package/dist/common/secret.helper.d.ts +28 -0
  28. package/dist/common/secret.helper.js +144 -0
  29. package/dist/common/timestamp.helper.d.ts +1 -0
  30. package/dist/common/timestamp.helper.js +41 -0
  31. package/dist/common/utils/assert.d.ts +1 -0
  32. package/dist/common/utils/assert.js +32 -0
  33. package/dist/common/utils/decode.d.ts +5 -0
  34. package/dist/common/utils/decode.js +206 -0
  35. package/dist/common/utils/index.d.ts +9 -0
  36. package/dist/common/utils/index.js +122 -0
  37. package/dist/common/utils/social.d.ts +1 -0
  38. package/dist/common/utils/social.js +30 -0
  39. package/dist/common/utils/stat.d.ts +1 -0
  40. package/dist/common/utils/stat.js +274 -0
  41. package/dist/constants/allowedUrls.d.ts +1 -0
  42. package/dist/constants/auth.d.ts +2 -0
  43. package/dist/constants/cctp.d.ts +3 -0
  44. package/dist/constants/codex.d.ts +11 -0
  45. package/dist/constants/env.d.ts +6 -0
  46. package/dist/constants/index.d.ts +7 -0
  47. package/dist/constants/index.js +455 -0
  48. package/dist/constants/queue.d.ts +39 -0
  49. package/dist/constants/response.d.ts +82 -0
  50. package/dist/constants/settings.d.ts +2 -0
  51. package/dist/constants/social.d.ts +3 -0
  52. package/dist/constants/withdrawalWalletsMessage.d.ts +1 -0
  53. package/dist/enums/chains.enum.d.ts +50 -0
  54. package/dist/enums/db/account/index.d.ts +19 -0
  55. package/dist/enums/db/affiliate.enum.d.ts +7 -0
  56. package/dist/enums/db/available-pair-settings.enum.d.ts +12 -0
  57. package/dist/enums/db/chains.d.ts +30 -0
  58. package/dist/enums/db/common.enum.d.ts +4 -0
  59. package/dist/enums/db/component/index.d.ts +22 -0
  60. package/dist/enums/db/index.d.ts +21 -0
  61. package/dist/enums/db/market-maker.enum.d.ts +15 -0
  62. package/dist/enums/db/notification-center/userNotification.enum.d.ts +36 -0
  63. package/dist/enums/db/order-side.enum.d.ts +5 -0
  64. package/dist/enums/db/order-status.enum.d.ts +8 -0
  65. package/dist/enums/db/order-type.enum.d.ts +7 -0
  66. package/dist/enums/db/pending-actions.enum.d.ts +6 -0
  67. package/dist/enums/db/relayer.enum.d.ts +23 -0
  68. package/dist/enums/db/setting-type.enum.d.ts +8 -0
  69. package/dist/enums/db/social-action.enum.d.ts +24 -0
  70. package/dist/enums/db/social-prompt.enum.d.ts +8 -0
  71. package/dist/enums/db/social.enum.d.ts +10 -0
  72. package/dist/enums/db/state-type.enum.d.ts +9 -0
  73. package/dist/enums/db/trade.enums.d.ts +10 -0
  74. package/dist/enums/db/tradingKeyType.enum.d.ts +4 -0
  75. package/dist/enums/db/upgrade.enum.d.ts +5 -0
  76. package/dist/enums/db/withdrawal-wallet.enum.d.ts +5 -0
  77. package/dist/enums/index.d.ts +5 -0
  78. package/dist/enums/index.js +893 -0
  79. package/dist/enums/maintenanceMode.enum.d.ts +10 -0
  80. package/dist/enums/notification.enum.d.ts +7 -0
  81. package/dist/enums/social.enum.d.ts +10 -0
  82. package/dist/helpers/Encoding.d.ts +33 -0
  83. package/dist/helpers/Encoding.js +318 -0
  84. package/dist/helpers/algo.helper.d.ts +14 -0
  85. package/dist/helpers/algo.helper.js +1211 -0
  86. package/dist/helpers/api.helper.d.ts +16 -0
  87. package/dist/helpers/api.helper.js +1652 -0
  88. package/dist/helpers/assert.helper.d.ts +10 -0
  89. package/dist/helpers/assert.helper.js +1677 -0
  90. package/dist/helpers/atomic.helper.d.ts +21 -0
  91. package/dist/helpers/atomic.helper.js +712 -0
  92. package/dist/helpers/balance.helper.d.ts +13 -0
  93. package/dist/helpers/balance.helper.js +4330 -0
  94. package/dist/helpers/codex/common.helper.d.ts +24 -0
  95. package/dist/helpers/codex/common.helper.js +4246 -0
  96. package/dist/helpers/codex/index.d.ts +6 -0
  97. package/dist/helpers/codex/index.js +4246 -0
  98. package/dist/helpers/codex/mbr.helper.d.ts +6 -0
  99. package/dist/helpers/codex/mbr.helper.js +4246 -0
  100. package/dist/helpers/codex/mna.helper.d.ts +2 -0
  101. package/dist/helpers/codex/mna.helper.js +4246 -0
  102. package/dist/helpers/codex/order.helper.d.ts +6 -0
  103. package/dist/helpers/codex/order.helper.js +4246 -0
  104. package/dist/helpers/codex/setGlobal.helper.d.ts +27 -0
  105. package/dist/helpers/codex/setGlobal.helper.js +4312 -0
  106. package/dist/helpers/codex/transfer.helper.d.ts +21 -0
  107. package/dist/helpers/codex/transfer.helper.js +4246 -0
  108. package/dist/helpers/codex/txn.helper.d.ts +13 -0
  109. package/dist/helpers/codex/txn.helper.js +4246 -0
  110. package/dist/helpers/codex.helper.d.ts +106 -0
  111. package/dist/helpers/codex.helper.js +4246 -0
  112. package/dist/helpers/email.helper.d.ts +5 -0
  113. package/dist/helpers/email.helper.js +112 -0
  114. package/dist/helpers/eth.helper.d.ts +12 -0
  115. package/dist/helpers/eth.helper.js +4246 -0
  116. package/dist/helpers/hummingbots.helper.d.ts +2 -0
  117. package/dist/helpers/hummingbots.helper.js +163 -0
  118. package/dist/helpers/index.d.ts +5 -0
  119. package/dist/helpers/index.js +837 -0
  120. package/dist/helpers/interval.helpers.d.ts +9 -0
  121. package/dist/helpers/interval.helpers.js +110 -0
  122. package/dist/helpers/liquidity.helper.d.ts +6 -0
  123. package/dist/helpers/liquidity.helper.js +81 -0
  124. package/dist/helpers/order.helper.d.ts +7 -0
  125. package/dist/helpers/order.helper.js +946 -0
  126. package/dist/helpers/pair.helper.d.ts +9 -0
  127. package/dist/helpers/pair.helper.js +938 -0
  128. package/dist/helpers/pointSystem.helper.d.ts +14 -0
  129. package/dist/helpers/pointSystem.helper.js +392 -0
  130. package/dist/helpers/ticker.helpers.d.ts +8 -0
  131. package/dist/helpers/ticker.helpers.js +358 -0
  132. package/dist/helpers/vaa.helper.d.ts +2 -0
  133. package/dist/helpers/vaa.helper.js +4350 -0
  134. package/dist/helpers/withdraw.helper.d.ts +14 -0
  135. package/dist/helpers/withdraw.helper.js +4784 -0
  136. package/dist/interfaces/accountInfo.interface.d.ts +15 -0
  137. package/dist/interfaces/algostreamer/index.d.ts +49 -0
  138. package/dist/interfaces/api/affiliate.interface.d.ts +71 -0
  139. package/dist/interfaces/cache.interface.d.ts +25 -0
  140. package/dist/interfaces/confirmed-txn.interface.d.ts +46 -0
  141. package/dist/interfaces/controller.interface.d.ts +6 -0
  142. package/dist/interfaces/db/baseModel.interface.d.ts +5 -0
  143. package/dist/interfaces/db/hummingbot/index.d.ts +18 -0
  144. package/dist/interfaces/db/index.d.ts +10 -0
  145. package/dist/interfaces/db/market/index.d.ts +313 -0
  146. package/dist/interfaces/db/marketing/index.d.ts +48 -0
  147. package/dist/interfaces/db/notification_center/index.d.ts +33 -0
  148. package/dist/interfaces/db/relayer/index.d.ts +56 -0
  149. package/dist/interfaces/db/social/index.d.ts +188 -0
  150. package/dist/interfaces/db/softDeleteModel.interface.d.ts +4 -0
  151. package/dist/interfaces/db/white_label/index.d.ts +161 -0
  152. package/dist/interfaces/db/withdrawal_wallets/index.d.ts +12 -0
  153. package/dist/interfaces/dto/index.d.ts +62 -0
  154. package/dist/interfaces/emailService.interface.d.ts +4 -0
  155. package/dist/interfaces/index.d.ts +17 -0
  156. package/dist/interfaces/index.js +1319 -0
  157. package/dist/interfaces/kmsService.interface.d.ts +4 -0
  158. package/dist/interfaces/last-look-trade.interface.d.ts +10 -0
  159. package/dist/interfaces/market.interface.d.ts +17 -0
  160. package/dist/interfaces/order.interface.d.ts +162 -0
  161. package/dist/interfaces/pair.interface.d.ts +10 -0
  162. package/dist/interfaces/query.interface.d.ts +6 -0
  163. package/dist/interfaces/services/accountCache.interface.d.ts +15 -0
  164. package/dist/interfaces/services/algod.interface.d.ts +5 -0
  165. package/dist/interfaces/services/balances.interface.d.ts +11 -0
  166. package/dist/interfaces/services/coin-market-cap.interface.d.ts +124 -0
  167. package/dist/interfaces/services/index.d.ts +8 -0
  168. package/dist/interfaces/services/price-model.interface.d.ts +4 -0
  169. package/dist/interfaces/services/price-service.interface.d.ts +8 -0
  170. package/dist/interfaces/services/socialActivity.interface.d.ts +48 -0
  171. package/dist/interfaces/services/tmc.interface.d.ts +9 -0
  172. package/dist/interfaces/streaming.interface.d.ts +95 -0
  173. package/dist/interfaces/timestream.interface.d.ts +29 -0
  174. package/dist/interfaces/trading.interface.d.ts +235 -0
  175. package/dist/interfaces/tradingKey.interface.d.ts +26 -0
  176. package/dist/interfaces/transfer.interface.d.ts +12 -0
  177. package/dist/interfaces/wallet.interface.d.ts +89 -0
  178. package/dist/interfaces/withdrawalWallets.interface.d.ts +14 -0
  179. package/dist/types/algo-order.type.d.ts +10 -0
  180. package/dist/types/amm/amm.d.ts +163 -0
  181. package/dist/types/api/request.types.d.ts +99 -0
  182. package/dist/types/codex.types.d.ts +28 -0
  183. package/dist/types/hummingbots.types.d.ts +23 -0
  184. package/dist/types/index.d.ts +8 -0
  185. package/dist/types/index.js +362 -0
  186. package/dist/types/notification.type.d.ts +10 -0
  187. package/dist/types/settings.type.d.ts +162 -0
  188. package/dist/types/state.type.d.ts +4 -0
  189. package/package.json +78 -0
@@ -0,0 +1,1677 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("bignumber.js"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define(["bignumber.js"], factory);
6
+ else {
7
+ var a = typeof exports === 'object' ? factory(require("bignumber.js")) : factory(root["bignumber.js"]);
8
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
+ }
10
+ })(global, (__WEBPACK_EXTERNAL_MODULE__6168__) => {
11
+ return /******/ (() => { // webpackBootstrap
12
+ /******/ "use strict";
13
+ /******/ var __webpack_modules__ = ({
14
+
15
+ /***/ 661:
16
+ /***/ ((__unused_webpack_module, exports) => {
17
+
18
+
19
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
20
+ exports.WITHDRAW_DATA_BYTES_LENGTH = exports.SHARE_DATA_LENGTH = exports.MAX_TOKEN_DECIMAL = exports.ORDER_MSG_VERSION = exports.ORDER_DATA_BYTES_LENGTH = exports.MIN_ORDER_EXPIRATION_MINS = exports.DEFAULT_ORDER_EXPIRATION_DAYS = exports.DEFAULT_FEE_SHARE = exports.FRONTEND_FEE_SCALE = exports.FEE_SCALE = exports.FACTOR_PRICE_DECIMAL = void 0;
21
+ exports.FACTOR_PRICE_DECIMAL = 18;
22
+ exports.FEE_SCALE = 100000;
23
+ exports.FRONTEND_FEE_SCALE = exports.FEE_SCALE / 100;
24
+ exports.DEFAULT_FEE_SHARE = 90000;
25
+ exports.DEFAULT_ORDER_EXPIRATION_DAYS = 30;
26
+ exports.MIN_ORDER_EXPIRATION_MINS = 60;
27
+ exports.ORDER_DATA_BYTES_LENGTH = 328;
28
+ exports.ORDER_MSG_VERSION = 1;
29
+ exports.MAX_TOKEN_DECIMAL = 18;
30
+ exports.SHARE_DATA_LENGTH = 36;
31
+ exports.WITHDRAW_DATA_BYTES_LENGTH = 248;
32
+
33
+
34
+ /***/ }),
35
+
36
+ /***/ 835:
37
+ /***/ ((__unused_webpack_module, exports) => {
38
+
39
+
40
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
41
+ var OrderSide;
42
+ (function (OrderSide) {
43
+ OrderSide[OrderSide["Buy"] = 0] = "Buy";
44
+ OrderSide[OrderSide["Sell"] = 1] = "Sell";
45
+ })(OrderSide || (OrderSide = {}));
46
+ exports["default"] = OrderSide;
47
+
48
+
49
+ /***/ }),
50
+
51
+ /***/ 892:
52
+ /***/ ((__unused_webpack_module, exports) => {
53
+
54
+
55
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
56
+ exports.PairComponentStatusType = exports.ComponentType = exports.ComponentStatusType = void 0;
57
+ var ComponentStatusType;
58
+ (function (ComponentStatusType) {
59
+ ComponentStatusType["ACTIVE"] = "ACTIVE";
60
+ ComponentStatusType["FAILED"] = "FAILED";
61
+ ComponentStatusType["STARTING"] = "STARTING";
62
+ ComponentStatusType["DRAINING"] = "DRAINING";
63
+ ComponentStatusType["TERMINATING"] = "TERMINATING";
64
+ ComponentStatusType["TERMINATED"] = "TERMINATED";
65
+ })(ComponentStatusType || (exports.ComponentStatusType = ComponentStatusType = {}));
66
+ var ComponentType;
67
+ (function (ComponentType) {
68
+ ComponentType["MATCHING_ENGINE"] = "me";
69
+ ComponentType["ORDER_SERVICE"] = "ors";
70
+ ComponentType["API"] = "api";
71
+ ComponentType["SOCKET_SERVICE"] = "ws";
72
+ ComponentType["TRANSACTION_SERVICE"] = "tns";
73
+ })(ComponentType || (exports.ComponentType = ComponentType = {}));
74
+ var PairComponentStatusType;
75
+ (function (PairComponentStatusType) {
76
+ PairComponentStatusType["ACTIVE"] = "ACTIVE";
77
+ PairComponentStatusType["FAILED"] = "FAILED";
78
+ PairComponentStatusType["UNASSIGNED"] = "UNASSIGNED";
79
+ PairComponentStatusType["ASSIGNED"] = "ASSIGNED";
80
+ PairComponentStatusType["STARTING"] = "STARTING";
81
+ })(PairComponentStatusType || (exports.PairComponentStatusType = PairComponentStatusType = {}));
82
+
83
+
84
+ /***/ }),
85
+
86
+ /***/ 893:
87
+ /***/ ((__unused_webpack_module, exports) => {
88
+
89
+
90
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
91
+ exports.NON_REPEATABLE_ACTIONS = exports.ActionEnum = exports.ActionSource = void 0;
92
+ var ActionSource;
93
+ (function (ActionSource) {
94
+ ActionSource["COMPANY"] = "COMPANY";
95
+ ActionSource["TWITTER"] = "TWITTER";
96
+ ActionSource["DISCORD"] = "DISCORD";
97
+ ActionSource["TELEGRAM"] = "TELEGRAM";
98
+ })(ActionSource || (exports.ActionSource = ActionSource = {}));
99
+ var ActionEnum;
100
+ (function (ActionEnum) {
101
+ ActionEnum[ActionEnum["TWITTER_FOLLOW"] = 1] = "TWITTER_FOLLOW";
102
+ ActionEnum[ActionEnum["TWITTER_REPLY"] = 2] = "TWITTER_REPLY";
103
+ ActionEnum[ActionEnum["TWITTER_RETWEET"] = 3] = "TWITTER_RETWEET";
104
+ ActionEnum[ActionEnum["TWITTER_LIKE"] = 4] = "TWITTER_LIKE";
105
+ ActionEnum[ActionEnum["COMPANY_FIRST_LOGIN"] = 5] = "COMPANY_FIRST_LOGIN";
106
+ ActionEnum[ActionEnum["COMPANY_CONFIRM_EMAIL"] = 6] = "COMPANY_CONFIRM_EMAIL";
107
+ ActionEnum[ActionEnum["COMPANY_DEPOSIT"] = 7] = "COMPANY_DEPOSIT";
108
+ ActionEnum[ActionEnum["COMPANY_TRADE"] = 8] = "COMPANY_TRADE";
109
+ ActionEnum[ActionEnum["TELEGRAM_JOIN_GROUP"] = 9] = "TELEGRAM_JOIN_GROUP";
110
+ ActionEnum[ActionEnum["DISCORD_JOIN_SERVER"] = 10] = "DISCORD_JOIN_SERVER";
111
+ ActionEnum[ActionEnum["AFFILIATE_POINTS_REWARD"] = 11] = "AFFILIATE_POINTS_REWARD";
112
+ })(ActionEnum || (exports.ActionEnum = ActionEnum = {}));
113
+ exports.NON_REPEATABLE_ACTIONS = [
114
+ ActionEnum.TWITTER_FOLLOW,
115
+ ActionEnum.TELEGRAM_JOIN_GROUP,
116
+ ActionEnum.DISCORD_JOIN_SERVER,
117
+ ActionEnum.COMPANY_CONFIRM_EMAIL,
118
+ ActionEnum.COMPANY_FIRST_LOGIN,
119
+ ];
120
+
121
+
122
+ /***/ }),
123
+
124
+ /***/ 935:
125
+ /***/ ((__unused_webpack_module, exports) => {
126
+
127
+
128
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
129
+ exports.SERVER = exports.CALCULATIONS = exports.BIGNUMBER = exports.RES_MSG = exports.RESPONSES = void 0;
130
+ exports.RESPONSES = {
131
+ SUCCESS: 200,
132
+ CREATED: 201,
133
+ ACCEPTED: 202,
134
+ NOCONTENT: 204,
135
+ BADREQUEST: 400,
136
+ FORBIDDEN: 403,
137
+ NOTFOUND: 404,
138
+ TIMEOUT: 408,
139
+ TOOMANYREQ: 429,
140
+ INTERNALSERVER: 500,
141
+ BADGATEWAYS: 502,
142
+ SERVICEUNAVILABLE: 503,
143
+ GATEWAYTIMEOUT: 504,
144
+ };
145
+ exports.RES_MSG = {
146
+ INSERT: 'Data has been saved successfully.',
147
+ ERROR: 'Some error has been occured. Please try again.',
148
+ SUCCESS: 'Your request is executed successfully!',
149
+ REQUIRED: 'coin_type or price param is required',
150
+ CAPTCHATEXTNOTFOUND: 'Captcha text not found.',
151
+ CAPTCHA_VERIFICATION_FAILED: 'Captcha is not verified.',
152
+ NOTEMPTY: 'coin_type or price should not be empty',
153
+ PAIR_LIST: 'Pair list',
154
+ PAIR_STATUS: 'Pair status has been changed',
155
+ ACTIVE_USERS: 'Active Users',
156
+ SETTINGS_NOT_FOUND: 'No settings found in DB.',
157
+ TRADE_IS_HALT: 'Trading is disabled.',
158
+ KYC_REQUIRED: 'KYC is required for this action.',
159
+ EMAIL_NOT_VERIFIED: 'Your email is not verified.Please verify first.',
160
+ NOT_BETA_USER: 'Trade only works for beta user.',
161
+ WRONG_PAIR_KEY: 'Pair key not found.',
162
+ PAIRDISABLED: 'Temporarily order placement has been disabled for this pair. Please try again later.',
163
+ BALANCE_NOT_SUFFICIENT: 'You have insufficient balance.',
164
+ MIN_TRADE_NOT_MATCHED: 'Minimum trade limit does not matched.',
165
+ ORDER_PLACED_SUCCESSFULLY: 'Order has been placed successfully.',
166
+ ORDER_NOT_FOUND: 'Sorry this order id does not found.',
167
+ ORDER_ALREADY_MATCHED: 'Order already matched.',
168
+ ORDER_ALREADY_CANCELED: 'Order already cancelled.',
169
+ ORDER_CANCELED_SUCCESSFULLY: 'order successfully cancelled',
170
+ ORDER_LIST: 'Order list fetched successfully.',
171
+ ORDER_EXIT: 'Successfully exited from the position.',
172
+ PAIRERR: 'please provide pair param',
173
+ ORDERSIDE: 'side param is required',
174
+ ORDERTYPE: 'type param is required',
175
+ ORDERIDREQ: 'order_id param is required',
176
+ ORDERDETAIL: 'order detail',
177
+ COMMODITYORICE: 'commodity price',
178
+ COMMODITYSPOT: 'commodity spot updated',
179
+ TOKEN_INSERTED: 'ERC token has been added',
180
+ PARAMREQ: 'Parameter missing',
181
+ EXIST: 'Token Already Exist',
182
+ BREACHEDTOKENS: 'List of breached tokens',
183
+ API_EXPOSE: {
184
+ TOKEN_NOT_FOUND: 'Token not found, Please get token and set to header.',
185
+ ERROR: "Something went wrong, Please try again later"
186
+ },
187
+ LIMITED_UNITS: 'ONLY {{units}} units are available. You can place your order with this amount',
188
+ UNITS_UNAVAIL: 'Amount unavailable',
189
+ ORDER: {
190
+ ERROR: 'An error has been occured',
191
+ UNITS_UNAVAIL: 'Amount unavailable',
192
+ LIMITED_UNITS: 'ONLY {{units}} units are available. You can place your order with this amount',
193
+ PLACED: 'Order has been placed',
194
+ NOPARAMS: 'empty body params',
195
+ ORDER_NOT_FOUND: 'Sorry this order id not found.',
196
+ ORDER_ALREADY_MATCHED: 'Order already matched.',
197
+ ORDER_ALREADY_CANCELED: 'Order already cancelled.',
198
+ ORDER_CANCELED_SUCCESSFULLY: 'Order cancelled successfully',
199
+ },
200
+ DOMAIN_NOT_FOUND: 'domain not found',
201
+ };
202
+ exports.BIGNUMBER = {
203
+ SMALLESTUNIT: process.env.SMALLEST_UNIT,
204
+ };
205
+ exports.CALCULATIONS = {
206
+ SMALLEST_UNITS: process.env.SMALLEST_UNIT,
207
+ };
208
+ exports.SERVER = {
209
+ AVAILABLE_ASSETS_PER_USER: 1,
210
+ AVAILABLE_ASSETS_PER_IP: 3,
211
+ };
212
+
213
+
214
+ /***/ }),
215
+
216
+ /***/ 1048:
217
+ /***/ ((__unused_webpack_module, exports) => {
218
+
219
+
220
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
221
+ exports.WithdrawalWalletType = void 0;
222
+ var WithdrawalWalletType;
223
+ (function (WithdrawalWalletType) {
224
+ WithdrawalWalletType["SOLANA"] = "SOLANA";
225
+ WithdrawalWalletType["ALGORAND"] = "ALGORAND";
226
+ WithdrawalWalletType["EVM"] = "EVM";
227
+ })(WithdrawalWalletType || (exports.WithdrawalWalletType = WithdrawalWalletType = {}));
228
+
229
+
230
+ /***/ }),
231
+
232
+ /***/ 1134:
233
+ /***/ ((__unused_webpack_module, exports) => {
234
+
235
+
236
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
237
+ var OrderType;
238
+ (function (OrderType) {
239
+ OrderType[OrderType["Limit"] = 0] = "Limit";
240
+ OrderType[OrderType["IOC"] = 1] = "IOC";
241
+ OrderType[OrderType["POST"] = 2] = "POST";
242
+ OrderType[OrderType["Market"] = 3] = "Market";
243
+ })(OrderType || (OrderType = {}));
244
+ exports["default"] = OrderType;
245
+
246
+
247
+ /***/ }),
248
+
249
+ /***/ 1174:
250
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
251
+
252
+
253
+ var __importDefault = (this && this.__importDefault) || function (mod) {
254
+ return (mod && mod.__esModule) ? mod : { "default": mod };
255
+ };
256
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
257
+ exports.Operations = void 0;
258
+ exports.absolute = absolute;
259
+ exports.ceil = ceil;
260
+ exports.toFixed = toFixed;
261
+ exports.floor = floor;
262
+ exports.round = round;
263
+ exports.plus = plus;
264
+ exports.minus = minus;
265
+ exports.multiply = multiply;
266
+ exports.toUsd = toUsd;
267
+ exports.divide = divide;
268
+ exports.greaterThanOrEqual = greaterThanOrEqual;
269
+ exports.greaterThan = greaterThan;
270
+ exports.lessThanOrEqual = lessThanOrEqual;
271
+ exports.lessThan = lessThan;
272
+ exports.equal = equal;
273
+ exports.mod = mod;
274
+ exports.modZero = modZero;
275
+ exports.bn_operation = bn_operation;
276
+ exports.roundNumber = roundNumber;
277
+ exports.convertFromBaseUnits = convertFromBaseUnits;
278
+ exports.convertToBaseUnits = convertToBaseUnits;
279
+ const bignumber_js_1 = __importDefault(__webpack_require__(6168));
280
+ bignumber_js_1.default.config({ DECIMAL_PLACES: 40, EXPONENTIAL_AT: 45 });
281
+ var Operations;
282
+ (function (Operations) {
283
+ Operations["MINUS"] = "-";
284
+ Operations["PLUS"] = "+";
285
+ Operations["MULTIPLY"] = "*";
286
+ Operations["DIVIDE"] = "/";
287
+ Operations["GREATER_THAN_OR_EQUAL"] = ">=";
288
+ Operations["GREATER_THAN"] = ">";
289
+ Operations["LESS_THAN_OR_EQUAL"] = "<=";
290
+ Operations["LESS_THAN"] = "<";
291
+ Operations["EQUAL"] = "==";
292
+ Operations["MOD"] = "mod";
293
+ })(Operations || (exports.Operations = Operations = {}));
294
+ function absolute(value) {
295
+ let x = new bignumber_js_1.default(value);
296
+ const res = x.abs().toString();
297
+ // console.log('Absolute value', { value, res })
298
+ return res;
299
+ }
300
+ function ceil(value) {
301
+ let x = new bignumber_js_1.default(String(value));
302
+ const res = x.integerValue(bignumber_js_1.default.ROUND_CEIL).toString();
303
+ if (!equal(value, res)) {
304
+ console.log('Ceil value', { value, res });
305
+ }
306
+ return res;
307
+ }
308
+ function toFixed(value, decimalPlaces, roundUpToFirstSignificant = false) {
309
+ const x = new bignumber_js_1.default(String(value));
310
+ let res;
311
+ if (roundUpToFirstSignificant) {
312
+ const valueStr = x.toFixed();
313
+ const decimalIndex = valueStr.indexOf('.');
314
+ if (decimalIndex >= 0) {
315
+ const fractionalPart = valueStr.slice(decimalIndex + 1);
316
+ let leadingZeros = 0;
317
+ for (let char of fractionalPart) {
318
+ if (char === '0') {
319
+ leadingZeros++;
320
+ }
321
+ else {
322
+ break;
323
+ }
324
+ }
325
+ const totalDecimalPlaces = leadingZeros + 1;
326
+ res = x.toFixed(totalDecimalPlaces, bignumber_js_1.default.ROUND_UP);
327
+ }
328
+ else {
329
+ res = x.toFixed(0);
330
+ }
331
+ }
332
+ else {
333
+ res = x.toFixed(decimalPlaces);
334
+ }
335
+ console.log('Fixed value', { value, res });
336
+ return res;
337
+ }
338
+ function floor(value) {
339
+ let x = new bignumber_js_1.default(String(value));
340
+ const res = x.integerValue(bignumber_js_1.default.ROUND_FLOOR).toString();
341
+ console.log('Floor value', { value, res });
342
+ return res;
343
+ }
344
+ function round(value) {
345
+ let x = new bignumber_js_1.default(String(value));
346
+ const res = x.integerValue(bignumber_js_1.default.ROUND_HALF_UP).toString();
347
+ console.log('Round value', { value, res });
348
+ return res;
349
+ }
350
+ function plus(value1, value2) {
351
+ return bn_operation(value1, value2, Operations.PLUS);
352
+ }
353
+ function minus(value1, value2) {
354
+ return bn_operation(value1, value2, Operations.MINUS);
355
+ }
356
+ function multiply(value1, value2) {
357
+ return bn_operation(value1, value2, Operations.MULTIPLY);
358
+ }
359
+ function toUsd(amount, price) {
360
+ return multiply(amount, price || 0);
361
+ }
362
+ ;
363
+ function divide(value1, value2) {
364
+ return bn_operation(value1, value2, Operations.DIVIDE);
365
+ }
366
+ function greaterThanOrEqual(value1, value2) {
367
+ return Boolean(bn_operation(value1, value2, Operations.GREATER_THAN_OR_EQUAL));
368
+ }
369
+ function greaterThan(value1, value2) {
370
+ return Boolean(bn_operation(value1, value2, Operations.GREATER_THAN));
371
+ }
372
+ function lessThanOrEqual(value1, value2) {
373
+ return Boolean(bn_operation(value1, value2, Operations.LESS_THAN_OR_EQUAL));
374
+ }
375
+ function lessThan(value1, value2) {
376
+ return Boolean(bn_operation(value1, value2, Operations.LESS_THAN));
377
+ }
378
+ function equal(value1, value2) {
379
+ return Boolean(bn_operation(value1, value2, Operations.EQUAL));
380
+ }
381
+ function mod(value1, value2) {
382
+ return bn_operation(value1, value2, Operations.MOD);
383
+ }
384
+ function modZero(value1, value2) {
385
+ return equal(mod(value1, value2), 0);
386
+ }
387
+ function bn_operation(a, b, operation) {
388
+ a = new bignumber_js_1.default(String(a));
389
+ b = new bignumber_js_1.default(String(b));
390
+ switch (operation.toLowerCase()) {
391
+ case '-':
392
+ return a.minus(b).toString();
393
+ case '+':
394
+ return a.plus(b).toString();
395
+ case '*':
396
+ case 'x':
397
+ return a.multipliedBy(b).toString();
398
+ case '÷':
399
+ case '/':
400
+ return a.dividedBy(b).toString();
401
+ case '>=':
402
+ return a.isGreaterThanOrEqualTo(b);
403
+ case '>':
404
+ return a.isGreaterThan(b);
405
+ case '<=':
406
+ return a.isLessThanOrEqualTo(b);
407
+ case '<':
408
+ return a.isLessThan(b);
409
+ case '==':
410
+ return a.isEqualTo(b);
411
+ case 'mod':
412
+ return a.modulo(b);
413
+ default:
414
+ break;
415
+ }
416
+ }
417
+ function getExponentialNumberComponents(x) {
418
+ if (x.toString().includes('e')) {
419
+ const parts = x.toString().split('e');
420
+ return [parseFloat(parts[0]), parseFloat(parts[1])];
421
+ }
422
+ return [x, 0];
423
+ }
424
+ function generateExponentialNumberFromComponents(decimalPart, exponent) {
425
+ return decimalPart + (exponent < 0 ? `e${exponent}` : `e+${exponent}`);
426
+ }
427
+ function roundNumber({ decimalPlaces = 0 }, x) {
428
+ if (decimalPlaces > 0) {
429
+ const [decimal, decimalExponentialPart] = getExponentialNumberComponents(x);
430
+ const [rounded, roundedExponentialPart] = getExponentialNumberComponents(Math.round(Number(generateExponentialNumberFromComponents(decimal, decimalExponentialPart + decimalPlaces))));
431
+ return Number(generateExponentialNumberFromComponents(rounded, roundedExponentialPart - decimalPlaces));
432
+ }
433
+ return Math.round(x);
434
+ }
435
+ function convertFromBaseUnits(assetDecimals, quantity) {
436
+ const decimals = Number(assetDecimals);
437
+ return roundNumber({ decimalPlaces: decimals },
438
+ // eslint-disable-next-line no-magic-numbers
439
+ Math.pow(10, -decimals) * Number(quantity));
440
+ }
441
+ /**
442
+ * Computs quantity * 10^(assetDecimals) and rounds the result
443
+ */
444
+ function convertToBaseUnits(assetDecimals, quantity) {
445
+ // eslint-disable-next-line no-magic-numbers
446
+ const baseAmount = Math.pow(10, Number(assetDecimals)) * Number(quantity);
447
+ // make sure the final value is an integer. This prevents this kind of computation errors: 0.0012 * 100000 = 119.99999999999999 and rounds this result into 120
448
+ return roundNumber({ decimalPlaces: 0 }, baseAmount);
449
+ }
450
+
451
+
452
+ /***/ }),
453
+
454
+ /***/ 1283:
455
+ /***/ ((__unused_webpack_module, exports) => {
456
+
457
+
458
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
459
+ exports.StateType = void 0;
460
+ var StateType;
461
+ (function (StateType) {
462
+ StateType["VERSION"] = "version";
463
+ StateType["LAST_ALGO_BLOCK"] = "last_algo_block";
464
+ StateType["PRICES_PROVIDER_API_KEY"] = "prices_provider_api_key";
465
+ StateType["DEFAULT_API_DOMAIN"] = "default_api_domain";
466
+ StateType["NONCE_ACCOUNTS_SOLANA"] = "nonce_accounts_solana";
467
+ StateType["ARCHIVE_DATA_BATCH_SIZE"] = "archive_data_batch_size";
468
+ StateType["ARCHIVE_TASK_LOCK"] = "archive_task_lock";
469
+ })(StateType || (exports.StateType = StateType = {}));
470
+
471
+
472
+ /***/ }),
473
+
474
+ /***/ 1492:
475
+ /***/ ((__unused_webpack_module, exports) => {
476
+
477
+
478
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
479
+ var OrderStatus;
480
+ (function (OrderStatus) {
481
+ OrderStatus[OrderStatus["Open"] = 1] = "Open";
482
+ OrderStatus[OrderStatus["Canceled"] = 2] = "Canceled";
483
+ OrderStatus[OrderStatus["Matched"] = 3] = "Matched";
484
+ OrderStatus[OrderStatus["SelfMatched"] = 4] = "SelfMatched";
485
+ OrderStatus[OrderStatus["Expired"] = 5] = "Expired";
486
+ })(OrderStatus || (OrderStatus = {}));
487
+ exports["default"] = OrderStatus;
488
+
489
+
490
+ /***/ }),
491
+
492
+ /***/ 1682:
493
+ /***/ ((__unused_webpack_module, exports) => {
494
+
495
+
496
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
497
+ exports.SettingTypeColumn = void 0;
498
+ var SettingTypeColumn;
499
+ (function (SettingTypeColumn) {
500
+ SettingTypeColumn["STRING"] = "string";
501
+ SettingTypeColumn["BOOLEAN"] = "boolean";
502
+ SettingTypeColumn["INT"] = "int";
503
+ SettingTypeColumn["FLOAT"] = "float";
504
+ SettingTypeColumn["SINGLE_CHOICE"] = "single-choice";
505
+ SettingTypeColumn["MULTI_CHOICE"] = "multi-choice";
506
+ })(SettingTypeColumn || (exports.SettingTypeColumn = SettingTypeColumn = {}));
507
+
508
+
509
+ /***/ }),
510
+
511
+ /***/ 2169:
512
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
513
+
514
+
515
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
516
+ exports.PointSystemSettingsIds = void 0;
517
+ const settings_type_1 = __webpack_require__(7159);
518
+ exports.PointSystemSettingsIds = [
519
+ settings_type_1.SettingIds.POINT_SYSTEM_DISCORD_ENABLED,
520
+ settings_type_1.SettingIds.POINT_SYSTEM_TELEGRAM_BOT_NAME,
521
+ settings_type_1.SettingIds.POINT_SYSTEM_TELEGRAM_BOT_ID,
522
+ settings_type_1.SettingIds.POINT_SYSTEM_TELEGRAM_ENABLED,
523
+ settings_type_1.SettingIds.POINT_SYSTEM_TELEGRAM_GROUP_ID,
524
+ settings_type_1.SettingIds.POINT_SYSTEM_TELEGRAM_GROUP_NAME,
525
+ settings_type_1.SettingIds.POINT_SYSTEM_TWITTER_ACCOUNT_ID,
526
+ settings_type_1.SettingIds.POINT_SYSTEM_TWITTER_ACCOUNT_NAME,
527
+ settings_type_1.SettingIds.POINT_SYSTEM_TWITTER_ENABLED,
528
+ settings_type_1.SettingIds.POINT_SYSTEM_TWITTER_JOB_ENABLED,
529
+ settings_type_1.SettingIds.POINT_SYSTEM_GUIDE_LINK,
530
+ ];
531
+
532
+
533
+ /***/ }),
534
+
535
+ /***/ 2224:
536
+ /***/ ((__unused_webpack_module, exports) => {
537
+
538
+
539
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
540
+ exports.AffiliateSortByEnum = void 0;
541
+ var AffiliateSortByEnum;
542
+ (function (AffiliateSortByEnum) {
543
+ AffiliateSortByEnum["INVITED_ACCOUNTS_COUNT"] = "invitedAccountsCount";
544
+ AffiliateSortByEnum["CREATED_AT"] = "createdAt";
545
+ AffiliateSortByEnum["FEE_SHARE"] = "feeShare";
546
+ AffiliateSortByEnum["ADDRESS"] = "address";
547
+ AffiliateSortByEnum["REFERRAL_TRADING_VOLUME"] = "referralTradingVolume";
548
+ })(AffiliateSortByEnum || (exports.AffiliateSortByEnum = AffiliateSortByEnum = {}));
549
+
550
+
551
+ /***/ }),
552
+
553
+ /***/ 2228:
554
+ /***/ ((__unused_webpack_module, exports) => {
555
+
556
+
557
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
558
+ exports.HTTPSRPC_MAINNET = exports.HTTPSRPC_TESTNET = exports.ChainNames = exports.Chains = void 0;
559
+ var Chains;
560
+ (function (Chains) {
561
+ Chains[Chains["Solana"] = 1] = "Solana";
562
+ Chains[Chains["Algorand"] = 8] = "Algorand";
563
+ Chains[Chains["Polygon"] = 5] = "Polygon";
564
+ Chains[Chains["Bsc"] = 4] = "Bsc";
565
+ Chains[Chains["Avalanche"] = 6] = "Avalanche";
566
+ Chains[Chains["Arbitrum"] = 23] = "Arbitrum";
567
+ Chains[Chains["Optimism"] = 24] = "Optimism";
568
+ Chains[Chains["Base"] = 30] = "Base";
569
+ Chains[Chains["Ethereum"] = 2] = "Ethereum";
570
+ Chains[Chains["Sepolia"] = 10002] = "Sepolia";
571
+ Chains[Chains["ArbitrumSepolia"] = 10003] = "ArbitrumSepolia";
572
+ Chains[Chains["BaseSepolia"] = 10004] = "BaseSepolia";
573
+ Chains[Chains["OptimismSepolia"] = 10005] = "OptimismSepolia";
574
+ Chains[Chains["PolygonAmoy"] = 10007] = "PolygonAmoy";
575
+ })(Chains || (exports.Chains = Chains = {}));
576
+ exports.ChainNames = {
577
+ [Chains.Solana]: "Solana",
578
+ [Chains.Ethereum]: "Ethereum",
579
+ [Chains.Polygon]: "Polygon",
580
+ [Chains.Bsc]: "BNB Chain",
581
+ [Chains.Avalanche]: "Avalanche",
582
+ [Chains.Algorand]: "Algorand",
583
+ [Chains.Arbitrum]: "Arbitrum",
584
+ [Chains.Optimism]: "Optimism",
585
+ [Chains.Base]: "Base",
586
+ [Chains.Sepolia]: "Ethereum Sepolia",
587
+ [Chains.ArbitrumSepolia]: "Arbitrum Sepolia",
588
+ [Chains.BaseSepolia]: "Base Sepolia",
589
+ [Chains.OptimismSepolia]: "Optimism Sepolia",
590
+ [Chains.PolygonAmoy]: "Polygon Amoy",
591
+ };
592
+ exports.HTTPSRPC_TESTNET = {
593
+ [Chains.Bsc]: [
594
+ '',
595
+ 'https://bsc-testnet.public.blastapi.io',
596
+ 'https://bsc-testnet.blockpi.network/v1/rpc/private',
597
+ 'https://bsc-testnet-rpc.publicnode.com',
598
+ 'https://api.zan.top/bsc-testnet',
599
+ 'https://data-seed-prebsc-2-s1.bnbchain.org:8545',
600
+ 'https://data-seed-prebsc-2-s2.bnbchain.org:8545',
601
+ 'https://data-seed-prebsc-2-s3.bnbchain.org:8545',
602
+ 'https://data-seed-prebsc-1-s1.bnbchain.org:8545',
603
+ 'https://data-seed-prebsc-1-s2.bnbchain.org:8545',
604
+ 'https://data-seed-prebsc-1-s3.bnbchain.org:8545',
605
+ 'https://endpoints.omniatech.io/v1/bsc/testnet/public',
606
+ ],
607
+ [Chains.Avalanche]: [
608
+ '',
609
+ 'https://rpc.ankr.com/avalanche_fuji',
610
+ 'https://rpc.ankr.com/avalanche_fuji-c',
611
+ 'https://api.avax-test.network/ext/bc/C/rpc',
612
+ 'https://ava-testnet.public.blastapi.io/ext/bc/C/rpc',
613
+ 'https://endpoints.omniatech.io/v1/avax/fuji/public',
614
+ 'https://avalanche-fuji.blockpi.network/v1/rpc/private',
615
+ 'https://avalanche-fuji-c-chain-rpc.publicnode.com',
616
+ 'https://avalanche-fuji.blockpi.network/v1/rpc/private',
617
+ ],
618
+ [Chains.Sepolia]: [
619
+ 'https://ethereum-sepolia-rpc.publicnode.com',
620
+ 'https://sepolia.gateway.tenderly.co',
621
+ 'https://eth-sepolia.public.blastapi.io',
622
+ 'https://ethereum-sepolia.blockpi.network/v1/rpc/private',
623
+ 'https://sepolia.drpc.org',
624
+ 'https://endpoints.omniatech.io/v1/eth/sepolia/public',
625
+ 'https://1rpc.io/sepolia',
626
+ 'https://gateway.tenderly.co/public/sepolia',
627
+ 'https://sepolia.gateway.tenderly.co',
628
+ 'https://api.zan.top/eth-sepolia',
629
+ 'https://ethereum-sepolia.rpc.subquery.network/public',
630
+ ],
631
+ [Chains.ArbitrumSepolia]: [
632
+ '',
633
+ 'https://arbitrum-sepolia.blockpi.network/v1/rpc/private ',
634
+ 'https://arbitrum-sepolia.gateway.tenderly.co',
635
+ 'https://endpoints.omniatech.io/v1/arbitrum/sepolia/public',
636
+ 'https://api.zan.top/arb-sepolia',
637
+ 'https://sepolia-rollup.arbitrum.io/rpc',
638
+ ],
639
+ [Chains.BaseSepolia]: [
640
+ '',
641
+ 'https://sepolia.base.org',
642
+ 'https://base-sepolia-rpc.publicnode.com',
643
+ 'https://base-sepolia.gateway.tenderly.co',
644
+ 'https://base-sepolia.blockpi.network/v1/rpc/private',
645
+ 'https://node.histori.xyz/base-sepolia/8ry9f6t9dct1se2hlagxnd9n2a',
646
+ ],
647
+ [Chains.OptimismSepolia]: [
648
+ '',
649
+ 'https://optimism-sepolia.blockpi.network/v1/rpc/private',
650
+ 'https://sepolia.optimism.io',
651
+ 'https://api.zan.top/opt-sepolia',
652
+ 'https://optimism-sepolia.gateway.tenderly.co',
653
+ 'https://optimism-sepolia.drpc.org',
654
+ 'https://endpoints.omniatech.io/v1/op/sepolia/public',
655
+ ],
656
+ [Chains.PolygonAmoy]: [
657
+ 'https://rpc-amoy.polygon.technology',
658
+ 'https://polygon-amoy-bor-rpc.publicnode.com',
659
+ 'https://rpc.ankr.com/polygon_amoy',
660
+ 'https://polygon-amoy.drpc.org',
661
+ 'https://api.zan.top/polygon-amoy',
662
+ 'https://polygon-amoy.gateway.tenderly.co',
663
+ ],
664
+ };
665
+ exports.HTTPSRPC_MAINNET = {
666
+ [Chains.Ethereum]: [
667
+ '',
668
+ 'https://eth.llamarpc.com',
669
+ 'https://ethereum.blockpi.network/v1/rpc/public',
670
+ 'https://eth-mainnet.nodereal.io/v1/1659dfb40aa24bbb8153a677b98064d7',
671
+ 'https://uk.rpc.blxrbdn.com',
672
+ 'https://singapore.rpc.blxrbdn.com',
673
+ 'https://virginia.rpc.blxrbdn.com',
674
+ 'https://eth-mainnet.public.blastapi.io',
675
+ 'https://api.securerpc.com/v1',
676
+ 'https://mainnet.gateway.tenderly.co',
677
+ 'https://eth-pokt.nodies.app',
678
+ 'https://eth.blockrazor.xyz',
679
+ 'https://eth.merkle.io',
680
+ 'https://gateway.tenderly.co/public/mainnet',
681
+ 'https://eth.rpc.blxrbdn.com',
682
+ ],
683
+ [Chains.Bsc]: [
684
+ '',
685
+ 'https://bsc.blockrazor.xyz',
686
+ 'https://bscrpc.com',
687
+ 'https://bsc-mainnet.public.blastapi.io',
688
+ 'https://binance.llamarpc.com',
689
+ 'https://go.getblock.io/cc778cdbdf5c4b028ec9456e0e6c0cf3',
690
+ 'https://bsc-pokt.nodies.app',
691
+ 'https://56.rpc.thirdweb.com',
692
+ 'https://bsc.blockpi.network/v1/rpc/private',
693
+ 'https://bsc.rpc.blxrbdn.com',
694
+ 'https://bsc-dataseed.bnbchain.org',
695
+ 'https://endpoints.omniatech.io/v1/bsc/mainnet/public',
696
+ 'https://bsc-dataseed1.ninicoin.io',
697
+ 'https://bsc-dataseed2.defibit.io',
698
+ 'https://bsc-dataseed2.ninicoin.io',
699
+ 'https://0.48.club',
700
+ 'https://bsc-dataseed3.defibit.io',
701
+ ],
702
+ [Chains.Polygon]: [
703
+ '',
704
+ 'https://polygon.llamarpc.com',
705
+ 'https://polygon-rpc.com',
706
+ 'https://rpc-mainnet.matic.quiknode.pro',
707
+ 'https://endpoints.omniatech.io/v1/matic/mainnet/public',
708
+ 'https://polygon-pokt.nodies.app',
709
+ 'https://polygon-bor-rpc.publicnode.com',
710
+ 'https://polygon.rpc.subquery.network/public',
711
+ 'https://polygon-bor-rpc.publicnode.com',
712
+ 'https://polygon.blockpi.network/v1/rpc/private',
713
+ 'https://polygon.api.onfinality.io/public',
714
+ 'https://polygon.lava.build',
715
+ 'https://api.zan.top/polygon-mainnet',
716
+ 'https://polygon.meowrpc.com',
717
+ ],
718
+ [Chains.Avalanche]: [
719
+ '',
720
+ 'https://avalanche-c-chain-rpc.publicnode.com',
721
+ 'https://ava-mainnet.public.blastapi.io/ext/bc/C/rpc',
722
+ 'https://endpoints.omniatech.io/v1/avax/mainnet/public',
723
+ 'https://avalanche-c-chain-rpc.publicnode.com',
724
+ 'https://avalanche.blockpi.network/v1/rpc/private',
725
+ 'https://avalanche.public-rpc.com',
726
+ 'https://avalanche.drpc.org',
727
+ 'https://avax.meowrpc.com',
728
+ 'https://endpoints.omniatech.io/v1/avax/mainnet/public',
729
+ 'https://api.avax.network/ext/bc/C/rpc',
730
+ 'https://1rpc.io/avax/c',
731
+ 'https://avax-pokt.nodies.app/ext/bc/C/rpc',
732
+ 'https://endpoints.omniatech.io/v1/avax/mainnet/public',
733
+ 'https://api.zan.top/avax-mainnet/ext/bc/C/rpc',
734
+ ],
735
+ [Chains.Arbitrum]: [
736
+ '',
737
+ 'https://arbitrum.llamarpc.com',
738
+ 'https://arbitrum.rpc.subquery.network/public',
739
+ 'https://endpoints.omniatech.io/v1/arbitrum/one/public',
740
+ 'https://arbitrum.meowrpc.com',
741
+ 'https://arbitrum.gateway.tenderly.co',
742
+ 'https://arbitrum-one.public.blastapi.io',
743
+ 'https://arb1.lava.build',
744
+ 'https://arbitrum-one.publicnode.com',
745
+ 'https://arbitrum.blockpi.network/v1/rpc/public',
746
+ 'https://arb-pokt.nodies.app',
747
+ 'https://api.zan.top/arb-one',
748
+ 'https://arb1.arbitrum.io/rpc',
749
+ 'https://arbitrum.drpc.org',
750
+ 'https://1rpc.io/arb',
751
+ ],
752
+ [Chains.Optimism]: [
753
+ '',
754
+ 'https://optimism.llamarpc.com',
755
+ 'https://op-pokt.nodies.app',
756
+ 'https://optimism-mainnet.public.blastapi.io',
757
+ 'https://optimism.blockpi.network/v1/rpc/public',
758
+ 'https://endpoints.omniatech.io/v1/op/mainnet/public',
759
+ 'https://optimism-rpc.publicnode.com',
760
+ 'https://optimism.drpc.org',
761
+ 'https://1rpc.io/op',
762
+ 'https://optimism.gateway.tenderly.co',
763
+ 'https://optimism.lava.build',
764
+ 'https://optimism.rpc.subquery.network/public',
765
+ 'https://mainnet.optimism.io',
766
+ 'https://optimism-rpc.publicnode.com',
767
+ 'https://gateway.tenderly.co/public/optimism',
768
+ ],
769
+ [Chains.Base]: [
770
+ '',
771
+ 'https://base.llamarpc.com',
772
+ 'https://base-mainnet.public.blastapi.io',
773
+ 'https://base-rpc.publicnode.com',
774
+ 'https://base.blockpi.network/v1/rpc/public',
775
+ 'https://base.drpc.org',
776
+ 'https://mainnet.base.org',
777
+ 'https://base.api.onfinality.io/public',
778
+ 'https://base-pokt.nodies.app',
779
+ 'https://1rpc.io/base',
780
+ 'https://developer-access-mainnet.base.org',
781
+ 'https://endpoints.omniatech.io/v1/base/mainnet/public',
782
+ 'https://base.rpc.subquery.network/public',
783
+ 'https://base.api.onfinality.io/public',
784
+ 'https://base.meowrpc.com',
785
+ 'https://base.gateway.tenderly.co',
786
+ ],
787
+ };
788
+
789
+
790
+ /***/ }),
791
+
792
+ /***/ 2623:
793
+ /***/ ((__unused_webpack_module, exports) => {
794
+
795
+
796
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
797
+ exports.TransactionType = exports.CCTPStatus = exports.ActionTypeEnum = exports.OperationStatusEnum = void 0;
798
+ var OperationStatusEnum;
799
+ (function (OperationStatusEnum) {
800
+ OperationStatusEnum["Pending"] = "pending";
801
+ OperationStatusEnum["Completed"] = "completed";
802
+ OperationStatusEnum["Failed"] = "failed";
803
+ OperationStatusEnum["Received"] = "received";
804
+ })(OperationStatusEnum || (exports.OperationStatusEnum = OperationStatusEnum = {}));
805
+ var ActionTypeEnum;
806
+ (function (ActionTypeEnum) {
807
+ ActionTypeEnum["Deposit"] = "deposit";
808
+ ActionTypeEnum["Withdraw"] = "withdraw";
809
+ ActionTypeEnum["Rebalance"] = "rebalance";
810
+ })(ActionTypeEnum || (exports.ActionTypeEnum = ActionTypeEnum = {}));
811
+ var CCTPStatus;
812
+ (function (CCTPStatus) {
813
+ CCTPStatus["PENDING"] = "pending";
814
+ CCTPStatus["COMPLETED"] = "completed";
815
+ CCTPStatus["FAILED"] = "failed";
816
+ })(CCTPStatus || (exports.CCTPStatus = CCTPStatus = {}));
817
+ var TransactionType;
818
+ (function (TransactionType) {
819
+ TransactionType["USER_TO_TMC"] = "user_to_tmc";
820
+ TransactionType["TMC_TO_USER"] = "tmc_to_user";
821
+ TransactionType["RELAYER_TO_TMC"] = "relayer_to_tmc";
822
+ TransactionType["RELAYER_TO_CODEX"] = "relayer_to_codex";
823
+ TransactionType["RELAYER_TO_CIRCLE"] = "relayer_to_circle";
824
+ })(TransactionType || (exports.TransactionType = TransactionType = {}));
825
+
826
+
827
+ /***/ }),
828
+
829
+ /***/ 2739:
830
+ /***/ ((__unused_webpack_module, exports) => {
831
+
832
+
833
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
834
+ exports.Notification = void 0;
835
+ var Notification;
836
+ (function (Notification) {
837
+ Notification[Notification["SELF_TRADE"] = 1] = "SELF_TRADE";
838
+ Notification[Notification["FULL_FILLED"] = 2] = "FULL_FILLED";
839
+ Notification[Notification["FULL_CANCELLED"] = 3] = "FULL_CANCELLED";
840
+ Notification[Notification["PARTIALLY_CANCELLED"] = 4] = "PARTIALLY_CANCELLED";
841
+ Notification[Notification["CREATED"] = 5] = "CREATED";
842
+ })(Notification || (exports.Notification = Notification = {}));
843
+
844
+
845
+ /***/ }),
846
+
847
+ /***/ 2797:
848
+ /***/ ((__unused_webpack_module, exports) => {
849
+
850
+
851
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
852
+ var AvailablePairSettings;
853
+ (function (AvailablePairSettings) {
854
+ AvailablePairSettings["MFT_AUDIO_LINK"] = "mft.audioLink";
855
+ AvailablePairSettings["MFT_TITLE"] = "mft.title";
856
+ AvailablePairSettings["MODE_PRE_SALE"] = "mode.preSale";
857
+ AvailablePairSettings["MAKER_FEE"] = "makerFee";
858
+ AvailablePairSettings["TAKER_FEE"] = "takerFee";
859
+ AvailablePairSettings["VIEW_BASE_COIN_ICON_LINK"] = "view.baseCoinIconLink";
860
+ AvailablePairSettings["VIEW_BASE_COIN_MARKET_LINK"] = "view.baseCoinMarketLink";
861
+ AvailablePairSettings["VIEW_PRICE_COIN_ICON_LINK"] = "view.priceCoinIconLink";
862
+ AvailablePairSettings["VIEW_PRICE_COIN_MARKET_LINK"] = "view.priceCoinMarketLink";
863
+ })(AvailablePairSettings || (AvailablePairSettings = {}));
864
+ exports["default"] = AvailablePairSettings;
865
+
866
+
867
+ /***/ }),
868
+
869
+ /***/ 2806:
870
+ /***/ ((__unused_webpack_module, exports) => {
871
+
872
+
873
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
874
+ exports.EXPIRE_DAYS = exports.DAY_MILLISECONDS = void 0;
875
+ exports.DAY_MILLISECONDS = 86400000;
876
+ exports.EXPIRE_DAYS = 30;
877
+
878
+
879
+ /***/ }),
880
+
881
+ /***/ 3004:
882
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
883
+
884
+
885
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
886
+ if (k2 === undefined) k2 = k;
887
+ var desc = Object.getOwnPropertyDescriptor(m, k);
888
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
889
+ desc = { enumerable: true, get: function() { return m[k]; } };
890
+ }
891
+ Object.defineProperty(o, k2, desc);
892
+ }) : (function(o, m, k, k2) {
893
+ if (k2 === undefined) k2 = k;
894
+ o[k2] = m[k];
895
+ }));
896
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
897
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
898
+ };
899
+ var __importDefault = (this && this.__importDefault) || function (mod) {
900
+ return (mod && mod.__esModule) ? mod : { "default": mod };
901
+ };
902
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
903
+ exports.TradingKeyType = exports.OrderType = exports.OrderStatus = exports.OrderSide = exports.AvailablePairSettings = void 0;
904
+ const available_pair_settings_enum_1 = __importDefault(__webpack_require__(2797));
905
+ exports.AvailablePairSettings = available_pair_settings_enum_1.default;
906
+ const order_side_enum_1 = __importDefault(__webpack_require__(835));
907
+ exports.OrderSide = order_side_enum_1.default;
908
+ const order_status_enum_1 = __importDefault(__webpack_require__(1492));
909
+ exports.OrderStatus = order_status_enum_1.default;
910
+ const order_type_enum_1 = __importDefault(__webpack_require__(1134));
911
+ exports.OrderType = order_type_enum_1.default;
912
+ const tradingKeyType_enum_1 = __webpack_require__(3487);
913
+ Object.defineProperty(exports, "TradingKeyType", ({ enumerable: true, get: function () { return tradingKeyType_enum_1.TradingKeyType; } }));
914
+ __exportStar(__webpack_require__(893), exports);
915
+ __exportStar(__webpack_require__(3338), exports);
916
+ __exportStar(__webpack_require__(3245), exports);
917
+ __exportStar(__webpack_require__(6828), exports);
918
+ __exportStar(__webpack_require__(2224), exports);
919
+ __exportStar(__webpack_require__(892), exports);
920
+ __exportStar(__webpack_require__(2623), exports);
921
+ __exportStar(__webpack_require__(3854), exports);
922
+ __exportStar(__webpack_require__(4132), exports);
923
+ __exportStar(__webpack_require__(3516), exports);
924
+ __exportStar(__webpack_require__(4199), exports);
925
+ __exportStar(__webpack_require__(1682), exports);
926
+ __exportStar(__webpack_require__(1283), exports);
927
+ __exportStar(__webpack_require__(5237), exports);
928
+ __exportStar(__webpack_require__(1048), exports);
929
+
930
+
931
+ /***/ }),
932
+
933
+ /***/ 3245:
934
+ /***/ ((__unused_webpack_module, exports) => {
935
+
936
+
937
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
938
+ exports.PromptTypeEnum = void 0;
939
+ var PromptTypeEnum;
940
+ (function (PromptTypeEnum) {
941
+ PromptTypeEnum["INSTRUCTIONS"] = "INSTRUCTIONS";
942
+ PromptTypeEnum["TEXT_STYLE"] = "TEXT_STYLE";
943
+ PromptTypeEnum["TEXT_TONE"] = "TEXT_TONE";
944
+ PromptTypeEnum["REACTION_TYPE"] = "REACTION_TYPE";
945
+ PromptTypeEnum["COMMENT_LENGTH"] = "COMMENT_LENGTH";
946
+ PromptTypeEnum["CONTEXT"] = "CONTEXT";
947
+ })(PromptTypeEnum || (exports.PromptTypeEnum = PromptTypeEnum = {}));
948
+
949
+
950
+ /***/ }),
951
+
952
+ /***/ 3338:
953
+ /***/ ((__unused_webpack_module, exports) => {
954
+
955
+
956
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
957
+ exports.TweetType = exports.SeasonStatusEnum = void 0;
958
+ var SeasonStatusEnum;
959
+ (function (SeasonStatusEnum) {
960
+ SeasonStatusEnum["CREATED"] = "created";
961
+ SeasonStatusEnum["STARTED"] = "started";
962
+ SeasonStatusEnum["PAUSED"] = "paused";
963
+ SeasonStatusEnum["CLOSED"] = "closed";
964
+ })(SeasonStatusEnum || (exports.SeasonStatusEnum = SeasonStatusEnum = {}));
965
+ var TweetType;
966
+ (function (TweetType) {
967
+ TweetType["Post"] = "POST";
968
+ TweetType["Comment"] = "COMMENT";
969
+ })(TweetType || (exports.TweetType = TweetType = {}));
970
+
971
+
972
+ /***/ }),
973
+
974
+ /***/ 3487:
975
+ /***/ ((__unused_webpack_module, exports) => {
976
+
977
+
978
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
979
+ exports.TradingKeyType = void 0;
980
+ var TradingKeyType;
981
+ (function (TradingKeyType) {
982
+ TradingKeyType["User"] = "User";
983
+ TradingKeyType["Api"] = "API";
984
+ })(TradingKeyType || (exports.TradingKeyType = TradingKeyType = {}));
985
+
986
+
987
+ /***/ }),
988
+
989
+ /***/ 3516:
990
+ /***/ ((__unused_webpack_module, exports) => {
991
+
992
+
993
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
994
+ exports.SortDirectionEnum = void 0;
995
+ var SortDirectionEnum;
996
+ (function (SortDirectionEnum) {
997
+ SortDirectionEnum["ASCENDING"] = "ASC";
998
+ SortDirectionEnum["DESCENDING"] = "DESC";
999
+ })(SortDirectionEnum || (exports.SortDirectionEnum = SortDirectionEnum = {}));
1000
+
1001
+
1002
+ /***/ }),
1003
+
1004
+ /***/ 3854:
1005
+ /***/ ((__unused_webpack_module, exports) => {
1006
+
1007
+
1008
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1009
+ exports.TradeSubStatus = exports.TradeStatus = void 0;
1010
+ var TradeStatus;
1011
+ (function (TradeStatus) {
1012
+ TradeStatus["Unconfirmed"] = "UNCONFIRMED";
1013
+ TradeStatus["Confirmed"] = "CONFIRMED";
1014
+ TradeStatus["Rejected"] = "REJECTED";
1015
+ })(TradeStatus || (exports.TradeStatus = TradeStatus = {}));
1016
+ var TradeSubStatus;
1017
+ (function (TradeSubStatus) {
1018
+ TradeSubStatus["RESUBMITTED"] = "RESUBMITTED";
1019
+ TradeSubStatus["PROCESSED"] = "PROCESSED";
1020
+ TradeSubStatus["REMATCHED"] = "REMATCHED";
1021
+ })(TradeSubStatus || (exports.TradeSubStatus = TradeSubStatus = {}));
1022
+
1023
+
1024
+ /***/ }),
1025
+
1026
+ /***/ 4132:
1027
+ /***/ ((__unused_webpack_module, exports) => {
1028
+
1029
+
1030
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1031
+ exports.MarketMakerSortByEnum = exports.MarketMakerRebateTier = void 0;
1032
+ var MarketMakerRebateTier;
1033
+ (function (MarketMakerRebateTier) {
1034
+ MarketMakerRebateTier[MarketMakerRebateTier["FIRST"] = 1] = "FIRST";
1035
+ MarketMakerRebateTier[MarketMakerRebateTier["SECOND"] = 2] = "SECOND";
1036
+ MarketMakerRebateTier[MarketMakerRebateTier["THIRD"] = 3] = "THIRD";
1037
+ MarketMakerRebateTier[MarketMakerRebateTier["FOURTH"] = 4] = "FOURTH";
1038
+ })(MarketMakerRebateTier || (exports.MarketMakerRebateTier = MarketMakerRebateTier = {}));
1039
+ var MarketMakerSortByEnum;
1040
+ (function (MarketMakerSortByEnum) {
1041
+ MarketMakerSortByEnum["REBATE_TIER"] = "rebateTier";
1042
+ MarketMakerSortByEnum["CREATED_AT"] = "createdAt";
1043
+ MarketMakerSortByEnum["NAME"] = "name";
1044
+ MarketMakerSortByEnum["TAKER_FEE"] = "takerFee";
1045
+ MarketMakerSortByEnum["ENABLED"] = "enabled";
1046
+ MarketMakerSortByEnum["ADDRESS"] = "address";
1047
+ MarketMakerSortByEnum["CHAIN"] = "chainId";
1048
+ })(MarketMakerSortByEnum || (exports.MarketMakerSortByEnum = MarketMakerSortByEnum = {}));
1049
+
1050
+
1051
+ /***/ }),
1052
+
1053
+ /***/ 4199:
1054
+ /***/ ((__unused_webpack_module, exports) => {
1055
+
1056
+
1057
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1058
+ exports.ScheduledNotificationStatusEnum = exports.NotificationStatusEnum = exports.NotificationPriorityEnum = exports.CombinedNotificationEnum = exports.AccountNotificationEnum = exports.GlobalNotificationEnum = void 0;
1059
+ var GlobalNotificationEnum;
1060
+ (function (GlobalNotificationEnum) {
1061
+ GlobalNotificationEnum["GLOBAL_PAIR_DELISTING"] = "GLOBAL_PAIR_DELISTING";
1062
+ GlobalNotificationEnum["GLOBAL_NEW_PAIR_LISTING"] = "GLOBAL_NEW_PAIR_LISTING";
1063
+ GlobalNotificationEnum["GLOBAL_SYSTEM_MAINTENANCE"] = "GLOBAL_SYSTEM_MAINTENANCE";
1064
+ GlobalNotificationEnum["GLOBAL_SMART_CONTRACT_UPDATE"] = "GLOBAL_SMART_CONTRACT_UPDATE";
1065
+ })(GlobalNotificationEnum || (exports.GlobalNotificationEnum = GlobalNotificationEnum = {}));
1066
+ var AccountNotificationEnum;
1067
+ (function (AccountNotificationEnum) {
1068
+ AccountNotificationEnum["ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT"] = "ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT";
1069
+ AccountNotificationEnum["ACCOUNT_KYC_STATUS_CHANGED"] = "ACCOUNT_KYC_STATUS_CHANGED";
1070
+ AccountNotificationEnum["ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED"] = "ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED";
1071
+ })(AccountNotificationEnum || (exports.AccountNotificationEnum = AccountNotificationEnum = {}));
1072
+ exports.CombinedNotificationEnum = {
1073
+ ...GlobalNotificationEnum,
1074
+ ...AccountNotificationEnum,
1075
+ };
1076
+ var NotificationPriorityEnum;
1077
+ (function (NotificationPriorityEnum) {
1078
+ NotificationPriorityEnum["CRITICAL"] = "CRITICAL";
1079
+ NotificationPriorityEnum["IMPORTANT"] = "IMPORTANT";
1080
+ NotificationPriorityEnum["INFO"] = "INFO";
1081
+ })(NotificationPriorityEnum || (exports.NotificationPriorityEnum = NotificationPriorityEnum = {}));
1082
+ var NotificationStatusEnum;
1083
+ (function (NotificationStatusEnum) {
1084
+ NotificationStatusEnum["UNREAD"] = "UNREAD";
1085
+ NotificationStatusEnum["READ"] = "READ";
1086
+ })(NotificationStatusEnum || (exports.NotificationStatusEnum = NotificationStatusEnum = {}));
1087
+ var ScheduledNotificationStatusEnum;
1088
+ (function (ScheduledNotificationStatusEnum) {
1089
+ ScheduledNotificationStatusEnum["PENDING"] = "PENDING";
1090
+ ScheduledNotificationStatusEnum["PROCESSED"] = "PROCESSED";
1091
+ ScheduledNotificationStatusEnum["FAILED"] = "FAILED";
1092
+ })(ScheduledNotificationStatusEnum || (exports.ScheduledNotificationStatusEnum = ScheduledNotificationStatusEnum = {}));
1093
+
1094
+
1095
+ /***/ }),
1096
+
1097
+ /***/ 4574:
1098
+ /***/ ((__unused_webpack_module, exports) => {
1099
+
1100
+
1101
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1102
+ exports.messageForSigning = void 0;
1103
+ const messageForSigning = (signingAddress) => `By signing this message, you confirm that the wallet is a trusted one ${signingAddress}; Data: `;
1104
+ exports.messageForSigning = messageForSigning;
1105
+
1106
+
1107
+ /***/ }),
1108
+
1109
+ /***/ 5237:
1110
+ /***/ ((__unused_webpack_module, exports) => {
1111
+
1112
+
1113
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1114
+ exports.UpgradeStatus = void 0;
1115
+ var UpgradeStatus;
1116
+ (function (UpgradeStatus) {
1117
+ UpgradeStatus["SUCCESS"] = "success";
1118
+ UpgradeStatus["FAILED"] = "failed";
1119
+ UpgradeStatus["PENDING"] = "pending";
1120
+ })(UpgradeStatus || (exports.UpgradeStatus = UpgradeStatus = {}));
1121
+
1122
+
1123
+ /***/ }),
1124
+
1125
+ /***/ 6119:
1126
+ /***/ ((__unused_webpack_module, exports) => {
1127
+
1128
+
1129
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1130
+ exports.TwitterAccessScopeEnum = void 0;
1131
+ var TwitterAccessScopeEnum;
1132
+ (function (TwitterAccessScopeEnum) {
1133
+ TwitterAccessScopeEnum["USERS_READ"] = "users.read";
1134
+ TwitterAccessScopeEnum["FOLLOWS_READ"] = "follows.read";
1135
+ TwitterAccessScopeEnum["FOLLOWS_WRITE"] = "follows.write";
1136
+ TwitterAccessScopeEnum["TWEET_READ"] = "tweet.read";
1137
+ TwitterAccessScopeEnum["TWEET_WRITE"] = "tweet.write";
1138
+ TwitterAccessScopeEnum["OFFLINE_ACCESS"] = "offline.access";
1139
+ TwitterAccessScopeEnum["LIKE_READ"] = "like.read";
1140
+ TwitterAccessScopeEnum["LIKE_WRITE"] = "like.write";
1141
+ })(TwitterAccessScopeEnum || (exports.TwitterAccessScopeEnum = TwitterAccessScopeEnum = {}));
1142
+
1143
+
1144
+ /***/ }),
1145
+
1146
+ /***/ 6168:
1147
+ /***/ ((module) => {
1148
+
1149
+ module.exports = __WEBPACK_EXTERNAL_MODULE__6168__;
1150
+
1151
+ /***/ }),
1152
+
1153
+ /***/ 6450:
1154
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1155
+
1156
+
1157
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1158
+ if (k2 === undefined) k2 = k;
1159
+ var desc = Object.getOwnPropertyDescriptor(m, k);
1160
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1161
+ desc = { enumerable: true, get: function() { return m[k]; } };
1162
+ }
1163
+ Object.defineProperty(o, k2, desc);
1164
+ }) : (function(o, m, k, k2) {
1165
+ if (k2 === undefined) k2 = k;
1166
+ o[k2] = m[k];
1167
+ }));
1168
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
1169
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1170
+ };
1171
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1172
+ __exportStar(__webpack_require__(2806), exports);
1173
+ __exportStar(__webpack_require__(661), exports);
1174
+ __exportStar(__webpack_require__(9862), exports);
1175
+ __exportStar(__webpack_require__(935), exports);
1176
+ __exportStar(__webpack_require__(7801), exports);
1177
+ __exportStar(__webpack_require__(2169), exports);
1178
+ __exportStar(__webpack_require__(4574), exports);
1179
+
1180
+
1181
+ /***/ }),
1182
+
1183
+ /***/ 6828:
1184
+ /***/ ((__unused_webpack_module, exports) => {
1185
+
1186
+
1187
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1188
+ exports.KYCAuthenticationStatus = exports.LastLookAction = exports.FeeTier = void 0;
1189
+ var FeeTier;
1190
+ (function (FeeTier) {
1191
+ FeeTier[FeeTier["FEE_TIER_1"] = 1] = "FEE_TIER_1";
1192
+ FeeTier[FeeTier["FEE_TIER_2"] = 2] = "FEE_TIER_2";
1193
+ FeeTier[FeeTier["FEE_TIER_3"] = 3] = "FEE_TIER_3";
1194
+ FeeTier[FeeTier["FEE_TIER_4"] = 4] = "FEE_TIER_4";
1195
+ FeeTier[FeeTier["FEE_TIER_5"] = 5] = "FEE_TIER_5";
1196
+ FeeTier[FeeTier["FEE_TIER_6"] = 6] = "FEE_TIER_6";
1197
+ })(FeeTier || (exports.FeeTier = FeeTier = {}));
1198
+ var LastLookAction;
1199
+ (function (LastLookAction) {
1200
+ LastLookAction[LastLookAction["Approve"] = 1] = "Approve";
1201
+ LastLookAction[LastLookAction["Reject"] = 0] = "Reject";
1202
+ })(LastLookAction || (exports.LastLookAction = LastLookAction = {}));
1203
+ var KYCAuthenticationStatus;
1204
+ (function (KYCAuthenticationStatus) {
1205
+ KYCAuthenticationStatus["INITIATED"] = "INITIATED";
1206
+ KYCAuthenticationStatus["CREATED"] = "CREATED";
1207
+ KYCAuthenticationStatus["PROCESSING"] = "PROCESSING";
1208
+ KYCAuthenticationStatus["APPROVED"] = "APPROVED";
1209
+ KYCAuthenticationStatus["REJECTED"] = "REJECTED";
1210
+ })(KYCAuthenticationStatus || (exports.KYCAuthenticationStatus = KYCAuthenticationStatus = {}));
1211
+
1212
+
1213
+ /***/ }),
1214
+
1215
+ /***/ 6978:
1216
+ /***/ ((__unused_webpack_module, exports) => {
1217
+
1218
+
1219
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1220
+ exports.MaintenanceMode = void 0;
1221
+ var MaintenanceMode;
1222
+ (function (MaintenanceMode) {
1223
+ MaintenanceMode[MaintenanceMode["Off"] = 0] = "Off";
1224
+ MaintenanceMode[MaintenanceMode["Full"] = 1] = "Full";
1225
+ MaintenanceMode[MaintenanceMode["Partial"] = 2] = "Partial";
1226
+ MaintenanceMode[MaintenanceMode["Scheduled"] = 3] = "Scheduled";
1227
+ })(MaintenanceMode || (exports.MaintenanceMode = MaintenanceMode = {}));
1228
+
1229
+
1230
+ /***/ }),
1231
+
1232
+ /***/ 7010:
1233
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
1234
+
1235
+
1236
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1237
+ exports.assertOrder = exports.assertOrderExpirationAtCreationMoment = exports.assertOrderData = void 0;
1238
+ // import assert from "assert-ts";
1239
+ const big_number_helper_1 = __webpack_require__(1174);
1240
+ const utils_1 = __webpack_require__(8398);
1241
+ const _constants_1 = __webpack_require__(6450);
1242
+ const _enums_1 = __webpack_require__(9965);
1243
+ const assertOrderData = (order, pair) => {
1244
+ assertToken("base", { address: String(order.baseTokenAddress), chainId: order.baseTokenChainId }, pair.baseAsset);
1245
+ assertToken("price", { address: String(order.priceTokenAddress), chainId: order.priceTokenChainId }, pair.priceAsset);
1246
+ (0, exports.assertOrder)(order, pair);
1247
+ };
1248
+ exports.assertOrderData = assertOrderData;
1249
+ const assertToken = (token, tokenFromOrder, tokenFromPair) => {
1250
+ assert(Number(tokenFromOrder.chainId) === Number(tokenFromPair.chainId), `Invalid ${token}TokenChainId, must be ${tokenFromPair.chainId}`);
1251
+ assert(tokenFromPair.chainId === _enums_1.Chains.Solana && String(tokenFromOrder.address) === String(tokenFromPair.address)
1252
+ || tokenFromPair.chainId === _enums_1.Chains.Algorand && Number(tokenFromOrder.address) === Number(tokenFromPair.address)
1253
+ || (0, utils_1.equalIgnoreCase)(tokenFromOrder.address, tokenFromPair.address), `Invalid ${token}TokenAddress, must be ${tokenFromPair.address}`);
1254
+ };
1255
+ const assertOrderExpirationAtCreationMoment = (order) => {
1256
+ assert(order.expiredTime >= Math.floor(Date.now() / 1000) + _constants_1.MIN_ORDER_EXPIRATION_MINS * 60, `Expiration time shorter than 1 hour`);
1257
+ };
1258
+ exports.assertOrderExpirationAtCreationMoment = assertOrderExpirationAtCreationMoment;
1259
+ const assertOrder = (order, pair) => {
1260
+ assert((0, big_number_helper_1.equal)(_constants_1.ORDER_MSG_VERSION, order.version), `Invalid order message version. Current is ${_constants_1.ORDER_MSG_VERSION}`);
1261
+ assert((0, big_number_helper_1.equal)(order.decimalPrice, 0) || (0, big_number_helper_1.equal)((0, big_number_helper_1.multiply)(order.decimalPrice, 10 ** _constants_1.FACTOR_PRICE_DECIMAL), order.price), "Invalid price or decimalPrice");
1262
+ assert(!isNaN(order.random), "Invalid random, must be a number");
1263
+ assert(order.random > 0, "Invalid random, must be greater than 0");
1264
+ assert(order.random <= Number.MAX_SAFE_INTEGER, "Invalid random, must no more than 2^53-1");
1265
+ assert(order.expiredTime >= Math.floor(Date.now() / 1000), `Invalid expiration time`);
1266
+ assert(["B", "S"].includes(order.orderSide), "Invalid order side");
1267
+ assert(["L", "P", "I", "M"].includes(order.orderType), "Invalid order type");
1268
+ if (order.orderType === "M" && order.orderSide === "S") {
1269
+ assert((0, big_number_helper_1.equal)(order.price, 0) && (0, big_number_helper_1.greaterThan)(order.amount, 0), "Invalid market order amount or price");
1270
+ assert((0, big_number_helper_1.modZero)(order.amount, pair.min_size_increment) && (0, big_number_helper_1.greaterThanOrEqual)(order.amount, pair.min_order_size), "Invalid market order amount");
1271
+ }
1272
+ else if (order.orderType === "M" && order.orderSide === "B" && (0, big_number_helper_1.equal)(order.amount, 0)) {
1273
+ throw new Error("Buy murket order by total is not implemented yet");
1274
+ // assert( greaterThan(order.price, 0) && modZero(order.price, pair.min_price_increment), "Invalid buy market order by total");
1275
+ }
1276
+ else if (order.orderType === "M" && order.orderSide === "B" && (0, big_number_helper_1.greaterThan)(order.amount, 0)) {
1277
+ assert((0, big_number_helper_1.greaterThan)(order.price, 0) && (0, big_number_helper_1.modZero)(order.amount, pair.min_size_increment) && (0, big_number_helper_1.greaterThanOrEqual)(order.amount, pair.min_order_size), "Invalid buy market order by amount");
1278
+ }
1279
+ else {
1280
+ assert((0, big_number_helper_1.greaterThan)(order.price, 0) && (0, big_number_helper_1.greaterThan)(order.amount, 0), "Invalid order amount or price is zero");
1281
+ assert((0, big_number_helper_1.modZero)(order.amount, pair.min_size_increment) && (0, big_number_helper_1.greaterThanOrEqual)(order.amount, pair.min_order_size) && (0, big_number_helper_1.modZero)(order.price, pair.min_price_increment), "Invalid order amount or price");
1282
+ }
1283
+ };
1284
+ exports.assertOrder = assertOrder;
1285
+ const assert = (condition, message) => {
1286
+ if (!condition) {
1287
+ throw new Error(message);
1288
+ }
1289
+ };
1290
+
1291
+
1292
+ /***/ }),
1293
+
1294
+ /***/ 7159:
1295
+ /***/ ((__unused_webpack_module, exports) => {
1296
+
1297
+
1298
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1299
+ exports.defaultThemesValue = exports.defaultThemeSettingValue = exports.defaultLogoSettingValue = exports.requiredColors = exports.settingIdToSecretType = exports.CredentialNameEnum = exports.AffDashboardVisibilitySettingEnum = exports.SettingIds = void 0;
1300
+ var SettingIds;
1301
+ (function (SettingIds) {
1302
+ SettingIds["ENABLED"] = "company.enabled";
1303
+ SettingIds["APP_TITLE"] = "company.appTitle";
1304
+ SettingIds["DOMAIN"] = "company.domain";
1305
+ SettingIds["LOGO"] = "appearance.logo";
1306
+ SettingIds["AMM"] = "product.amm";
1307
+ SettingIds["OBDEX"] = "product.obdex";
1308
+ SettingIds["THEMES"] = "appearance.themes";
1309
+ SettingIds["DIRECT_SETTLE"] = "company.directSettlement";
1310
+ SettingIds["AMM_FEE"] = "company.ammFee";
1311
+ SettingIds["FEE_SHARE"] = "company.feeShare";
1312
+ SettingIds["MIN_FEE"] = "company.minFee";
1313
+ SettingIds["MAKER_FEE"] = "company.makerFee";
1314
+ SettingIds["TAKER_FEE"] = "company.takerFee";
1315
+ SettingIds["GEOBLOCK"] = "company.geoblock";
1316
+ SettingIds["EMBEDDED_APP_URL"] = "company.embeddedAppUrl";
1317
+ SettingIds["PRODUCT_OBDEX"] = "product.obdex";
1318
+ SettingIds["PRODUCT_AMM"] = "product.amm";
1319
+ SettingIds["NEW_TAB"] = "appearance.newTab";
1320
+ SettingIds["APPEARANCE_TARGET"] = "appearance.target";
1321
+ SettingIds["CUSTOM_MENU_ITEMS"] = "appearance.customMenuItems";
1322
+ SettingIds["REPORT_BUTTONS"] = "appearance.reportButtons";
1323
+ SettingIds["APPEARANCE_CHART_TYPE"] = "appearance.chartType";
1324
+ SettingIds["APPEARANCE_CHART_INT"] = "appearance.chartInt";
1325
+ SettingIds["PINNED_PAIRS"] = "markets.pinnedPairs";
1326
+ SettingIds["KYC_TRADE_REQUIREMENT_ENABLED"] = "markets.kycTradeRequirementEnabled";
1327
+ SettingIds["AFFILIATE_DASHBOARD_VISIBILITY"] = "product.affiliateDashboardVisibility";
1328
+ SettingIds["AFFILIATE_DASHBOARD_THRESHOLD"] = "product.affiliateDashboardThreshold";
1329
+ SettingIds["AFFILIATE_DEFAULT_FEE_SHARE"] = "product.affiliateDefaultFeeShare";
1330
+ SettingIds["AFFILIATE_POINTS_REWARD"] = "product.affiliatePointsReward";
1331
+ SettingIds["POINT_SYSTEM_MODE"] = "product.pointSystem";
1332
+ SettingIds["POINT_SYSTEM_TELEGRAM_API_TOKEN"] = "point-system.telegramApiToken";
1333
+ SettingIds["POINT_SYSTEM_TELEGRAM_ENABLED"] = "point-system.telegramEnabled";
1334
+ SettingIds["POINT_SYSTEM_TELEGRAM_GROUP_ID"] = "point-system.telegramGroupId";
1335
+ SettingIds["POINT_SYSTEM_TELEGRAM_BOT_NAME"] = "point-system.telegramBotName";
1336
+ SettingIds["POINT_SYSTEM_TELEGRAM_BOT_ID"] = "point-system.telegramBotId";
1337
+ SettingIds["POINT_SYSTEM_TELEGRAM_GROUP_NAME"] = "point-system.telegramGroupName";
1338
+ SettingIds["POINT_SYSTEM_TELEGRAM_WEBHOOK_TOKEN"] = "point-system.telegramWebhookToken";
1339
+ SettingIds["POINT_SYSTEM_DISCORD_CLIENT_ID"] = "point-system.discordClientId";
1340
+ SettingIds["POINT_SYSTEM_DISCORD_CLIENT_SECRET"] = "point-system.discordClientSecret";
1341
+ SettingIds["POINT_SYSTEM_DISCORD_SERVER_ID"] = "point-system.discordServerId";
1342
+ SettingIds["POINT_SYSTEM_DISCORD_ENABLED"] = "point-system.discordEnabled";
1343
+ SettingIds["POINT_SYSTEM_TWITTER_CLIENT_ID"] = "point-system.twitterClientId";
1344
+ SettingIds["POINT_SYSTEM_TWITTER_CLIENT_SECRET"] = "point-system.twitterClientSecret";
1345
+ SettingIds["POINT_SYSTEM_TWITTER_BEARER_TOKEN"] = "point-system.twitterBearerToken";
1346
+ SettingIds["POINT_SYSTEM_TWITTER_REFRESH_TOKEN"] = "point-system.twitterRefreshToken";
1347
+ SettingIds["POINT_SYSTEM_TWITTER_ENABLED"] = "point-system.twitterEnabled";
1348
+ SettingIds["POINT_SYSTEM_TWITTER_JOB_ENABLED"] = "point-system.twitterJobEnabled";
1349
+ SettingIds["POINT_SYSTEM_TWITTER_HASHTAGS"] = "point-system.twitterHashtags";
1350
+ SettingIds["POINT_SYSTEM_TWITTER_TWEET_EXP_TIME"] = "point-system.twitterPostDefaultExpirationTime";
1351
+ SettingIds["POINT_SYSTEM_TWITTER_ACCOUNT_NAME"] = "point-system.twitterAccountName";
1352
+ SettingIds["POINT_SYSTEM_TWITTER_ACCOUNT_ID"] = "point-system.twitterAccountId";
1353
+ SettingIds["POINT_SYSTEM_TWITTER_WEBHOOK_TOKEN"] = "point-system.twitterWebhookToken";
1354
+ SettingIds["POINT_SYSTEM_GUIDE_LINK"] = "point-system.guideLink";
1355
+ })(SettingIds || (exports.SettingIds = SettingIds = {}));
1356
+ var AffDashboardVisibilitySettingEnum;
1357
+ (function (AffDashboardVisibilitySettingEnum) {
1358
+ AffDashboardVisibilitySettingEnum["DISABLED"] = "disabled";
1359
+ AffDashboardVisibilitySettingEnum["ENABLED_FOR_ALL"] = "enabled for all";
1360
+ AffDashboardVisibilitySettingEnum["ENABLED_FOR_AFFILIATES"] = "enabled for affiliates";
1361
+ })(AffDashboardVisibilitySettingEnum || (exports.AffDashboardVisibilitySettingEnum = AffDashboardVisibilitySettingEnum = {}));
1362
+ var CredentialNameEnum;
1363
+ (function (CredentialNameEnum) {
1364
+ CredentialNameEnum["API_TOKEN"] = "apiToken";
1365
+ CredentialNameEnum["CLIENT_ID"] = "clientId";
1366
+ CredentialNameEnum["CLIENT_SECRET"] = "clientSecret";
1367
+ CredentialNameEnum["BEARER_TOKEN"] = "bearerToken";
1368
+ CredentialNameEnum["REFRESH_TOKEN"] = "refreshToken";
1369
+ CredentialNameEnum["ACCESS_TOKEN"] = "accessToken";
1370
+ })(CredentialNameEnum || (exports.CredentialNameEnum = CredentialNameEnum = {}));
1371
+ exports.settingIdToSecretType = {
1372
+ 'point-system.telegramApiToken': CredentialNameEnum.API_TOKEN,
1373
+ 'point-system.discordClientId': CredentialNameEnum.CLIENT_ID,
1374
+ 'point-system.discordClientSecret': CredentialNameEnum.CLIENT_SECRET,
1375
+ 'point-system.twitterClientSecret': CredentialNameEnum.CLIENT_SECRET,
1376
+ 'point-system.twitterClientId': CredentialNameEnum.CLIENT_ID,
1377
+ 'point-system.twitterBearerToken': CredentialNameEnum.BEARER_TOKEN,
1378
+ 'point-system.twitterRefreshToken': CredentialNameEnum.REFRESH_TOKEN,
1379
+ };
1380
+ exports.requiredColors = [
1381
+ 'primary-1',
1382
+ 'primary-2',
1383
+ 'main-background',
1384
+ 'primary-text',
1385
+ 'module-background',
1386
+ 'buy-text',
1387
+ 'buy-background',
1388
+ 'sell-text',
1389
+ 'sell-background',
1390
+ 'secondary-text',
1391
+ 'input-background-default',
1392
+ 'input-background-hover',
1393
+ 'input-background-disabled',
1394
+ 'input-border-default',
1395
+ 'module-border',
1396
+ 'button-disabled',
1397
+ 'button-border',
1398
+ 'input-border-active',
1399
+ 'active-element-default',
1400
+ 'hover-element-default',
1401
+ 'dropdown-shadow',
1402
+ 'button-text',
1403
+ 'pair-active-row',
1404
+ ];
1405
+ 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}}`;
1406
+ 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)"}}}';
1407
+ var defaultThemesValue;
1408
+ (function (defaultThemesValue) {
1409
+ 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)\"}}";
1410
+ 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)\"}}";
1411
+ 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)\"}}";
1412
+ })(defaultThemesValue || (exports.defaultThemesValue = defaultThemesValue = {}));
1413
+
1414
+
1415
+ /***/ }),
1416
+
1417
+ /***/ 7801:
1418
+ /***/ ((__unused_webpack_module, exports) => {
1419
+
1420
+
1421
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1422
+ exports.QueueOptions = exports.QueueNames = void 0;
1423
+ var QueueNames;
1424
+ (function (QueueNames) {
1425
+ QueueNames["CANCELLATION_TRADE"] = "cancellation_trade";
1426
+ QueueNames["CANCEL_ORDER"] = "cancelOrder";
1427
+ QueueNames["MAINTENANCE"] = "maintenance";
1428
+ QueueNames["SYSTEM"] = "system";
1429
+ QueueNames["NEW_ORDER"] = "newOrder";
1430
+ QueueNames["PROCESS_WALLET_TRANSACTION"] = "wallet_transaction";
1431
+ QueueNames["LAST_LOOK_TRADE"] = "last_look_trade";
1432
+ QueueNames["SEND_TRADE_TO_SETTLE"] = "send_trade_to_settle";
1433
+ QueueNames["TRADE_FIRE"] = "trade_fire";
1434
+ QueueNames["TRADE_CONFIRMED"] = "trade_confirmed";
1435
+ QueueNames["ORDER_OPERATION"] = "order_operation";
1436
+ QueueNames["ORDER_RESULT"] = "order_result";
1437
+ QueueNames["TRADES_QUEUE"] = "trades_q";
1438
+ QueueNames["OPEN_ORDER_BOOK"] = "open_order_book";
1439
+ QueueNames["SOCKET_WALLET_TRANSACTION"] = "socket_wallet_transaction";
1440
+ QueueNames["STREAM_UPDATE_QUOTE"] = "stream_update_quote";
1441
+ QueueNames["STREAM_UPDATE_LAST_PRICE"] = "stream_update_last_price";
1442
+ QueueNames["STREAM_UPDATE_DEPTH"] = "stream_update_depth";
1443
+ QueueNames["STREAM_UPDATE_LAST_CANDLESTICK"] = "stream_update_last_candlestick";
1444
+ QueueNames["STREAM_UPDATE_ORDERS"] = "stream_update_orders";
1445
+ QueueNames["STREAM_UPDATE_TRADES"] = "stream_update_trades";
1446
+ QueueNames["STREAM_UPDATE_ORDER_BOOK"] = "stream_update_order_book";
1447
+ QueueNames["CODEX_DEPOSIT"] = "codex_deposit";
1448
+ QueueNames["CODEX_TRANSFER"] = "codex_transfer";
1449
+ QueueNames["CODEX_WITHDRAWAL"] = "codex_withdrawal";
1450
+ QueueNames["CODEX_BALANCES"] = "codex_balances";
1451
+ QueueNames["CODEX_TRADE"] = "codex_trade";
1452
+ QueueNames["VAA_LOG"] = "vaa_log";
1453
+ QueueNames["SETTINGS_UPDATE"] = "settings_update";
1454
+ QueueNames["POINT_SYSTEM_SETTINGS_UPDATE"] = "point_system_settings_update";
1455
+ QueueNames["NEW_NOTIFICATION"] = "new_notification";
1456
+ })(QueueNames || (exports.QueueNames = QueueNames = {}));
1457
+ exports.QueueOptions = {
1458
+ [QueueNames.CANCELLATION_TRADE]: { options: { durable: true } },
1459
+ [QueueNames.CANCEL_ORDER]: { options: { durable: true } },
1460
+ [QueueNames.CODEX_BALANCES]: { options: { durable: true } },
1461
+ [QueueNames.CODEX_DEPOSIT]: { options: { durable: true } },
1462
+ [QueueNames.CODEX_TRANSFER]: { options: { durable: true } },
1463
+ [QueueNames.CODEX_TRADE]: { options: { durable: true } },
1464
+ [QueueNames.CODEX_WITHDRAWAL]: { options: { durable: true } },
1465
+ [QueueNames.LAST_LOOK_TRADE]: { options: { durable: true } },
1466
+ [QueueNames.MAINTENANCE]: { options: { durable: true } },
1467
+ [QueueNames.SYSTEM]: { options: { durable: true } },
1468
+ [QueueNames.NEW_ORDER]: { options: { durable: true } },
1469
+ [QueueNames.OPEN_ORDER_BOOK]: { options: { durable: true } },
1470
+ [QueueNames.ORDER_OPERATION]: { options: { durable: true, maxPriority: 5 } },
1471
+ [QueueNames.ORDER_RESULT]: { options: { durable: true } },
1472
+ [QueueNames.PROCESS_WALLET_TRANSACTION]: { options: { durable: true } },
1473
+ [QueueNames.SEND_TRADE_TO_SETTLE]: { options: { durable: true } },
1474
+ [QueueNames.SOCKET_WALLET_TRANSACTION]: { options: { durable: true } },
1475
+ [QueueNames.STREAM_UPDATE_DEPTH]: { options: { durable: true } },
1476
+ [QueueNames.STREAM_UPDATE_LAST_CANDLESTICK]: { options: { durable: true } },
1477
+ [QueueNames.STREAM_UPDATE_LAST_PRICE]: { options: { durable: true } },
1478
+ [QueueNames.STREAM_UPDATE_ORDERS]: { options: { durable: true } },
1479
+ [QueueNames.STREAM_UPDATE_ORDER_BOOK]: { options: { durable: true } },
1480
+ [QueueNames.STREAM_UPDATE_QUOTE]: { options: { durable: true } },
1481
+ [QueueNames.STREAM_UPDATE_TRADES]: { options: { durable: true } },
1482
+ [QueueNames.TRADES_QUEUE]: { options: { durable: true } },
1483
+ [QueueNames.TRADE_CONFIRMED]: { options: { durable: true } },
1484
+ [QueueNames.TRADE_FIRE]: { options: { durable: true } },
1485
+ [QueueNames.VAA_LOG]: { options: { durable: true } },
1486
+ [QueueNames.SETTINGS_UPDATE]: { options: { durable: true } },
1487
+ [QueueNames.POINT_SYSTEM_SETTINGS_UPDATE]: { options: { durable: true } },
1488
+ [QueueNames.NEW_NOTIFICATION]: { options: { durable: true } },
1489
+ };
1490
+
1491
+
1492
+ /***/ }),
1493
+
1494
+ /***/ 8398:
1495
+ /***/ ((__unused_webpack_module, exports) => {
1496
+
1497
+
1498
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1499
+ exports.equalIgnoreCase = exports.listDateFormat = void 0;
1500
+ exports.getRandomInt = getRandomInt;
1501
+ exports.getDomains = getDomains;
1502
+ exports.cutEvent = cutEvent;
1503
+ exports.maskingString = maskingString;
1504
+ exports.removeField = removeField;
1505
+ const listDateFormat = (date) => {
1506
+ let newDAte = new Date(date);
1507
+ let parsedDate = newDAte.toLocaleDateString('default', {
1508
+ year: 'numeric',
1509
+ month: 'numeric',
1510
+ day: 'numeric',
1511
+ });
1512
+ let time = newDAte.toLocaleTimeString('en-US', {
1513
+ hour12: true,
1514
+ hour: '2-digit',
1515
+ minute: '2-digit',
1516
+ });
1517
+ return parsedDate + ' ' + time;
1518
+ };
1519
+ exports.listDateFormat = listDateFormat;
1520
+ const equalIgnoreCase = (value1, value2) => {
1521
+ return String(value1).toLowerCase() === String(value2).toLowerCase();
1522
+ };
1523
+ exports.equalIgnoreCase = equalIgnoreCase;
1524
+ function getRandomInt(min, max) {
1525
+ min = Math.ceil(min);
1526
+ max = Math.floor(max);
1527
+ return Math.floor(Math.random() * (max - min + 1)) + min;
1528
+ }
1529
+ function getDomains(domain) {
1530
+ const domains = [];
1531
+ const parts = domain.split('.');
1532
+ for (let i = 0; i < parts.length - 1; i++) {
1533
+ domains.push(parts.slice(i).join('.'));
1534
+ }
1535
+ return domains;
1536
+ }
1537
+ ;
1538
+ function cutEvent(event) {
1539
+ const headers = event.headers && removeUndefined({
1540
+ 'Authorization': event.headers['Authorization']?.substring(0, 200),
1541
+ 'CloudFront-Viewer-Country': event.headers['CloudFront-Viewer-Country'],
1542
+ 'Host': event.headers['Host'],
1543
+ 'origin': event.headers['origin'],
1544
+ 'Referer': event.headers['Referer'],
1545
+ 'User-Agent': event.headers['User-Agent'],
1546
+ 'wl-domain': event.headers['wl-domain'],
1547
+ 'X-API-Key': maskingString(event.headers['X-API-Key']),
1548
+ 'X-Forwarded-For': event.headers['X-Forwarded-For'],
1549
+ 'X-Forwarded-Port': event.headers['X-Forwarded-Port'],
1550
+ 'X-Forwarded-Proto': event.headers['X-Forwarded-Proto'],
1551
+ 'X-Trading-Key': event.headers['X-Trading-Key'],
1552
+ 'X-Wallet-Address': event.headers['X-Wallet-Address'],
1553
+ 'X-Wallet-Token': event.headers['X-Wallet-Token'],
1554
+ 'accessToken': maskingString(event.headers['accessToken']),
1555
+ 'companyId': event.headers['companyId'],
1556
+ 'seasonId': event.headers['seasonId'],
1557
+ });
1558
+ const requestContext = event.requestContext && removeUndefined({
1559
+ identity: event.requestContext.identity && removeUndefined({
1560
+ 'userAgent': event.requestContext.identity['userAgent'],
1561
+ 'sourceIp': event.requestContext.identity['sourceIp'],
1562
+ }),
1563
+ domainName: event.requestContext.domainName,
1564
+ });
1565
+ return removeUndefined({
1566
+ manage: event.manage,
1567
+ path: event.path,
1568
+ httpMethod: event.httpMethod,
1569
+ headers,
1570
+ requestContext,
1571
+ });
1572
+ }
1573
+ function maskingString(str) {
1574
+ if (!str?.length)
1575
+ return str;
1576
+ const maskLen = Math.round(str.length / 3);
1577
+ const start = maskLen;
1578
+ const end = str.length - maskLen;
1579
+ const maskedStr = str.substring(0, start) + "*".repeat(maskLen) + str.substring(end);
1580
+ return maskedStr;
1581
+ }
1582
+ function removeField(obj, fieldToRemove) {
1583
+ if (Array.isArray(obj)) {
1584
+ return obj.map(item => removeField(item, fieldToRemove));
1585
+ }
1586
+ else if (typeof obj === 'object' && obj !== null) {
1587
+ return Object.fromEntries(Object.entries(obj)
1588
+ .filter(([key]) => key !== fieldToRemove)
1589
+ .map(([key, value]) => [key, removeField(value, fieldToRemove)]));
1590
+ }
1591
+ return obj; // Return primitives as-is
1592
+ }
1593
+ function removeUndefined(obj) {
1594
+ return Object.fromEntries(Object.entries(obj).filter(([, value]) => value !== undefined));
1595
+ }
1596
+
1597
+
1598
+ /***/ }),
1599
+
1600
+ /***/ 9862:
1601
+ /***/ ((__unused_webpack_module, exports) => {
1602
+
1603
+
1604
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1605
+ exports.CCTP_UNIFIED_ASSETS = void 0;
1606
+ exports.CCTP_UNIFIED_ASSETS = {
1607
+ "0x4343545055534443000000000000000000000000000000000000000000000000": 65537,
1608
+ };
1609
+
1610
+
1611
+ /***/ }),
1612
+
1613
+ /***/ 9965:
1614
+ /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
1615
+
1616
+
1617
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
1618
+ if (k2 === undefined) k2 = k;
1619
+ var desc = Object.getOwnPropertyDescriptor(m, k);
1620
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1621
+ desc = { enumerable: true, get: function() { return m[k]; } };
1622
+ }
1623
+ Object.defineProperty(o, k2, desc);
1624
+ }) : (function(o, m, k, k2) {
1625
+ if (k2 === undefined) k2 = k;
1626
+ o[k2] = m[k];
1627
+ }));
1628
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
1629
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
1630
+ };
1631
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
1632
+ __exportStar(__webpack_require__(2228), exports);
1633
+ __exportStar(__webpack_require__(6978), exports);
1634
+ __exportStar(__webpack_require__(2739), exports);
1635
+ __exportStar(__webpack_require__(6119), exports);
1636
+ __exportStar(__webpack_require__(3004), exports);
1637
+
1638
+
1639
+ /***/ })
1640
+
1641
+ /******/ });
1642
+ /************************************************************************/
1643
+ /******/ // The module cache
1644
+ /******/ var __webpack_module_cache__ = {};
1645
+ /******/
1646
+ /******/ // The require function
1647
+ /******/ function __webpack_require__(moduleId) {
1648
+ /******/ // Check if module is in cache
1649
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
1650
+ /******/ if (cachedModule !== undefined) {
1651
+ /******/ return cachedModule.exports;
1652
+ /******/ }
1653
+ /******/ // Create a new module (and put it into the cache)
1654
+ /******/ var module = __webpack_module_cache__[moduleId] = {
1655
+ /******/ // no module.id needed
1656
+ /******/ // no module.loaded needed
1657
+ /******/ exports: {}
1658
+ /******/ };
1659
+ /******/
1660
+ /******/ // Execute the module function
1661
+ /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
1662
+ /******/
1663
+ /******/ // Return the exports of the module
1664
+ /******/ return module.exports;
1665
+ /******/ }
1666
+ /******/
1667
+ /************************************************************************/
1668
+ /******/
1669
+ /******/ // startup
1670
+ /******/ // Load entry module and return exports
1671
+ /******/ // This entry module is referenced by other modules so it can't be inlined
1672
+ /******/ var __webpack_exports__ = __webpack_require__(7010);
1673
+ /******/
1674
+ /******/ return __webpack_exports__;
1675
+ /******/ })()
1676
+ ;
1677
+ });