@clonegod/ttd-bsc-common 3.1.41 → 3.1.43

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.
@@ -7,5 +7,4 @@ export declare class BscQuoteAppConfig extends AppConfig {
7
7
  on(eventName: string | symbol, listener: (...args: any[]) => void): this;
8
8
  emit(eventName: string | symbol, ...args: any[]): boolean;
9
9
  init(): Promise<void>;
10
- subscribe_config_change(): Promise<void>;
11
10
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BscQuoteAppConfig = void 0;
4
- const bsc_dex_env_args_1 = require("./bsc_dex_env_args");
5
4
  const ensure_core_env_1 = require("./ensure_core_env");
6
5
  const ttd_core_1 = require("@clonegod/ttd-core");
7
6
  const events_1 = require("events");
@@ -33,18 +32,5 @@ class BscQuoteAppConfig extends ttd_core_1.AppConfig {
33
32
  ws_endpoint: this.env_args.ws_endpoint,
34
33
  });
35
34
  }
36
- async subscribe_config_change() {
37
- this.on('config_change', async (config) => {
38
- (0, ttd_core_1.log_info)('Config change received', config);
39
- if (config.env_args) {
40
- const fresh = new bsc_dex_env_args_1.BscDexEnvArgs();
41
- (0, ttd_core_1.setCoreEnv)(fresh, { force: true });
42
- this.env_args = fresh;
43
- }
44
- if (config.arb_cache) {
45
- await this.arb_cache.init();
46
- }
47
- });
48
- }
49
35
  }
50
36
  exports.BscQuoteAppConfig = BscQuoteAppConfig;
@@ -25,10 +25,6 @@ class BscDexEnvArgs extends bsc_env_args_1.BscEnvArgs {
25
25
  this.encryption_key = cfg.encryption_key ?? '';
26
26
  this.server_ip_list = cfg.server_ip_list ?? '';
27
27
  this.ip_exclude_prefix = cfg.ip_exclude_prefix ?? '';
28
- this.alert_analyze_host = cfg.alert_analyze_host ?? '';
29
- this.alert_flush_size = cfg.alert_flush_size;
30
- this.alert_flush_ms = cfg.alert_flush_ms;
31
- this.alert_dedup_window_ms = cfg.alert_dedup_window_ms;
32
28
  this.namespace = cfg.namespace ?? '';
33
29
  this.trade_analyze_host = cfg.trade_analyze_host ?? '';
34
30
  this.gas_price_gwei = cfg.gas_price_gwei;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import './alert_rules';
2
1
  export * from './common';
3
2
  export * from './appconfig';
4
3
  export * from './quote';
package/dist/index.js CHANGED
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- require("./alert_rules");
18
17
  __exportStar(require("./common"), exports);
19
18
  __exportStar(require("./appconfig"), exports);
20
19
  __exportStar(require("./quote"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-bsc-common",
3
- "version": "3.1.41",
3
+ "version": "3.1.43",
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.1.41",
17
+ "@clonegod/ttd-core": "3.1.43",
18
18
  "axios": "1.15.0",
19
19
  "dotenv": "^16.4.7",
20
20
  "ethers": "^5.8.0",