@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,946 +1 @@
1
- /******/ (() => { // webpackBootstrap
2
- /******/ "use strict";
3
- /******/ var __webpack_modules__ = ({
4
-
5
- /***/ 835:
6
- /***/ ((__unused_webpack_module, exports) => {
7
-
8
-
9
- Object.defineProperty(exports, "__esModule", ({ value: true }));
10
- var OrderSide;
11
- (function (OrderSide) {
12
- OrderSide[OrderSide["Buy"] = 0] = "Buy";
13
- OrderSide[OrderSide["Sell"] = 1] = "Sell";
14
- })(OrderSide || (OrderSide = {}));
15
- exports["default"] = OrderSide;
16
-
17
-
18
- /***/ }),
19
-
20
- /***/ 892:
21
- /***/ ((__unused_webpack_module, exports) => {
22
-
23
-
24
- Object.defineProperty(exports, "__esModule", ({ value: true }));
25
- exports.PairComponentStatusType = exports.ComponentType = exports.ComponentStatusType = void 0;
26
- var ComponentStatusType;
27
- (function (ComponentStatusType) {
28
- ComponentStatusType["ACTIVE"] = "ACTIVE";
29
- ComponentStatusType["FAILED"] = "FAILED";
30
- ComponentStatusType["STARTING"] = "STARTING";
31
- ComponentStatusType["DRAINING"] = "DRAINING";
32
- ComponentStatusType["TERMINATING"] = "TERMINATING";
33
- ComponentStatusType["TERMINATED"] = "TERMINATED";
34
- })(ComponentStatusType || (exports.ComponentStatusType = ComponentStatusType = {}));
35
- var ComponentType;
36
- (function (ComponentType) {
37
- ComponentType["MATCHING_ENGINE"] = "me";
38
- ComponentType["ORDER_SERVICE"] = "ors";
39
- ComponentType["API"] = "api";
40
- ComponentType["SOCKET_SERVICE"] = "ws";
41
- ComponentType["TRANSACTION_SERVICE"] = "tns";
42
- })(ComponentType || (exports.ComponentType = ComponentType = {}));
43
- var PairComponentStatusType;
44
- (function (PairComponentStatusType) {
45
- PairComponentStatusType["ACTIVE"] = "ACTIVE";
46
- PairComponentStatusType["FAILED"] = "FAILED";
47
- PairComponentStatusType["UNASSIGNED"] = "UNASSIGNED";
48
- PairComponentStatusType["ASSIGNED"] = "ASSIGNED";
49
- PairComponentStatusType["STARTING"] = "STARTING";
50
- })(PairComponentStatusType || (exports.PairComponentStatusType = PairComponentStatusType = {}));
51
-
52
-
53
- /***/ }),
54
-
55
- /***/ 893:
56
- /***/ ((__unused_webpack_module, exports) => {
57
-
58
-
59
- Object.defineProperty(exports, "__esModule", ({ value: true }));
60
- exports.NON_REPEATABLE_ACTIONS = exports.ActionEnum = exports.ActionSource = void 0;
61
- var ActionSource;
62
- (function (ActionSource) {
63
- ActionSource["COMPANY"] = "COMPANY";
64
- ActionSource["TWITTER"] = "TWITTER";
65
- ActionSource["DISCORD"] = "DISCORD";
66
- ActionSource["TELEGRAM"] = "TELEGRAM";
67
- })(ActionSource || (exports.ActionSource = ActionSource = {}));
68
- var ActionEnum;
69
- (function (ActionEnum) {
70
- ActionEnum[ActionEnum["TWITTER_FOLLOW"] = 1] = "TWITTER_FOLLOW";
71
- ActionEnum[ActionEnum["TWITTER_REPLY"] = 2] = "TWITTER_REPLY";
72
- ActionEnum[ActionEnum["TWITTER_RETWEET"] = 3] = "TWITTER_RETWEET";
73
- ActionEnum[ActionEnum["TWITTER_LIKE"] = 4] = "TWITTER_LIKE";
74
- ActionEnum[ActionEnum["COMPANY_FIRST_LOGIN"] = 5] = "COMPANY_FIRST_LOGIN";
75
- ActionEnum[ActionEnum["COMPANY_CONFIRM_EMAIL"] = 6] = "COMPANY_CONFIRM_EMAIL";
76
- ActionEnum[ActionEnum["COMPANY_DEPOSIT"] = 7] = "COMPANY_DEPOSIT";
77
- ActionEnum[ActionEnum["COMPANY_TRADE"] = 8] = "COMPANY_TRADE";
78
- ActionEnum[ActionEnum["TELEGRAM_JOIN_GROUP"] = 9] = "TELEGRAM_JOIN_GROUP";
79
- ActionEnum[ActionEnum["DISCORD_JOIN_SERVER"] = 10] = "DISCORD_JOIN_SERVER";
80
- ActionEnum[ActionEnum["AFFILIATE_POINTS_REWARD"] = 11] = "AFFILIATE_POINTS_REWARD";
81
- })(ActionEnum || (exports.ActionEnum = ActionEnum = {}));
82
- exports.NON_REPEATABLE_ACTIONS = [
83
- ActionEnum.TWITTER_FOLLOW,
84
- ActionEnum.TELEGRAM_JOIN_GROUP,
85
- ActionEnum.DISCORD_JOIN_SERVER,
86
- ActionEnum.COMPANY_CONFIRM_EMAIL,
87
- ActionEnum.COMPANY_FIRST_LOGIN,
88
- ];
89
-
90
-
91
- /***/ }),
92
-
93
- /***/ 1048:
94
- /***/ ((__unused_webpack_module, exports) => {
95
-
96
-
97
- Object.defineProperty(exports, "__esModule", ({ value: true }));
98
- exports.WithdrawalWalletType = void 0;
99
- var WithdrawalWalletType;
100
- (function (WithdrawalWalletType) {
101
- WithdrawalWalletType["SOLANA"] = "SOLANA";
102
- WithdrawalWalletType["ALGORAND"] = "ALGORAND";
103
- WithdrawalWalletType["EVM"] = "EVM";
104
- })(WithdrawalWalletType || (exports.WithdrawalWalletType = WithdrawalWalletType = {}));
105
-
106
-
107
- /***/ }),
108
-
109
- /***/ 1134:
110
- /***/ ((__unused_webpack_module, exports) => {
111
-
112
-
113
- Object.defineProperty(exports, "__esModule", ({ value: true }));
114
- var OrderType;
115
- (function (OrderType) {
116
- OrderType[OrderType["Limit"] = 0] = "Limit";
117
- OrderType[OrderType["IOC"] = 1] = "IOC";
118
- OrderType[OrderType["POST"] = 2] = "POST";
119
- OrderType[OrderType["Market"] = 3] = "Market";
120
- })(OrderType || (OrderType = {}));
121
- exports["default"] = OrderType;
122
-
123
-
124
- /***/ }),
125
-
126
- /***/ 1283:
127
- /***/ ((__unused_webpack_module, exports) => {
128
-
129
-
130
- Object.defineProperty(exports, "__esModule", ({ value: true }));
131
- exports.StateType = void 0;
132
- var StateType;
133
- (function (StateType) {
134
- StateType["VERSION"] = "version";
135
- StateType["LAST_ALGO_BLOCK"] = "last_algo_block";
136
- StateType["PRICES_PROVIDER_API_KEY"] = "prices_provider_api_key";
137
- StateType["DEFAULT_API_DOMAIN"] = "default_api_domain";
138
- StateType["NONCE_ACCOUNTS_SOLANA"] = "nonce_accounts_solana";
139
- StateType["ARCHIVE_DATA_BATCH_SIZE"] = "archive_data_batch_size";
140
- StateType["ARCHIVE_TASK_LOCK"] = "archive_task_lock";
141
- })(StateType || (exports.StateType = StateType = {}));
142
-
143
-
144
- /***/ }),
145
-
146
- /***/ 1492:
147
- /***/ ((__unused_webpack_module, exports) => {
148
-
149
-
150
- Object.defineProperty(exports, "__esModule", ({ value: true }));
151
- var OrderStatus;
152
- (function (OrderStatus) {
153
- OrderStatus[OrderStatus["Open"] = 1] = "Open";
154
- OrderStatus[OrderStatus["Canceled"] = 2] = "Canceled";
155
- OrderStatus[OrderStatus["Matched"] = 3] = "Matched";
156
- OrderStatus[OrderStatus["SelfMatched"] = 4] = "SelfMatched";
157
- OrderStatus[OrderStatus["Expired"] = 5] = "Expired";
158
- })(OrderStatus || (OrderStatus = {}));
159
- exports["default"] = OrderStatus;
160
-
161
-
162
- /***/ }),
163
-
164
- /***/ 1682:
165
- /***/ ((__unused_webpack_module, exports) => {
166
-
167
-
168
- Object.defineProperty(exports, "__esModule", ({ value: true }));
169
- exports.SettingTypeColumn = void 0;
170
- var SettingTypeColumn;
171
- (function (SettingTypeColumn) {
172
- SettingTypeColumn["STRING"] = "string";
173
- SettingTypeColumn["BOOLEAN"] = "boolean";
174
- SettingTypeColumn["INT"] = "int";
175
- SettingTypeColumn["FLOAT"] = "float";
176
- SettingTypeColumn["SINGLE_CHOICE"] = "single-choice";
177
- SettingTypeColumn["MULTI_CHOICE"] = "multi-choice";
178
- })(SettingTypeColumn || (exports.SettingTypeColumn = SettingTypeColumn = {}));
179
-
180
-
181
- /***/ }),
182
-
183
- /***/ 2224:
184
- /***/ ((__unused_webpack_module, exports) => {
185
-
186
-
187
- Object.defineProperty(exports, "__esModule", ({ value: true }));
188
- exports.AffiliateSortByEnum = void 0;
189
- var AffiliateSortByEnum;
190
- (function (AffiliateSortByEnum) {
191
- AffiliateSortByEnum["INVITED_ACCOUNTS_COUNT"] = "invitedAccountsCount";
192
- AffiliateSortByEnum["CREATED_AT"] = "createdAt";
193
- AffiliateSortByEnum["FEE_SHARE"] = "feeShare";
194
- AffiliateSortByEnum["ADDRESS"] = "address";
195
- AffiliateSortByEnum["REFERRAL_TRADING_VOLUME"] = "referralTradingVolume";
196
- })(AffiliateSortByEnum || (exports.AffiliateSortByEnum = AffiliateSortByEnum = {}));
197
-
198
-
199
- /***/ }),
200
-
201
- /***/ 2228:
202
- /***/ ((__unused_webpack_module, exports) => {
203
-
204
-
205
- Object.defineProperty(exports, "__esModule", ({ value: true }));
206
- exports.HTTPSRPC_MAINNET = exports.HTTPSRPC_TESTNET = exports.ChainNames = exports.Chains = void 0;
207
- var Chains;
208
- (function (Chains) {
209
- Chains[Chains["Solana"] = 1] = "Solana";
210
- Chains[Chains["Algorand"] = 8] = "Algorand";
211
- Chains[Chains["Polygon"] = 5] = "Polygon";
212
- Chains[Chains["Bsc"] = 4] = "Bsc";
213
- Chains[Chains["Avalanche"] = 6] = "Avalanche";
214
- Chains[Chains["Arbitrum"] = 23] = "Arbitrum";
215
- Chains[Chains["Optimism"] = 24] = "Optimism";
216
- Chains[Chains["Base"] = 30] = "Base";
217
- Chains[Chains["Ethereum"] = 2] = "Ethereum";
218
- Chains[Chains["Sepolia"] = 10002] = "Sepolia";
219
- Chains[Chains["ArbitrumSepolia"] = 10003] = "ArbitrumSepolia";
220
- Chains[Chains["BaseSepolia"] = 10004] = "BaseSepolia";
221
- Chains[Chains["OptimismSepolia"] = 10005] = "OptimismSepolia";
222
- Chains[Chains["PolygonAmoy"] = 10007] = "PolygonAmoy";
223
- })(Chains || (exports.Chains = Chains = {}));
224
- exports.ChainNames = {
225
- [Chains.Solana]: "Solana",
226
- [Chains.Ethereum]: "Ethereum",
227
- [Chains.Polygon]: "Polygon",
228
- [Chains.Bsc]: "BNB Chain",
229
- [Chains.Avalanche]: "Avalanche",
230
- [Chains.Algorand]: "Algorand",
231
- [Chains.Arbitrum]: "Arbitrum",
232
- [Chains.Optimism]: "Optimism",
233
- [Chains.Base]: "Base",
234
- [Chains.Sepolia]: "Ethereum Sepolia",
235
- [Chains.ArbitrumSepolia]: "Arbitrum Sepolia",
236
- [Chains.BaseSepolia]: "Base Sepolia",
237
- [Chains.OptimismSepolia]: "Optimism Sepolia",
238
- [Chains.PolygonAmoy]: "Polygon Amoy",
239
- };
240
- exports.HTTPSRPC_TESTNET = {
241
- [Chains.Bsc]: [
242
- '',
243
- 'https://bsc-testnet.public.blastapi.io',
244
- 'https://bsc-testnet.blockpi.network/v1/rpc/private',
245
- 'https://bsc-testnet-rpc.publicnode.com',
246
- 'https://api.zan.top/bsc-testnet',
247
- 'https://data-seed-prebsc-2-s1.bnbchain.org:8545',
248
- 'https://data-seed-prebsc-2-s2.bnbchain.org:8545',
249
- 'https://data-seed-prebsc-2-s3.bnbchain.org:8545',
250
- 'https://data-seed-prebsc-1-s1.bnbchain.org:8545',
251
- 'https://data-seed-prebsc-1-s2.bnbchain.org:8545',
252
- 'https://data-seed-prebsc-1-s3.bnbchain.org:8545',
253
- 'https://endpoints.omniatech.io/v1/bsc/testnet/public',
254
- ],
255
- [Chains.Avalanche]: [
256
- '',
257
- 'https://rpc.ankr.com/avalanche_fuji',
258
- 'https://rpc.ankr.com/avalanche_fuji-c',
259
- 'https://api.avax-test.network/ext/bc/C/rpc',
260
- 'https://ava-testnet.public.blastapi.io/ext/bc/C/rpc',
261
- 'https://endpoints.omniatech.io/v1/avax/fuji/public',
262
- 'https://avalanche-fuji.blockpi.network/v1/rpc/private',
263
- 'https://avalanche-fuji-c-chain-rpc.publicnode.com',
264
- 'https://avalanche-fuji.blockpi.network/v1/rpc/private',
265
- ],
266
- [Chains.Sepolia]: [
267
- 'https://ethereum-sepolia-rpc.publicnode.com',
268
- 'https://sepolia.gateway.tenderly.co',
269
- 'https://eth-sepolia.public.blastapi.io',
270
- 'https://ethereum-sepolia.blockpi.network/v1/rpc/private',
271
- 'https://sepolia.drpc.org',
272
- 'https://endpoints.omniatech.io/v1/eth/sepolia/public',
273
- 'https://1rpc.io/sepolia',
274
- 'https://gateway.tenderly.co/public/sepolia',
275
- 'https://sepolia.gateway.tenderly.co',
276
- 'https://api.zan.top/eth-sepolia',
277
- 'https://ethereum-sepolia.rpc.subquery.network/public',
278
- ],
279
- [Chains.ArbitrumSepolia]: [
280
- '',
281
- 'https://arbitrum-sepolia.blockpi.network/v1/rpc/private ',
282
- 'https://arbitrum-sepolia.gateway.tenderly.co',
283
- 'https://endpoints.omniatech.io/v1/arbitrum/sepolia/public',
284
- 'https://api.zan.top/arb-sepolia',
285
- 'https://sepolia-rollup.arbitrum.io/rpc',
286
- ],
287
- [Chains.BaseSepolia]: [
288
- '',
289
- 'https://sepolia.base.org',
290
- 'https://base-sepolia-rpc.publicnode.com',
291
- 'https://base-sepolia.gateway.tenderly.co',
292
- 'https://base-sepolia.blockpi.network/v1/rpc/private',
293
- 'https://node.histori.xyz/base-sepolia/8ry9f6t9dct1se2hlagxnd9n2a',
294
- ],
295
- [Chains.OptimismSepolia]: [
296
- '',
297
- 'https://optimism-sepolia.blockpi.network/v1/rpc/private',
298
- 'https://sepolia.optimism.io',
299
- 'https://api.zan.top/opt-sepolia',
300
- 'https://optimism-sepolia.gateway.tenderly.co',
301
- 'https://optimism-sepolia.drpc.org',
302
- 'https://endpoints.omniatech.io/v1/op/sepolia/public',
303
- ],
304
- [Chains.PolygonAmoy]: [
305
- 'https://rpc-amoy.polygon.technology',
306
- 'https://polygon-amoy-bor-rpc.publicnode.com',
307
- 'https://rpc.ankr.com/polygon_amoy',
308
- 'https://polygon-amoy.drpc.org',
309
- 'https://api.zan.top/polygon-amoy',
310
- 'https://polygon-amoy.gateway.tenderly.co',
311
- ],
312
- };
313
- exports.HTTPSRPC_MAINNET = {
314
- [Chains.Ethereum]: [
315
- '',
316
- 'https://eth.llamarpc.com',
317
- 'https://ethereum.blockpi.network/v1/rpc/public',
318
- 'https://eth-mainnet.nodereal.io/v1/1659dfb40aa24bbb8153a677b98064d7',
319
- 'https://uk.rpc.blxrbdn.com',
320
- 'https://singapore.rpc.blxrbdn.com',
321
- 'https://virginia.rpc.blxrbdn.com',
322
- 'https://eth-mainnet.public.blastapi.io',
323
- 'https://api.securerpc.com/v1',
324
- 'https://mainnet.gateway.tenderly.co',
325
- 'https://eth-pokt.nodies.app',
326
- 'https://eth.blockrazor.xyz',
327
- 'https://eth.merkle.io',
328
- 'https://gateway.tenderly.co/public/mainnet',
329
- 'https://eth.rpc.blxrbdn.com',
330
- ],
331
- [Chains.Bsc]: [
332
- '',
333
- 'https://bsc.blockrazor.xyz',
334
- 'https://bscrpc.com',
335
- 'https://bsc-mainnet.public.blastapi.io',
336
- 'https://binance.llamarpc.com',
337
- 'https://go.getblock.io/cc778cdbdf5c4b028ec9456e0e6c0cf3',
338
- 'https://bsc-pokt.nodies.app',
339
- 'https://56.rpc.thirdweb.com',
340
- 'https://bsc.blockpi.network/v1/rpc/private',
341
- 'https://bsc.rpc.blxrbdn.com',
342
- 'https://bsc-dataseed.bnbchain.org',
343
- 'https://endpoints.omniatech.io/v1/bsc/mainnet/public',
344
- 'https://bsc-dataseed1.ninicoin.io',
345
- 'https://bsc-dataseed2.defibit.io',
346
- 'https://bsc-dataseed2.ninicoin.io',
347
- 'https://0.48.club',
348
- 'https://bsc-dataseed3.defibit.io',
349
- ],
350
- [Chains.Polygon]: [
351
- '',
352
- 'https://polygon.llamarpc.com',
353
- 'https://polygon-rpc.com',
354
- 'https://rpc-mainnet.matic.quiknode.pro',
355
- 'https://endpoints.omniatech.io/v1/matic/mainnet/public',
356
- 'https://polygon-pokt.nodies.app',
357
- 'https://polygon-bor-rpc.publicnode.com',
358
- 'https://polygon.rpc.subquery.network/public',
359
- 'https://polygon-bor-rpc.publicnode.com',
360
- 'https://polygon.blockpi.network/v1/rpc/private',
361
- 'https://polygon.api.onfinality.io/public',
362
- 'https://polygon.lava.build',
363
- 'https://api.zan.top/polygon-mainnet',
364
- 'https://polygon.meowrpc.com',
365
- ],
366
- [Chains.Avalanche]: [
367
- '',
368
- 'https://avalanche-c-chain-rpc.publicnode.com',
369
- 'https://ava-mainnet.public.blastapi.io/ext/bc/C/rpc',
370
- 'https://endpoints.omniatech.io/v1/avax/mainnet/public',
371
- 'https://avalanche-c-chain-rpc.publicnode.com',
372
- 'https://avalanche.blockpi.network/v1/rpc/private',
373
- 'https://avalanche.public-rpc.com',
374
- 'https://avalanche.drpc.org',
375
- 'https://avax.meowrpc.com',
376
- 'https://endpoints.omniatech.io/v1/avax/mainnet/public',
377
- 'https://api.avax.network/ext/bc/C/rpc',
378
- 'https://1rpc.io/avax/c',
379
- 'https://avax-pokt.nodies.app/ext/bc/C/rpc',
380
- 'https://endpoints.omniatech.io/v1/avax/mainnet/public',
381
- 'https://api.zan.top/avax-mainnet/ext/bc/C/rpc',
382
- ],
383
- [Chains.Arbitrum]: [
384
- '',
385
- 'https://arbitrum.llamarpc.com',
386
- 'https://arbitrum.rpc.subquery.network/public',
387
- 'https://endpoints.omniatech.io/v1/arbitrum/one/public',
388
- 'https://arbitrum.meowrpc.com',
389
- 'https://arbitrum.gateway.tenderly.co',
390
- 'https://arbitrum-one.public.blastapi.io',
391
- 'https://arb1.lava.build',
392
- 'https://arbitrum-one.publicnode.com',
393
- 'https://arbitrum.blockpi.network/v1/rpc/public',
394
- 'https://arb-pokt.nodies.app',
395
- 'https://api.zan.top/arb-one',
396
- 'https://arb1.arbitrum.io/rpc',
397
- 'https://arbitrum.drpc.org',
398
- 'https://1rpc.io/arb',
399
- ],
400
- [Chains.Optimism]: [
401
- '',
402
- 'https://optimism.llamarpc.com',
403
- 'https://op-pokt.nodies.app',
404
- 'https://optimism-mainnet.public.blastapi.io',
405
- 'https://optimism.blockpi.network/v1/rpc/public',
406
- 'https://endpoints.omniatech.io/v1/op/mainnet/public',
407
- 'https://optimism-rpc.publicnode.com',
408
- 'https://optimism.drpc.org',
409
- 'https://1rpc.io/op',
410
- 'https://optimism.gateway.tenderly.co',
411
- 'https://optimism.lava.build',
412
- 'https://optimism.rpc.subquery.network/public',
413
- 'https://mainnet.optimism.io',
414
- 'https://optimism-rpc.publicnode.com',
415
- 'https://gateway.tenderly.co/public/optimism',
416
- ],
417
- [Chains.Base]: [
418
- '',
419
- 'https://base.llamarpc.com',
420
- 'https://base-mainnet.public.blastapi.io',
421
- 'https://base-rpc.publicnode.com',
422
- 'https://base.blockpi.network/v1/rpc/public',
423
- 'https://base.drpc.org',
424
- 'https://mainnet.base.org',
425
- 'https://base.api.onfinality.io/public',
426
- 'https://base-pokt.nodies.app',
427
- 'https://1rpc.io/base',
428
- 'https://developer-access-mainnet.base.org',
429
- 'https://endpoints.omniatech.io/v1/base/mainnet/public',
430
- 'https://base.rpc.subquery.network/public',
431
- 'https://base.api.onfinality.io/public',
432
- 'https://base.meowrpc.com',
433
- 'https://base.gateway.tenderly.co',
434
- ],
435
- };
436
-
437
-
438
- /***/ }),
439
-
440
- /***/ 2623:
441
- /***/ ((__unused_webpack_module, exports) => {
442
-
443
-
444
- Object.defineProperty(exports, "__esModule", ({ value: true }));
445
- exports.TransactionType = exports.CCTPStatus = exports.ActionTypeEnum = exports.OperationStatusEnum = void 0;
446
- var OperationStatusEnum;
447
- (function (OperationStatusEnum) {
448
- OperationStatusEnum["Pending"] = "pending";
449
- OperationStatusEnum["Completed"] = "completed";
450
- OperationStatusEnum["Failed"] = "failed";
451
- OperationStatusEnum["Received"] = "received";
452
- })(OperationStatusEnum || (exports.OperationStatusEnum = OperationStatusEnum = {}));
453
- var ActionTypeEnum;
454
- (function (ActionTypeEnum) {
455
- ActionTypeEnum["Deposit"] = "deposit";
456
- ActionTypeEnum["Withdraw"] = "withdraw";
457
- ActionTypeEnum["Rebalance"] = "rebalance";
458
- })(ActionTypeEnum || (exports.ActionTypeEnum = ActionTypeEnum = {}));
459
- var CCTPStatus;
460
- (function (CCTPStatus) {
461
- CCTPStatus["PENDING"] = "pending";
462
- CCTPStatus["COMPLETED"] = "completed";
463
- CCTPStatus["FAILED"] = "failed";
464
- })(CCTPStatus || (exports.CCTPStatus = CCTPStatus = {}));
465
- var TransactionType;
466
- (function (TransactionType) {
467
- TransactionType["USER_TO_TMC"] = "user_to_tmc";
468
- TransactionType["TMC_TO_USER"] = "tmc_to_user";
469
- TransactionType["RELAYER_TO_TMC"] = "relayer_to_tmc";
470
- TransactionType["RELAYER_TO_CODEX"] = "relayer_to_codex";
471
- TransactionType["RELAYER_TO_CIRCLE"] = "relayer_to_circle";
472
- })(TransactionType || (exports.TransactionType = TransactionType = {}));
473
-
474
-
475
- /***/ }),
476
-
477
- /***/ 2739:
478
- /***/ ((__unused_webpack_module, exports) => {
479
-
480
-
481
- Object.defineProperty(exports, "__esModule", ({ value: true }));
482
- exports.Notification = void 0;
483
- var Notification;
484
- (function (Notification) {
485
- Notification[Notification["SELF_TRADE"] = 1] = "SELF_TRADE";
486
- Notification[Notification["FULL_FILLED"] = 2] = "FULL_FILLED";
487
- Notification[Notification["FULL_CANCELLED"] = 3] = "FULL_CANCELLED";
488
- Notification[Notification["PARTIALLY_CANCELLED"] = 4] = "PARTIALLY_CANCELLED";
489
- Notification[Notification["CREATED"] = 5] = "CREATED";
490
- })(Notification || (exports.Notification = Notification = {}));
491
-
492
-
493
- /***/ }),
494
-
495
- /***/ 2797:
496
- /***/ ((__unused_webpack_module, exports) => {
497
-
498
-
499
- Object.defineProperty(exports, "__esModule", ({ value: true }));
500
- var AvailablePairSettings;
501
- (function (AvailablePairSettings) {
502
- AvailablePairSettings["MFT_AUDIO_LINK"] = "mft.audioLink";
503
- AvailablePairSettings["MFT_TITLE"] = "mft.title";
504
- AvailablePairSettings["MODE_PRE_SALE"] = "mode.preSale";
505
- AvailablePairSettings["MAKER_FEE"] = "makerFee";
506
- AvailablePairSettings["TAKER_FEE"] = "takerFee";
507
- AvailablePairSettings["VIEW_BASE_COIN_ICON_LINK"] = "view.baseCoinIconLink";
508
- AvailablePairSettings["VIEW_BASE_COIN_MARKET_LINK"] = "view.baseCoinMarketLink";
509
- AvailablePairSettings["VIEW_PRICE_COIN_ICON_LINK"] = "view.priceCoinIconLink";
510
- AvailablePairSettings["VIEW_PRICE_COIN_MARKET_LINK"] = "view.priceCoinMarketLink";
511
- })(AvailablePairSettings || (AvailablePairSettings = {}));
512
- exports["default"] = AvailablePairSettings;
513
-
514
-
515
- /***/ }),
516
-
517
- /***/ 3004:
518
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
519
-
520
-
521
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
522
- if (k2 === undefined) k2 = k;
523
- var desc = Object.getOwnPropertyDescriptor(m, k);
524
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
525
- desc = { enumerable: true, get: function() { return m[k]; } };
526
- }
527
- Object.defineProperty(o, k2, desc);
528
- }) : (function(o, m, k, k2) {
529
- if (k2 === undefined) k2 = k;
530
- o[k2] = m[k];
531
- }));
532
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
533
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
534
- };
535
- var __importDefault = (this && this.__importDefault) || function (mod) {
536
- return (mod && mod.__esModule) ? mod : { "default": mod };
537
- };
538
- Object.defineProperty(exports, "__esModule", ({ value: true }));
539
- exports.TradingKeyType = exports.OrderType = exports.OrderStatus = exports.OrderSide = exports.AvailablePairSettings = void 0;
540
- const available_pair_settings_enum_1 = __importDefault(__webpack_require__(2797));
541
- exports.AvailablePairSettings = available_pair_settings_enum_1.default;
542
- const order_side_enum_1 = __importDefault(__webpack_require__(835));
543
- exports.OrderSide = order_side_enum_1.default;
544
- const order_status_enum_1 = __importDefault(__webpack_require__(1492));
545
- exports.OrderStatus = order_status_enum_1.default;
546
- const order_type_enum_1 = __importDefault(__webpack_require__(1134));
547
- exports.OrderType = order_type_enum_1.default;
548
- const tradingKeyType_enum_1 = __webpack_require__(3487);
549
- Object.defineProperty(exports, "TradingKeyType", ({ enumerable: true, get: function () { return tradingKeyType_enum_1.TradingKeyType; } }));
550
- __exportStar(__webpack_require__(893), exports);
551
- __exportStar(__webpack_require__(3338), exports);
552
- __exportStar(__webpack_require__(3245), exports);
553
- __exportStar(__webpack_require__(6828), exports);
554
- __exportStar(__webpack_require__(2224), exports);
555
- __exportStar(__webpack_require__(892), exports);
556
- __exportStar(__webpack_require__(2623), exports);
557
- __exportStar(__webpack_require__(3854), exports);
558
- __exportStar(__webpack_require__(4132), exports);
559
- __exportStar(__webpack_require__(3516), exports);
560
- __exportStar(__webpack_require__(4199), exports);
561
- __exportStar(__webpack_require__(1682), exports);
562
- __exportStar(__webpack_require__(1283), exports);
563
- __exportStar(__webpack_require__(5237), exports);
564
- __exportStar(__webpack_require__(1048), exports);
565
-
566
-
567
- /***/ }),
568
-
569
- /***/ 3084:
570
- /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
571
-
572
-
573
- Object.defineProperty(exports, "__esModule", ({ value: true }));
574
- exports.extractPairFee = exports.parsePairSettings = exports.fetchTokensFromPair = void 0;
575
- const _enums_1 = __webpack_require__(9965);
576
- const fetchTokensFromPair = (pair) => {
577
- const { base_id, base_chain_id, base_decimal, base_currency, price_id, price_chain_id, price_decimal, price_currency, } = pair;
578
- const [baseAsset, priceAsset] = [
579
- [base_id, base_chain_id, base_decimal, base_currency],
580
- [price_id, price_chain_id, price_decimal, price_currency],
581
- ].map(([address, chainId, decimal, name]) => ({ address, chainId, decimal, name }));
582
- return { baseAsset, priceAsset };
583
- };
584
- exports.fetchTokensFromPair = fetchTokensFromPair;
585
- const parsePairSettings = (settings, companyId) => {
586
- return settings?.reduce((acc, o) => {
587
- const { settingId, value } = o;
588
- if (o.companyId && o.companyId !== companyId) {
589
- return acc;
590
- }
591
- if (settingId === _enums_1.AvailablePairSettings.MODE_PRE_SALE) {
592
- acc[settingId] = JSON.parse(value);
593
- }
594
- else {
595
- acc[settingId] = value;
596
- }
597
- return acc;
598
- }, {});
599
- };
600
- exports.parsePairSettings = parsePairSettings;
601
- const extractPairFee = (pairSettings, companyId, feeType) => {
602
- const pSettings = (0, exports.parsePairSettings)(pairSettings, companyId);
603
- const feeSetting = feeType === "M" ? _enums_1.AvailablePairSettings.MAKER_FEE : _enums_1.AvailablePairSettings.TAKER_FEE;
604
- const pairFee = Number(pSettings[feeSetting]);
605
- if (pairFee) {
606
- return pairFee;
607
- }
608
- };
609
- exports.extractPairFee = extractPairFee;
610
-
611
-
612
- /***/ }),
613
-
614
- /***/ 3245:
615
- /***/ ((__unused_webpack_module, exports) => {
616
-
617
-
618
- Object.defineProperty(exports, "__esModule", ({ value: true }));
619
- exports.PromptTypeEnum = void 0;
620
- var PromptTypeEnum;
621
- (function (PromptTypeEnum) {
622
- PromptTypeEnum["INSTRUCTIONS"] = "INSTRUCTIONS";
623
- PromptTypeEnum["TEXT_STYLE"] = "TEXT_STYLE";
624
- PromptTypeEnum["TEXT_TONE"] = "TEXT_TONE";
625
- PromptTypeEnum["REACTION_TYPE"] = "REACTION_TYPE";
626
- PromptTypeEnum["COMMENT_LENGTH"] = "COMMENT_LENGTH";
627
- PromptTypeEnum["CONTEXT"] = "CONTEXT";
628
- })(PromptTypeEnum || (exports.PromptTypeEnum = PromptTypeEnum = {}));
629
-
630
-
631
- /***/ }),
632
-
633
- /***/ 3338:
634
- /***/ ((__unused_webpack_module, exports) => {
635
-
636
-
637
- Object.defineProperty(exports, "__esModule", ({ value: true }));
638
- exports.TweetType = exports.SeasonStatusEnum = void 0;
639
- var SeasonStatusEnum;
640
- (function (SeasonStatusEnum) {
641
- SeasonStatusEnum["CREATED"] = "created";
642
- SeasonStatusEnum["STARTED"] = "started";
643
- SeasonStatusEnum["PAUSED"] = "paused";
644
- SeasonStatusEnum["CLOSED"] = "closed";
645
- })(SeasonStatusEnum || (exports.SeasonStatusEnum = SeasonStatusEnum = {}));
646
- var TweetType;
647
- (function (TweetType) {
648
- TweetType["Post"] = "POST";
649
- TweetType["Comment"] = "COMMENT";
650
- })(TweetType || (exports.TweetType = TweetType = {}));
651
-
652
-
653
- /***/ }),
654
-
655
- /***/ 3487:
656
- /***/ ((__unused_webpack_module, exports) => {
657
-
658
-
659
- Object.defineProperty(exports, "__esModule", ({ value: true }));
660
- exports.TradingKeyType = void 0;
661
- var TradingKeyType;
662
- (function (TradingKeyType) {
663
- TradingKeyType["User"] = "User";
664
- TradingKeyType["Api"] = "API";
665
- })(TradingKeyType || (exports.TradingKeyType = TradingKeyType = {}));
666
-
667
-
668
- /***/ }),
669
-
670
- /***/ 3516:
671
- /***/ ((__unused_webpack_module, exports) => {
672
-
673
-
674
- Object.defineProperty(exports, "__esModule", ({ value: true }));
675
- exports.SortDirectionEnum = void 0;
676
- var SortDirectionEnum;
677
- (function (SortDirectionEnum) {
678
- SortDirectionEnum["ASCENDING"] = "ASC";
679
- SortDirectionEnum["DESCENDING"] = "DESC";
680
- })(SortDirectionEnum || (exports.SortDirectionEnum = SortDirectionEnum = {}));
681
-
682
-
683
- /***/ }),
684
-
685
- /***/ 3854:
686
- /***/ ((__unused_webpack_module, exports) => {
687
-
688
-
689
- Object.defineProperty(exports, "__esModule", ({ value: true }));
690
- exports.TradeSubStatus = exports.TradeStatus = void 0;
691
- var TradeStatus;
692
- (function (TradeStatus) {
693
- TradeStatus["Unconfirmed"] = "UNCONFIRMED";
694
- TradeStatus["Confirmed"] = "CONFIRMED";
695
- TradeStatus["Rejected"] = "REJECTED";
696
- })(TradeStatus || (exports.TradeStatus = TradeStatus = {}));
697
- var TradeSubStatus;
698
- (function (TradeSubStatus) {
699
- TradeSubStatus["RESUBMITTED"] = "RESUBMITTED";
700
- TradeSubStatus["PROCESSED"] = "PROCESSED";
701
- TradeSubStatus["REMATCHED"] = "REMATCHED";
702
- })(TradeSubStatus || (exports.TradeSubStatus = TradeSubStatus = {}));
703
-
704
-
705
- /***/ }),
706
-
707
- /***/ 4132:
708
- /***/ ((__unused_webpack_module, exports) => {
709
-
710
-
711
- Object.defineProperty(exports, "__esModule", ({ value: true }));
712
- exports.MarketMakerSortByEnum = exports.MarketMakerRebateTier = void 0;
713
- var MarketMakerRebateTier;
714
- (function (MarketMakerRebateTier) {
715
- MarketMakerRebateTier[MarketMakerRebateTier["FIRST"] = 1] = "FIRST";
716
- MarketMakerRebateTier[MarketMakerRebateTier["SECOND"] = 2] = "SECOND";
717
- MarketMakerRebateTier[MarketMakerRebateTier["THIRD"] = 3] = "THIRD";
718
- MarketMakerRebateTier[MarketMakerRebateTier["FOURTH"] = 4] = "FOURTH";
719
- })(MarketMakerRebateTier || (exports.MarketMakerRebateTier = MarketMakerRebateTier = {}));
720
- var MarketMakerSortByEnum;
721
- (function (MarketMakerSortByEnum) {
722
- MarketMakerSortByEnum["REBATE_TIER"] = "rebateTier";
723
- MarketMakerSortByEnum["CREATED_AT"] = "createdAt";
724
- MarketMakerSortByEnum["NAME"] = "name";
725
- MarketMakerSortByEnum["TAKER_FEE"] = "takerFee";
726
- MarketMakerSortByEnum["ENABLED"] = "enabled";
727
- MarketMakerSortByEnum["ADDRESS"] = "address";
728
- MarketMakerSortByEnum["CHAIN"] = "chainId";
729
- })(MarketMakerSortByEnum || (exports.MarketMakerSortByEnum = MarketMakerSortByEnum = {}));
730
-
731
-
732
- /***/ }),
733
-
734
- /***/ 4199:
735
- /***/ ((__unused_webpack_module, exports) => {
736
-
737
-
738
- Object.defineProperty(exports, "__esModule", ({ value: true }));
739
- exports.ScheduledNotificationStatusEnum = exports.NotificationStatusEnum = exports.NotificationPriorityEnum = exports.CombinedNotificationEnum = exports.AccountNotificationEnum = exports.GlobalNotificationEnum = void 0;
740
- var GlobalNotificationEnum;
741
- (function (GlobalNotificationEnum) {
742
- GlobalNotificationEnum["GLOBAL_PAIR_DELISTING"] = "GLOBAL_PAIR_DELISTING";
743
- GlobalNotificationEnum["GLOBAL_NEW_PAIR_LISTING"] = "GLOBAL_NEW_PAIR_LISTING";
744
- GlobalNotificationEnum["GLOBAL_SYSTEM_MAINTENANCE"] = "GLOBAL_SYSTEM_MAINTENANCE";
745
- GlobalNotificationEnum["GLOBAL_SMART_CONTRACT_UPDATE"] = "GLOBAL_SMART_CONTRACT_UPDATE";
746
- })(GlobalNotificationEnum || (exports.GlobalNotificationEnum = GlobalNotificationEnum = {}));
747
- var AccountNotificationEnum;
748
- (function (AccountNotificationEnum) {
749
- AccountNotificationEnum["ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT"] = "ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT";
750
- AccountNotificationEnum["ACCOUNT_KYC_STATUS_CHANGED"] = "ACCOUNT_KYC_STATUS_CHANGED";
751
- AccountNotificationEnum["ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED"] = "ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED";
752
- })(AccountNotificationEnum || (exports.AccountNotificationEnum = AccountNotificationEnum = {}));
753
- exports.CombinedNotificationEnum = {
754
- ...GlobalNotificationEnum,
755
- ...AccountNotificationEnum,
756
- };
757
- var NotificationPriorityEnum;
758
- (function (NotificationPriorityEnum) {
759
- NotificationPriorityEnum["CRITICAL"] = "CRITICAL";
760
- NotificationPriorityEnum["IMPORTANT"] = "IMPORTANT";
761
- NotificationPriorityEnum["INFO"] = "INFO";
762
- })(NotificationPriorityEnum || (exports.NotificationPriorityEnum = NotificationPriorityEnum = {}));
763
- var NotificationStatusEnum;
764
- (function (NotificationStatusEnum) {
765
- NotificationStatusEnum["UNREAD"] = "UNREAD";
766
- NotificationStatusEnum["READ"] = "READ";
767
- })(NotificationStatusEnum || (exports.NotificationStatusEnum = NotificationStatusEnum = {}));
768
- var ScheduledNotificationStatusEnum;
769
- (function (ScheduledNotificationStatusEnum) {
770
- ScheduledNotificationStatusEnum["PENDING"] = "PENDING";
771
- ScheduledNotificationStatusEnum["PROCESSED"] = "PROCESSED";
772
- ScheduledNotificationStatusEnum["FAILED"] = "FAILED";
773
- })(ScheduledNotificationStatusEnum || (exports.ScheduledNotificationStatusEnum = ScheduledNotificationStatusEnum = {}));
774
-
775
-
776
- /***/ }),
777
-
778
- /***/ 5237:
779
- /***/ ((__unused_webpack_module, exports) => {
780
-
781
-
782
- Object.defineProperty(exports, "__esModule", ({ value: true }));
783
- exports.UpgradeStatus = void 0;
784
- var UpgradeStatus;
785
- (function (UpgradeStatus) {
786
- UpgradeStatus["SUCCESS"] = "success";
787
- UpgradeStatus["FAILED"] = "failed";
788
- UpgradeStatus["PENDING"] = "pending";
789
- })(UpgradeStatus || (exports.UpgradeStatus = UpgradeStatus = {}));
790
-
791
-
792
- /***/ }),
793
-
794
- /***/ 6119:
795
- /***/ ((__unused_webpack_module, exports) => {
796
-
797
-
798
- Object.defineProperty(exports, "__esModule", ({ value: true }));
799
- exports.TwitterAccessScopeEnum = void 0;
800
- var TwitterAccessScopeEnum;
801
- (function (TwitterAccessScopeEnum) {
802
- TwitterAccessScopeEnum["USERS_READ"] = "users.read";
803
- TwitterAccessScopeEnum["FOLLOWS_READ"] = "follows.read";
804
- TwitterAccessScopeEnum["FOLLOWS_WRITE"] = "follows.write";
805
- TwitterAccessScopeEnum["TWEET_READ"] = "tweet.read";
806
- TwitterAccessScopeEnum["TWEET_WRITE"] = "tweet.write";
807
- TwitterAccessScopeEnum["OFFLINE_ACCESS"] = "offline.access";
808
- TwitterAccessScopeEnum["LIKE_READ"] = "like.read";
809
- TwitterAccessScopeEnum["LIKE_WRITE"] = "like.write";
810
- })(TwitterAccessScopeEnum || (exports.TwitterAccessScopeEnum = TwitterAccessScopeEnum = {}));
811
-
812
-
813
- /***/ }),
814
-
815
- /***/ 6828:
816
- /***/ ((__unused_webpack_module, exports) => {
817
-
818
-
819
- Object.defineProperty(exports, "__esModule", ({ value: true }));
820
- exports.KYCAuthenticationStatus = exports.LastLookAction = exports.FeeTier = void 0;
821
- var FeeTier;
822
- (function (FeeTier) {
823
- FeeTier[FeeTier["FEE_TIER_1"] = 1] = "FEE_TIER_1";
824
- FeeTier[FeeTier["FEE_TIER_2"] = 2] = "FEE_TIER_2";
825
- FeeTier[FeeTier["FEE_TIER_3"] = 3] = "FEE_TIER_3";
826
- FeeTier[FeeTier["FEE_TIER_4"] = 4] = "FEE_TIER_4";
827
- FeeTier[FeeTier["FEE_TIER_5"] = 5] = "FEE_TIER_5";
828
- FeeTier[FeeTier["FEE_TIER_6"] = 6] = "FEE_TIER_6";
829
- })(FeeTier || (exports.FeeTier = FeeTier = {}));
830
- var LastLookAction;
831
- (function (LastLookAction) {
832
- LastLookAction[LastLookAction["Approve"] = 1] = "Approve";
833
- LastLookAction[LastLookAction["Reject"] = 0] = "Reject";
834
- })(LastLookAction || (exports.LastLookAction = LastLookAction = {}));
835
- var KYCAuthenticationStatus;
836
- (function (KYCAuthenticationStatus) {
837
- KYCAuthenticationStatus["INITIATED"] = "INITIATED";
838
- KYCAuthenticationStatus["CREATED"] = "CREATED";
839
- KYCAuthenticationStatus["PROCESSING"] = "PROCESSING";
840
- KYCAuthenticationStatus["APPROVED"] = "APPROVED";
841
- KYCAuthenticationStatus["REJECTED"] = "REJECTED";
842
- })(KYCAuthenticationStatus || (exports.KYCAuthenticationStatus = KYCAuthenticationStatus = {}));
843
-
844
-
845
- /***/ }),
846
-
847
- /***/ 6978:
848
- /***/ ((__unused_webpack_module, exports) => {
849
-
850
-
851
- Object.defineProperty(exports, "__esModule", ({ value: true }));
852
- exports.MaintenanceMode = void 0;
853
- var MaintenanceMode;
854
- (function (MaintenanceMode) {
855
- MaintenanceMode[MaintenanceMode["Off"] = 0] = "Off";
856
- MaintenanceMode[MaintenanceMode["Full"] = 1] = "Full";
857
- MaintenanceMode[MaintenanceMode["Partial"] = 2] = "Partial";
858
- MaintenanceMode[MaintenanceMode["Scheduled"] = 3] = "Scheduled";
859
- })(MaintenanceMode || (exports.MaintenanceMode = MaintenanceMode = {}));
860
-
861
-
862
- /***/ }),
863
-
864
- /***/ 9275:
865
- /***/ ((__unused_webpack_module, exports) => {
866
-
867
-
868
- Object.defineProperty(exports, "__esModule", ({ value: true }));
869
- exports.RabbitConnectionStatus = void 0;
870
- var RabbitConnectionStatus;
871
- (function (RabbitConnectionStatus) {
872
- RabbitConnectionStatus["CONNECTED"] = "CONNECTED";
873
- RabbitConnectionStatus["CONNECTING"] = "CONNECTING";
874
- RabbitConnectionStatus["DISCONNECTED"] = "DISCONNECTED";
875
- RabbitConnectionStatus["DISCONNECTING"] = "DISCONNECTING";
876
- RabbitConnectionStatus["PENDING"] = "PENDING";
877
- })(RabbitConnectionStatus || (exports.RabbitConnectionStatus = RabbitConnectionStatus = {}));
878
-
879
-
880
- /***/ }),
881
-
882
- /***/ 9965:
883
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
884
-
885
-
886
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
887
- if (k2 === undefined) k2 = k;
888
- var desc = Object.getOwnPropertyDescriptor(m, k);
889
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
890
- desc = { enumerable: true, get: function() { return m[k]; } };
891
- }
892
- Object.defineProperty(o, k2, desc);
893
- }) : (function(o, m, k, k2) {
894
- if (k2 === undefined) k2 = k;
895
- o[k2] = m[k];
896
- }));
897
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
898
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
899
- };
900
- Object.defineProperty(exports, "__esModule", ({ value: true }));
901
- __exportStar(__webpack_require__(2228), exports);
902
- __exportStar(__webpack_require__(6978), exports);
903
- __exportStar(__webpack_require__(2739), exports);
904
- __exportStar(__webpack_require__(6119), exports);
905
- __exportStar(__webpack_require__(3004), exports);
906
- __exportStar(__webpack_require__(9275), exports);
907
-
908
-
909
- /***/ })
910
-
911
- /******/ });
912
- /************************************************************************/
913
- /******/ // The module cache
914
- /******/ var __webpack_module_cache__ = {};
915
- /******/
916
- /******/ // The require function
917
- /******/ function __webpack_require__(moduleId) {
918
- /******/ // Check if module is in cache
919
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
920
- /******/ if (cachedModule !== undefined) {
921
- /******/ return cachedModule.exports;
922
- /******/ }
923
- /******/ // Create a new module (and put it into the cache)
924
- /******/ var module = __webpack_module_cache__[moduleId] = {
925
- /******/ // no module.id needed
926
- /******/ // no module.loaded needed
927
- /******/ exports: {}
928
- /******/ };
929
- /******/
930
- /******/ // Execute the module function
931
- /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
932
- /******/
933
- /******/ // Return the exports of the module
934
- /******/ return module.exports;
935
- /******/ }
936
- /******/
937
- /************************************************************************/
938
- /******/
939
- /******/ // startup
940
- /******/ // Load entry module and return exports
941
- /******/ // This entry module is referenced by other modules so it can't be inlined
942
- /******/ var __webpack_exports__ = __webpack_require__(3084);
943
- /******/ module.exports = __webpack_exports__;
944
- /******/
945
- /******/ })()
946
- ;
1
+ var E=Object.defineProperty;var C=Object.getOwnPropertyDescriptor;var O=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var D=(e,t)=>{for(var s in t)E(e,s,{get:t[s],enumerable:!0})},L=(e,t,s,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of O(t))!d.call(e,p)&&p!==s&&E(e,p,{get:()=>t[p],enumerable:!(o=C(t,p))||o.enumerable});return e};var x=e=>L(E({},"__esModule",{value:!0}),e);var P={};D(P,{extractPairFee:()=>g,fetchTokensFromPair:()=>v,parsePairSettings:()=>_});module.exports=x(P);var a=(r=>(r.MFT_AUDIO_LINK="mft.audioLink",r.MFT_TITLE="mft.title",r.MODE_PRE_SALE="mode.preSale",r.MAKER_FEE="makerFee",r.TAKER_FEE="takerFee",r.VIEW_BASE_COIN_ICON_LINK="view.baseCoinIconLink",r.VIEW_BASE_COIN_MARKET_LINK="view.baseCoinMarketLink",r.VIEW_PRICE_COIN_ICON_LINK="view.priceCoinIconLink",r.VIEW_PRICE_COIN_MARKET_LINK="view.priceCoinMarketLink",r))(a||{}),c=a;var l=(p=>(p.GLOBAL_PAIR_DELISTING="GLOBAL_PAIR_DELISTING",p.GLOBAL_NEW_PAIR_LISTING="GLOBAL_NEW_PAIR_LISTING",p.GLOBAL_SYSTEM_MAINTENANCE="GLOBAL_SYSTEM_MAINTENANCE",p.GLOBAL_SMART_CONTRACT_UPDATE="GLOBAL_SMART_CONTRACT_UPDATE",p))(l||{}),h=(o=>(o.ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT="ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT",o.ACCOUNT_KYC_STATUS_CHANGED="ACCOUNT_KYC_STATUS_CHANGED",o.ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED="ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED",o))(h||{}),q={...l,...h};var v=e=>{let{base_id:t,base_chain_id:s,base_decimal:o,base_currency:p,price_id:i,price_chain_id:I,price_decimal:m,price_currency:b}=e,[r,n]=[[t,s,o,p],[i,I,m,b]].map(([A,N,R,T])=>({address:A,chainId:N,decimal:R,name:T}));return{baseAsset:r,priceAsset:n}},_=(e,t)=>e?.reduce((s,o)=>{let{settingId:p,value:i}=o;return o.companyId&&o.companyId!==t||(p===c.MODE_PRE_SALE?s[p]=JSON.parse(i):s[p]=i),s},{}),g=(e,t,s)=>{let o=_(e,t),p=s==="M"?c.MAKER_FEE:c.TAKER_FEE,i=Number(o[p]);if(i)return i};0&&(module.exports={extractPairFee,fetchTokensFromPair,parsePairSettings});