@ultrade/shared 1.0.6 → 1.0.7

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 +18 -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,954 +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
- /***/ 3245:
570
- /***/ ((__unused_webpack_module, exports) => {
571
-
572
-
573
- Object.defineProperty(exports, "__esModule", ({ value: true }));
574
- exports.PromptTypeEnum = void 0;
575
- var PromptTypeEnum;
576
- (function (PromptTypeEnum) {
577
- PromptTypeEnum["INSTRUCTIONS"] = "INSTRUCTIONS";
578
- PromptTypeEnum["TEXT_STYLE"] = "TEXT_STYLE";
579
- PromptTypeEnum["TEXT_TONE"] = "TEXT_TONE";
580
- PromptTypeEnum["REACTION_TYPE"] = "REACTION_TYPE";
581
- PromptTypeEnum["COMMENT_LENGTH"] = "COMMENT_LENGTH";
582
- PromptTypeEnum["CONTEXT"] = "CONTEXT";
583
- })(PromptTypeEnum || (exports.PromptTypeEnum = PromptTypeEnum = {}));
584
-
585
-
586
- /***/ }),
587
-
588
- /***/ 3338:
589
- /***/ ((__unused_webpack_module, exports) => {
590
-
591
-
592
- Object.defineProperty(exports, "__esModule", ({ value: true }));
593
- exports.TweetType = exports.SeasonStatusEnum = void 0;
594
- var SeasonStatusEnum;
595
- (function (SeasonStatusEnum) {
596
- SeasonStatusEnum["CREATED"] = "created";
597
- SeasonStatusEnum["STARTED"] = "started";
598
- SeasonStatusEnum["PAUSED"] = "paused";
599
- SeasonStatusEnum["CLOSED"] = "closed";
600
- })(SeasonStatusEnum || (exports.SeasonStatusEnum = SeasonStatusEnum = {}));
601
- var TweetType;
602
- (function (TweetType) {
603
- TweetType["Post"] = "POST";
604
- TweetType["Comment"] = "COMMENT";
605
- })(TweetType || (exports.TweetType = TweetType = {}));
606
-
607
-
608
- /***/ }),
609
-
610
- /***/ 3487:
611
- /***/ ((__unused_webpack_module, exports) => {
612
-
613
-
614
- Object.defineProperty(exports, "__esModule", ({ value: true }));
615
- exports.TradingKeyType = void 0;
616
- var TradingKeyType;
617
- (function (TradingKeyType) {
618
- TradingKeyType["User"] = "User";
619
- TradingKeyType["Api"] = "API";
620
- })(TradingKeyType || (exports.TradingKeyType = TradingKeyType = {}));
621
-
622
-
623
- /***/ }),
624
-
625
- /***/ 3516:
626
- /***/ ((__unused_webpack_module, exports) => {
627
-
628
-
629
- Object.defineProperty(exports, "__esModule", ({ value: true }));
630
- exports.SortDirectionEnum = void 0;
631
- var SortDirectionEnum;
632
- (function (SortDirectionEnum) {
633
- SortDirectionEnum["ASCENDING"] = "ASC";
634
- SortDirectionEnum["DESCENDING"] = "DESC";
635
- })(SortDirectionEnum || (exports.SortDirectionEnum = SortDirectionEnum = {}));
636
-
637
-
638
- /***/ }),
639
-
640
- /***/ 3854:
641
- /***/ ((__unused_webpack_module, exports) => {
642
-
643
-
644
- Object.defineProperty(exports, "__esModule", ({ value: true }));
645
- exports.TradeSubStatus = exports.TradeStatus = void 0;
646
- var TradeStatus;
647
- (function (TradeStatus) {
648
- TradeStatus["Unconfirmed"] = "UNCONFIRMED";
649
- TradeStatus["Confirmed"] = "CONFIRMED";
650
- TradeStatus["Rejected"] = "REJECTED";
651
- })(TradeStatus || (exports.TradeStatus = TradeStatus = {}));
652
- var TradeSubStatus;
653
- (function (TradeSubStatus) {
654
- TradeSubStatus["RESUBMITTED"] = "RESUBMITTED";
655
- TradeSubStatus["PROCESSED"] = "PROCESSED";
656
- TradeSubStatus["REMATCHED"] = "REMATCHED";
657
- })(TradeSubStatus || (exports.TradeSubStatus = TradeSubStatus = {}));
658
-
659
-
660
- /***/ }),
661
-
662
- /***/ 4132:
663
- /***/ ((__unused_webpack_module, exports) => {
664
-
665
-
666
- Object.defineProperty(exports, "__esModule", ({ value: true }));
667
- exports.MarketMakerSortByEnum = exports.MarketMakerRebateTier = void 0;
668
- var MarketMakerRebateTier;
669
- (function (MarketMakerRebateTier) {
670
- MarketMakerRebateTier[MarketMakerRebateTier["FIRST"] = 1] = "FIRST";
671
- MarketMakerRebateTier[MarketMakerRebateTier["SECOND"] = 2] = "SECOND";
672
- MarketMakerRebateTier[MarketMakerRebateTier["THIRD"] = 3] = "THIRD";
673
- MarketMakerRebateTier[MarketMakerRebateTier["FOURTH"] = 4] = "FOURTH";
674
- })(MarketMakerRebateTier || (exports.MarketMakerRebateTier = MarketMakerRebateTier = {}));
675
- var MarketMakerSortByEnum;
676
- (function (MarketMakerSortByEnum) {
677
- MarketMakerSortByEnum["REBATE_TIER"] = "rebateTier";
678
- MarketMakerSortByEnum["CREATED_AT"] = "createdAt";
679
- MarketMakerSortByEnum["NAME"] = "name";
680
- MarketMakerSortByEnum["TAKER_FEE"] = "takerFee";
681
- MarketMakerSortByEnum["ENABLED"] = "enabled";
682
- MarketMakerSortByEnum["ADDRESS"] = "address";
683
- MarketMakerSortByEnum["CHAIN"] = "chainId";
684
- })(MarketMakerSortByEnum || (exports.MarketMakerSortByEnum = MarketMakerSortByEnum = {}));
685
-
686
-
687
- /***/ }),
688
-
689
- /***/ 4199:
690
- /***/ ((__unused_webpack_module, exports) => {
691
-
692
-
693
- Object.defineProperty(exports, "__esModule", ({ value: true }));
694
- exports.ScheduledNotificationStatusEnum = exports.NotificationStatusEnum = exports.NotificationPriorityEnum = exports.CombinedNotificationEnum = exports.AccountNotificationEnum = exports.GlobalNotificationEnum = void 0;
695
- var GlobalNotificationEnum;
696
- (function (GlobalNotificationEnum) {
697
- GlobalNotificationEnum["GLOBAL_PAIR_DELISTING"] = "GLOBAL_PAIR_DELISTING";
698
- GlobalNotificationEnum["GLOBAL_NEW_PAIR_LISTING"] = "GLOBAL_NEW_PAIR_LISTING";
699
- GlobalNotificationEnum["GLOBAL_SYSTEM_MAINTENANCE"] = "GLOBAL_SYSTEM_MAINTENANCE";
700
- GlobalNotificationEnum["GLOBAL_SMART_CONTRACT_UPDATE"] = "GLOBAL_SMART_CONTRACT_UPDATE";
701
- })(GlobalNotificationEnum || (exports.GlobalNotificationEnum = GlobalNotificationEnum = {}));
702
- var AccountNotificationEnum;
703
- (function (AccountNotificationEnum) {
704
- AccountNotificationEnum["ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT"] = "ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT";
705
- AccountNotificationEnum["ACCOUNT_KYC_STATUS_CHANGED"] = "ACCOUNT_KYC_STATUS_CHANGED";
706
- AccountNotificationEnum["ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED"] = "ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED";
707
- })(AccountNotificationEnum || (exports.AccountNotificationEnum = AccountNotificationEnum = {}));
708
- exports.CombinedNotificationEnum = {
709
- ...GlobalNotificationEnum,
710
- ...AccountNotificationEnum,
711
- };
712
- var NotificationPriorityEnum;
713
- (function (NotificationPriorityEnum) {
714
- NotificationPriorityEnum["CRITICAL"] = "CRITICAL";
715
- NotificationPriorityEnum["IMPORTANT"] = "IMPORTANT";
716
- NotificationPriorityEnum["INFO"] = "INFO";
717
- })(NotificationPriorityEnum || (exports.NotificationPriorityEnum = NotificationPriorityEnum = {}));
718
- var NotificationStatusEnum;
719
- (function (NotificationStatusEnum) {
720
- NotificationStatusEnum["UNREAD"] = "UNREAD";
721
- NotificationStatusEnum["READ"] = "READ";
722
- })(NotificationStatusEnum || (exports.NotificationStatusEnum = NotificationStatusEnum = {}));
723
- var ScheduledNotificationStatusEnum;
724
- (function (ScheduledNotificationStatusEnum) {
725
- ScheduledNotificationStatusEnum["PENDING"] = "PENDING";
726
- ScheduledNotificationStatusEnum["PROCESSED"] = "PROCESSED";
727
- ScheduledNotificationStatusEnum["FAILED"] = "FAILED";
728
- })(ScheduledNotificationStatusEnum || (exports.ScheduledNotificationStatusEnum = ScheduledNotificationStatusEnum = {}));
729
-
730
-
731
- /***/ }),
732
-
733
- /***/ 5237:
734
- /***/ ((__unused_webpack_module, exports) => {
735
-
736
-
737
- Object.defineProperty(exports, "__esModule", ({ value: true }));
738
- exports.UpgradeStatus = void 0;
739
- var UpgradeStatus;
740
- (function (UpgradeStatus) {
741
- UpgradeStatus["SUCCESS"] = "success";
742
- UpgradeStatus["FAILED"] = "failed";
743
- UpgradeStatus["PENDING"] = "pending";
744
- })(UpgradeStatus || (exports.UpgradeStatus = UpgradeStatus = {}));
745
-
746
-
747
- /***/ }),
748
-
749
- /***/ 6119:
750
- /***/ ((__unused_webpack_module, exports) => {
751
-
752
-
753
- Object.defineProperty(exports, "__esModule", ({ value: true }));
754
- exports.TwitterAccessScopeEnum = void 0;
755
- var TwitterAccessScopeEnum;
756
- (function (TwitterAccessScopeEnum) {
757
- TwitterAccessScopeEnum["USERS_READ"] = "users.read";
758
- TwitterAccessScopeEnum["FOLLOWS_READ"] = "follows.read";
759
- TwitterAccessScopeEnum["FOLLOWS_WRITE"] = "follows.write";
760
- TwitterAccessScopeEnum["TWEET_READ"] = "tweet.read";
761
- TwitterAccessScopeEnum["TWEET_WRITE"] = "tweet.write";
762
- TwitterAccessScopeEnum["OFFLINE_ACCESS"] = "offline.access";
763
- TwitterAccessScopeEnum["LIKE_READ"] = "like.read";
764
- TwitterAccessScopeEnum["LIKE_WRITE"] = "like.write";
765
- })(TwitterAccessScopeEnum || (exports.TwitterAccessScopeEnum = TwitterAccessScopeEnum = {}));
766
-
767
-
768
- /***/ }),
769
-
770
- /***/ 6828:
771
- /***/ ((__unused_webpack_module, exports) => {
772
-
773
-
774
- Object.defineProperty(exports, "__esModule", ({ value: true }));
775
- exports.KYCAuthenticationStatus = exports.LastLookAction = exports.FeeTier = void 0;
776
- var FeeTier;
777
- (function (FeeTier) {
778
- FeeTier[FeeTier["FEE_TIER_1"] = 1] = "FEE_TIER_1";
779
- FeeTier[FeeTier["FEE_TIER_2"] = 2] = "FEE_TIER_2";
780
- FeeTier[FeeTier["FEE_TIER_3"] = 3] = "FEE_TIER_3";
781
- FeeTier[FeeTier["FEE_TIER_4"] = 4] = "FEE_TIER_4";
782
- FeeTier[FeeTier["FEE_TIER_5"] = 5] = "FEE_TIER_5";
783
- FeeTier[FeeTier["FEE_TIER_6"] = 6] = "FEE_TIER_6";
784
- })(FeeTier || (exports.FeeTier = FeeTier = {}));
785
- var LastLookAction;
786
- (function (LastLookAction) {
787
- LastLookAction[LastLookAction["Approve"] = 1] = "Approve";
788
- LastLookAction[LastLookAction["Reject"] = 0] = "Reject";
789
- })(LastLookAction || (exports.LastLookAction = LastLookAction = {}));
790
- var KYCAuthenticationStatus;
791
- (function (KYCAuthenticationStatus) {
792
- KYCAuthenticationStatus["INITIATED"] = "INITIATED";
793
- KYCAuthenticationStatus["CREATED"] = "CREATED";
794
- KYCAuthenticationStatus["PROCESSING"] = "PROCESSING";
795
- KYCAuthenticationStatus["APPROVED"] = "APPROVED";
796
- KYCAuthenticationStatus["REJECTED"] = "REJECTED";
797
- })(KYCAuthenticationStatus || (exports.KYCAuthenticationStatus = KYCAuthenticationStatus = {}));
798
-
799
-
800
- /***/ }),
801
-
802
- /***/ 6978:
803
- /***/ ((__unused_webpack_module, exports) => {
804
-
805
-
806
- Object.defineProperty(exports, "__esModule", ({ value: true }));
807
- exports.MaintenanceMode = void 0;
808
- var MaintenanceMode;
809
- (function (MaintenanceMode) {
810
- MaintenanceMode[MaintenanceMode["Off"] = 0] = "Off";
811
- MaintenanceMode[MaintenanceMode["Full"] = 1] = "Full";
812
- MaintenanceMode[MaintenanceMode["Partial"] = 2] = "Partial";
813
- MaintenanceMode[MaintenanceMode["Scheduled"] = 3] = "Scheduled";
814
- })(MaintenanceMode || (exports.MaintenanceMode = MaintenanceMode = {}));
815
-
816
-
817
- /***/ }),
818
-
819
- /***/ 9275:
820
- /***/ ((__unused_webpack_module, exports) => {
821
-
822
-
823
- Object.defineProperty(exports, "__esModule", ({ value: true }));
824
- exports.RabbitConnectionStatus = void 0;
825
- var RabbitConnectionStatus;
826
- (function (RabbitConnectionStatus) {
827
- RabbitConnectionStatus["CONNECTED"] = "CONNECTED";
828
- RabbitConnectionStatus["CONNECTING"] = "CONNECTING";
829
- RabbitConnectionStatus["DISCONNECTED"] = "DISCONNECTED";
830
- RabbitConnectionStatus["DISCONNECTING"] = "DISCONNECTING";
831
- RabbitConnectionStatus["PENDING"] = "PENDING";
832
- })(RabbitConnectionStatus || (exports.RabbitConnectionStatus = RabbitConnectionStatus = {}));
833
-
834
-
835
- /***/ }),
836
-
837
- /***/ 9965:
838
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
839
-
840
-
841
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
842
- if (k2 === undefined) k2 = k;
843
- var desc = Object.getOwnPropertyDescriptor(m, k);
844
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
845
- desc = { enumerable: true, get: function() { return m[k]; } };
846
- }
847
- Object.defineProperty(o, k2, desc);
848
- }) : (function(o, m, k, k2) {
849
- if (k2 === undefined) k2 = k;
850
- o[k2] = m[k];
851
- }));
852
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
853
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
854
- };
855
- Object.defineProperty(exports, "__esModule", ({ value: true }));
856
- __exportStar(__webpack_require__(2228), exports);
857
- __exportStar(__webpack_require__(6978), exports);
858
- __exportStar(__webpack_require__(2739), exports);
859
- __exportStar(__webpack_require__(6119), exports);
860
- __exportStar(__webpack_require__(3004), exports);
861
- __exportStar(__webpack_require__(9275), exports);
862
-
863
-
864
- /***/ })
865
-
866
- /******/ });
867
- /************************************************************************/
868
- /******/ // The module cache
869
- /******/ var __webpack_module_cache__ = {};
870
- /******/
871
- /******/ // The require function
872
- /******/ function __webpack_require__(moduleId) {
873
- /******/ // Check if module is in cache
874
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
875
- /******/ if (cachedModule !== undefined) {
876
- /******/ return cachedModule.exports;
877
- /******/ }
878
- /******/ // Create a new module (and put it into the cache)
879
- /******/ var module = __webpack_module_cache__[moduleId] = {
880
- /******/ // no module.id needed
881
- /******/ // no module.loaded needed
882
- /******/ exports: {}
883
- /******/ };
884
- /******/
885
- /******/ // Execute the module function
886
- /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
887
- /******/
888
- /******/ // Return the exports of the module
889
- /******/ return module.exports;
890
- /******/ }
891
- /******/
892
- /************************************************************************/
893
- var __webpack_exports__ = {};
894
- // This entry needs to be wrapped in an IIFE because it uses a non-standard name for the exports (exports).
895
- (() => {
896
- var exports = __webpack_exports__;
897
-
898
- Object.defineProperty(exports, "__esModule", ({ value: true }));
899
- exports.mapOrderSideFromShort = mapOrderSideFromShort;
900
- exports.mapOrderSideToShort = mapOrderSideToShort;
901
- exports.mapOrderTypeShort = mapOrderTypeShort;
902
- exports.mapOrderSideFromShortToLong = mapOrderSideFromShortToLong;
903
- exports.mapOrderTypeShortToLong = mapOrderTypeShortToLong;
904
- const _enums_1 = __webpack_require__(9965);
905
- function mapOrderSideFromShort(value) {
906
- switch (value) {
907
- case "B": return _enums_1.OrderSide.Buy;
908
- case "S": return _enums_1.OrderSide.Sell;
909
- default:
910
- throw new Error("Unknown order side short type: " + value);
911
- }
912
- }
913
- function mapOrderSideToShort(value) {
914
- switch (value) {
915
- case _enums_1.OrderSide.Buy: return "B";
916
- case _enums_1.OrderSide.Sell: return "S";
917
- default:
918
- throw new Error("Unknown order side type: " + value);
919
- }
920
- }
921
- function mapOrderTypeShort(value) {
922
- switch (value) {
923
- case "I": return _enums_1.OrderType.IOC;
924
- case "P": return _enums_1.OrderType.POST;
925
- case "M": return _enums_1.OrderType.Market;
926
- case "L":
927
- default:
928
- return _enums_1.OrderType.Limit;
929
- }
930
- }
931
- function mapOrderSideFromShortToLong(value) {
932
- switch (value) {
933
- case "B": return "BUY";
934
- case "S": return "SELL";
935
- default:
936
- throw new Error("Unknown order side short type: " + value);
937
- }
938
- }
939
- function mapOrderTypeShortToLong(value) {
940
- switch (value) {
941
- case "I": return "IOC";
942
- case "P": return "POST";
943
- case "M": return "Market";
944
- case "L":
945
- default:
946
- return "Limit";
947
- }
948
- }
949
-
950
- })();
951
-
952
- module.exports = __webpack_exports__;
953
- /******/ })()
954
- ;
1
+ var i=Object.defineProperty;var I=Object.getOwnPropertyDescriptor;var _=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var b=(p,o)=>{for(var e in o)i(p,e,{get:o[e],enumerable:!0})},n=(p,o,e,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of _(o))!m.call(p,t)&&t!==e&&i(p,t,{get:()=>o[t],enumerable:!(r=I(o,t))||r.enumerable});return p};var A=p=>n(i({},"__esModule",{value:!0}),p);var C={};b(C,{mapOrderSideFromShort:()=>N,mapOrderSideFromShortToLong:()=>T,mapOrderSideToShort:()=>O,mapOrderTypeShort:()=>R,mapOrderTypeShortToLong:()=>d});module.exports=A(C);var E=(e=>(e[e.Buy=0]="Buy",e[e.Sell=1]="Sell",e))(E||{}),s=E;var h=(t=>(t[t.Limit=0]="Limit",t[t.IOC=1]="IOC",t[t.POST=2]="POST",t[t.Market=3]="Market",t))(h||{}),c=h;var a=(t=>(t.GLOBAL_PAIR_DELISTING="GLOBAL_PAIR_DELISTING",t.GLOBAL_NEW_PAIR_LISTING="GLOBAL_NEW_PAIR_LISTING",t.GLOBAL_SYSTEM_MAINTENANCE="GLOBAL_SYSTEM_MAINTENANCE",t.GLOBAL_SMART_CONTRACT_UPDATE="GLOBAL_SMART_CONTRACT_UPDATE",t))(a||{}),l=(r=>(r.ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT="ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT",r.ACCOUNT_KYC_STATUS_CHANGED="ACCOUNT_KYC_STATUS_CHANGED",r.ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED="ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED",r))(l||{}),H={...a,...l};function N(p){switch(p){case"B":return s.Buy;case"S":return s.Sell;default:throw new Error("Unknown order side short type: "+p)}}function O(p){switch(p){case s.Buy:return"B";case s.Sell:return"S";default:throw new Error("Unknown order side type: "+p)}}function R(p){switch(p){case"I":return c.IOC;case"P":return c.POST;case"M":return c.Market;case"L":default:return c.Limit}}function T(p){switch(p){case"B":return"BUY";case"S":return"SELL";default:throw new Error("Unknown order side short type: "+p)}}function d(p){switch(p){case"I":return"IOC";case"P":return"POST";case"M":return"Market";case"L":default:return"Limit"}}0&&(module.exports={mapOrderSideFromShort,mapOrderSideFromShortToLong,mapOrderSideToShort,mapOrderTypeShort,mapOrderTypeShortToLong});