@clonegod/ttd-core 2.0.48 → 2.0.50

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.
@@ -80,7 +80,7 @@ class ArbEventPublisher {
80
80
  (0, index_1.log_debug)(`publish_new_block_event, success`, {
81
81
  channel,
82
82
  chain_id,
83
- block_number: message.block_number
83
+ block_number: message.block_number || message.blockNumber
84
84
  });
85
85
  });
86
86
  }
@@ -166,7 +166,7 @@ class ArbEventSubscriber {
166
166
  return __awaiter(this, void 0, void 0, function* () {
167
167
  const channel = (0, index_1.get_new_block_channel_name)(chain_id);
168
168
  const listener = (message, _channel) => {
169
- (0, index_1.log_info)('subscribe_new_block => on event', { channel, message });
169
+ (0, index_1.log_info)(`subscribe_new_block => on event: channel=${channel}, message=${message}`);
170
170
  callback(message);
171
171
  };
172
172
  yield this.redis_cmd.subscribe(channel, listener);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-core",
3
- "version": "2.0.48",
3
+ "version": "2.0.50",
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": "types/index.d.ts",