@ultrade/shared 1.0.6 → 1.0.8

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