@clonegod/ttd-bsc-common 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.
@@ -165,11 +165,8 @@ class AbstractDexTrade extends ttd_core_1.AbastrcatTrade {
165
165
  });
166
166
  }
167
167
  subscribeTradeMonitor() {
168
- const wsUrl = process.env.TRADE_MONITOR_WS_URL;
169
- if (!wsUrl) {
170
- (0, ttd_core_1.log_warn)('TRADE_MONITOR_WS_URL not configured, trade result nonce correction disabled');
171
- return;
172
- }
168
+ const host = process.env.STREAM_TRADE_HOST || '127.0.0.1';
169
+ const wsUrl = `ws://${host}:${ttd_core_1.SERVICE_PORT.STREAM_TRADE_WS}`;
173
170
  const wsClient = new ttd_core_1.WebSocketClient(wsUrl);
174
171
  wsClient.onOpen(() => {
175
172
  wsClient.send(JSON.stringify({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-bsc-common",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "description": "BSC common library",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/index.js",
@@ -14,7 +14,7 @@
14
14
  "push": "npm run build && npm publish"
15
15
  },
16
16
  "dependencies": {
17
- "@clonegod/ttd-core": "3.0.3",
17
+ "@clonegod/ttd-core": "3.0.4",
18
18
  "@clonegod/ttd-bsc-send-tx": "1.0.0",
19
19
  "axios": "^1.12.0",
20
20
  "dotenv": "^16.4.7",