@clonegod/ttd-core 3.0.2 → 3.0.4

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.
@@ -0,0 +1 @@
1
+ export * from './service_ports';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./service_ports"), exports);
@@ -0,0 +1,14 @@
1
+ export declare enum SERVICE_PORT {
2
+ CONFIG_CENTER_HTTP = 4000,
3
+ ORDERBOOK_HTTP = 7999,
4
+ ORDERBOOK_WS = 8000,
5
+ TRADE_PROXY_HTTP = 8001,
6
+ TRADE_PROXY_WS = 8002,
7
+ TRADE_MGT_HTTP = 8003,
8
+ TRADE_ANALYZE_HTTP = 8004,
9
+ SOL_JITO_TIP_TX_HTTP = 8005,
10
+ WALLET_ASSETS_HTTP = 8006,
11
+ STREAM_QUOTE_WS = 8011,
12
+ SEND_TX_WS = 8012,
13
+ STREAM_TRADE_WS = 8013
14
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SERVICE_PORT = void 0;
4
+ var SERVICE_PORT;
5
+ (function (SERVICE_PORT) {
6
+ SERVICE_PORT[SERVICE_PORT["CONFIG_CENTER_HTTP"] = 4000] = "CONFIG_CENTER_HTTP";
7
+ SERVICE_PORT[SERVICE_PORT["ORDERBOOK_HTTP"] = 7999] = "ORDERBOOK_HTTP";
8
+ SERVICE_PORT[SERVICE_PORT["ORDERBOOK_WS"] = 8000] = "ORDERBOOK_WS";
9
+ SERVICE_PORT[SERVICE_PORT["TRADE_PROXY_HTTP"] = 8001] = "TRADE_PROXY_HTTP";
10
+ SERVICE_PORT[SERVICE_PORT["TRADE_PROXY_WS"] = 8002] = "TRADE_PROXY_WS";
11
+ SERVICE_PORT[SERVICE_PORT["TRADE_MGT_HTTP"] = 8003] = "TRADE_MGT_HTTP";
12
+ SERVICE_PORT[SERVICE_PORT["TRADE_ANALYZE_HTTP"] = 8004] = "TRADE_ANALYZE_HTTP";
13
+ SERVICE_PORT[SERVICE_PORT["SOL_JITO_TIP_TX_HTTP"] = 8005] = "SOL_JITO_TIP_TX_HTTP";
14
+ SERVICE_PORT[SERVICE_PORT["WALLET_ASSETS_HTTP"] = 8006] = "WALLET_ASSETS_HTTP";
15
+ SERVICE_PORT[SERVICE_PORT["STREAM_QUOTE_WS"] = 8011] = "STREAM_QUOTE_WS";
16
+ SERVICE_PORT[SERVICE_PORT["SEND_TX_WS"] = 8012] = "SEND_TX_WS";
17
+ SERVICE_PORT[SERVICE_PORT["STREAM_TRADE_WS"] = 8013] = "STREAM_TRADE_WS";
18
+ })(SERVICE_PORT || (exports.SERVICE_PORT = SERVICE_PORT = {}));
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ import * as cache from './cache';
6
6
  export * from './analyze';
7
7
  export * from './app_config';
8
8
  export * from './cache';
9
+ export * from './constants';
9
10
  export * from './market_price';
10
11
  export * from './pool';
11
12
  export * from './quote';
package/dist/index.js CHANGED
@@ -87,6 +87,7 @@ const crypto_1 = require("./util/crypto");
87
87
  __exportStar(require("./analyze"), exports);
88
88
  __exportStar(require("./app_config"), exports);
89
89
  __exportStar(require("./cache"), exports);
90
+ __exportStar(require("./constants"), exports);
90
91
  __exportStar(require("./market_price"), exports);
91
92
  __exportStar(require("./pool"), exports);
92
93
  __exportStar(require("./quote"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-core",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "description": "Common types and utilities for trading systems - use `npm run push` to publish",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",