@clonegod/ttd-sol-common 1.0.8 → 1.0.10

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 (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -38,7 +38,7 @@ const subscribe_pool_change_by_geyser = (geyser_ws_url, pool_list, eventEmitter)
38
38
  yield (0, dist_1.sleep)(1000);
39
39
  var ws_client = new ws_1.default(geyser_ws_url);
40
40
  function subscribe_account_change(ws_client, pool) {
41
- (0, dist_1.log_info)(`subscribe pool: ${pool.pool_name}, ${pool.pool_address}`);
41
+ (0, dist_1.log_info)(`subscribe: ${pool.pool_name} -> ${pool.pool_address}`);
42
42
  const request = {
43
43
  jsonrpc: '2.0',
44
44
  id: 420,
@@ -61,9 +61,13 @@ const subscribe_pool_change_by_geyser = (geyser_ws_url, pool_list, eventEmitter)
61
61
  });
62
62
  ws_client.on('message', function incoming(data) {
63
63
  return __awaiter(this, void 0, void 0, function* () {
64
+ (0, dist_1.log_info)(`Received Geyser Message`);
64
65
  let messageStr = '';
65
66
  try {
66
67
  messageStr = data.toString('utf8');
68
+ if (dist_1.LOG.trace) {
69
+ (0, dist_1.log_trace)(`Received msg:`, messageStr);
70
+ }
67
71
  if (messageStr == '{}') {
68
72
  (0, dist_1.log_info)(`receive empty message, something wrong! exit ...`);
69
73
  ws_client.close();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",
@@ -13,7 +13,7 @@
13
13
  "push": "npm run build && npm publish"
14
14
  },
15
15
  "dependencies": {
16
- "@clonegod/ttd-common": "1.0.126"
16
+ "@clonegod/ttd-common": "1.0.128"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@types/bn.js": "~5.1.5",