@clonegod/ttd-bsc-common 3.1.51 → 3.1.53

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.
@@ -37,7 +37,6 @@ class BscDexEnvArgs extends bsc_env_args_1.BscEnvArgs {
37
37
  this.send_tx_48club_bundle = cfg.send_tx_48club_bundle;
38
38
  this.send_tx_48club_bundle_ws = cfg.send_tx_48club_bundle_ws;
39
39
  this.send_tx_blox_bundle_ws = cfg.send_tx_blox_bundle_ws;
40
- this.send_tx_ws_host = cfg.send_tx_ws_host;
41
40
  this.stream_quote_ws_host = cfg.stream_quote_ws_host;
42
41
  this.min_quote_interval_ms = cfg.min_quote_interval_ms;
43
42
  this.skip_price_feed_yynode = cfg.skip_price_feed_yynode;
@@ -6,10 +6,19 @@ export declare class BscEnvArgs extends EnvArgs {
6
6
  pancake_executor_id: string;
7
7
  uniswap_executor_id: string;
8
8
  caller_select_strategy: string;
9
+ send_tx_ws_host: string;
9
10
  send_tx_blockrazor_bundle: boolean;
10
11
  send_tx_48club_bundle: boolean;
11
12
  send_tx_48club_bundle_ws: boolean;
12
13
  send_tx_blox_bundle_ws: boolean;
14
+ send_tx_default_rpc: boolean;
15
+ send_tx_blockrazor_private: boolean;
16
+ send_tx_48club_private: boolean;
17
+ bsc_rpc_endpoint: string;
18
+ blockrazor_rpc_url: string;
19
+ blockrazor_auth_token: string;
20
+ _48club_rpc_url: string;
21
+ _48club_sp_wallet_id: string;
13
22
  stream_quote_ws_host: string;
14
23
  min_quote_interval_ms: number;
15
24
  skip_price_feed_yynode: boolean;
@@ -34,20 +43,6 @@ export declare class BscEnvArgs extends EnvArgs {
34
43
  caller_balance_check_interval: string;
35
44
  caller_balance_low_threshold: string;
36
45
  caller_balance_empty_threshold: string;
37
- send_tx_ws_host: string;
38
- send_tx_48club_ws: boolean;
39
- send_tx_bloxroute_ws: boolean;
40
- send_tx_default_rpc: boolean;
41
- send_tx_blockrazor_private: boolean;
42
- send_tx_48club_private: boolean;
43
- bsc_rpc_endpoint: string;
44
- bloxroute_ws_url: string;
45
- blox_auth_key: string;
46
- _48club_ws_url: string;
47
- _48club_rpc_url: string;
48
- _48club_sp_wallet_id: string;
49
- blockrazor_rpc_url: string;
50
- blockrazor_auth_token: string;
51
46
  gecko_network: string;
52
47
  chain_id_num: number;
53
48
  native_token_symbol: string;
@@ -10,10 +10,19 @@ const constants_1 = require("../common/constants");
10
10
  pancake_executor_id: { env: 'PANCAKE_EXECUTOR_ID', type: 'string', default: 'PANCAKE', desc: 'Vault 中 Pancake executor 注册名(keccak256 后作为 bytes32)' },
11
11
  uniswap_executor_id: { env: 'UNISWAP_EXECUTOR_ID', type: 'string', default: 'UNISWAP', desc: 'Vault 中 Uniswap executor 注册名(keccak256 后作为 bytes32)' },
12
12
  caller_select_strategy: { env: 'CALLER_SELECT_STRATEGY', type: 'string', default: 'lock', desc: 'CallerManager LRU 选择策略:lock=Redis 分布式锁(默认) | lua_cas=Lua 原子脚本(单 RTT,无锁重试)' },
13
- send_tx_blockrazor_bundle: { env: 'SEND_TX_BLOCKRAZOR_BUNDLE', type: 'boolean', default: false, desc: 'BlockRazor Bundle 开关' },
14
- send_tx_48club_bundle: { env: 'SEND_TX_48CLUB_BUNDLE', type: 'boolean', default: false, desc: '48Club Bundle HTTP 开关' },
15
- send_tx_48club_bundle_ws: { env: 'SEND_TX_48CLUB_BUNDLE_WS', type: 'boolean', default: false, desc: '48Club Bundle WS 开关' },
16
- send_tx_blox_bundle_ws: { env: 'SEND_TX_BLOX_BUNDLE_WS', type: 'boolean', default: false, desc: 'BloxRoute Bundle WS 开关' },
13
+ send_tx_ws_host: { env: 'SEND_TX_WS_HOST', type: 'string', default: '127.0.0.1', desc: 'trader WS 客户端连接的 send-tx 服务 host' },
14
+ send_tx_blockrazor_bundle: { env: 'SEND_TX_BLOCKRAZOR_BUNDLE', type: 'boolean', default: false, desc: 'BlockRazor Bundle 开关(HTTP,trader 直发)' },
15
+ send_tx_48club_bundle: { env: 'SEND_TX_48CLUB_BUNDLE', type: 'boolean', default: false, desc: '48Club Bundle 开关(HTTP,trader 直发)' },
16
+ send_tx_48club_bundle_ws: { env: 'SEND_TX_48CLUB_BUNDLE_WS', type: 'boolean', default: false, desc: '48Club Bundle WS 开关(trader 经 send-tx 服务转发)' },
17
+ send_tx_blox_bundle_ws: { env: 'SEND_TX_BLOX_BUNDLE_WS', type: 'boolean', default: false, desc: 'BloxRoute Bundle WS 开关(trader 经 send-tx 服务转发)' },
18
+ send_tx_default_rpc: { env: 'SEND_TX_DEFAULT_RPC', type: 'boolean', default: false, desc: '默认 RPC 私有发送(HTTP,trader 直发)' },
19
+ send_tx_blockrazor_private: { env: 'SEND_TX_BLOCKRAZOR_PRIVATE', type: 'boolean', default: false, desc: 'BlockRazor 私有发送(HTTP,trader 直发)' },
20
+ send_tx_48club_private: { env: 'SEND_TX_48CLUB_PRIVATE', type: 'boolean', default: false, desc: '48Club 私有发送(HTTP,trader 直发)' },
21
+ bsc_rpc_endpoint: { env: 'BSC_RPC_ENDPOINT', type: 'string', default: '', desc: 'BSC RPC 端点(default_rpc HTTP 直发用)' },
22
+ blockrazor_rpc_url: { env: 'BLOCKRAZOR_RPC_URL', type: 'string', default: 'https://rpc.blockrazor.builders', desc: 'BlockRazor RPC URL(HTTP 直发用)' },
23
+ blockrazor_auth_token: { env: 'BLOCKRAZOR_AUTH_TOKEN', type: 'string', default: '', sensitive: true, desc: 'BlockRazor 认证 Token(HTTP 直发用)' },
24
+ _48club_rpc_url: { env: '_48CLUB_RPC_URL', type: 'string', default: 'https://puissant-builder.48.club/', desc: '48Club RPC URL(HTTP 直发用)' },
25
+ _48club_sp_wallet_id: { env: '_48CLUB_SP_WALLET_ID', type: 'string', default: 'TTD-PAYMENT', desc: '48Club SoulPoint 钱包 ID(trader SP 签名用)' },
17
26
  stream_quote_ws_host: { env: 'STREAM_QUOTE_WS_HOST', type: 'string', default: '127.0.0.1', desc: 'stream-quote WS 地址' },
18
27
  min_quote_interval_ms: { env: 'MIN_QUOTE_INTERVAL_MS', type: 'number', default: 10000, desc: '最小询价间隔(ms)' },
19
28
  skip_price_feed_yynode: { env: 'SKIP_PRICE_FEED_YYNODE', type: 'boolean', default: false, desc: '跳过 YYNode PriceFeed' },
@@ -38,20 +47,6 @@ const constants_1 = require("../common/constants");
38
47
  caller_balance_check_interval: { env: 'CALLER_BALANCE_CHECK_INTERVAL', type: 'string', default: '1h', desc: 'caller 余额检查周期,支持 8h/30m/45s/100ms 格式' },
39
48
  caller_balance_low_threshold: { env: 'CALLER_BALANCE_LOW_THRESHOLD', type: 'string', default: '0.01', desc: 'caller 低余额阈值(原生币单位),低于报 ERROR' },
40
49
  caller_balance_empty_threshold: { env: 'CALLER_BALANCE_EMPTY_THRESHOLD', type: 'string', default: '0', desc: 'caller 耗尽阈值,低于报 CRITICAL;为 0 表示禁用此级' },
41
- send_tx_ws_host: { env: 'SEND_TX_WS_HOST', type: 'string', default: '127.0.0.1', desc: 'send-tx WS 地址' },
42
- send_tx_48club_ws: { env: 'SEND_TX_48CLUB_WS', type: 'boolean', default: false, desc: '48Club WS server 开关' },
43
- send_tx_bloxroute_ws: { env: 'SEND_TX_BLOXROUTE_WS', type: 'boolean', default: false, desc: 'BloxRoute WS server 开关' },
44
- send_tx_default_rpc: { env: 'SEND_TX_DEFAULT_RPC', type: 'boolean', default: false, desc: '默认 RPC 私有发送' },
45
- send_tx_blockrazor_private: { env: 'SEND_TX_BLOCKRAZOR_PRIVATE', type: 'boolean', default: false, desc: 'BlockRazor 私有发送' },
46
- send_tx_48club_private: { env: 'SEND_TX_48CLUB_PRIVATE', type: 'boolean', default: false, desc: '48Club 私有发送' },
47
- bsc_rpc_endpoint: { env: 'BSC_RPC_ENDPOINT', type: 'string', default: '', desc: 'BSC RPC 端点(default_rpc 发送用)' },
48
- bloxroute_ws_url: { env: 'BLOXROUTE_WS_URL', type: 'string', default: 'wss://api.blxrbdn.com/ws', desc: 'BloxRoute WS URL' },
49
- blox_auth_key: { env: 'BLOX_AUTH_KEY', type: 'string', default: '', sensitive: true, desc: 'BloxRoute 认证 key' },
50
- _48club_ws_url: { env: '_48CLUB_WS_URL', type: 'string', default: 'wss://puissant-builder.48.club/', desc: '48Club WS URL' },
51
- _48club_rpc_url: { env: '_48CLUB_RPC_URL', type: 'string', default: 'https://puissant-builder.48.club/', desc: '48Club RPC URL' },
52
- _48club_sp_wallet_id: { env: '_48CLUB_SP_WALLET_ID', type: 'string', default: 'TTD-PAYMENT', desc: '48Club SoulPoint 钱包 ID' },
53
- blockrazor_rpc_url: { env: 'BLOCKRAZOR_RPC_URL', type: 'string', default: 'https://rpc.blockrazor.builders', desc: 'BlockRazor RPC URL' },
54
- blockrazor_auth_token: { env: 'BLOCKRAZOR_AUTH_TOKEN', type: 'string', default: '', sensitive: true, desc: 'BlockRazor 认证 Token' },
55
50
  gecko_network: { env: 'GECKO_NETWORK', type: 'string', default: '', desc: 'GeckoTerminal 网络标识(可选;缺省按 chain_id 推断)' },
56
51
  chain_id_num: { env: 'CHAIN_ID_NUM', type: 'number', default: 56, desc: '链 ID 数字' },
57
52
  native_token_symbol: { env: 'NATIVE_TOKEN_SYMBOL', type: 'string', default: 'BNB', desc: '原生代币符号' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-bsc-common",
3
- "version": "3.1.51",
3
+ "version": "3.1.53",
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.50",
17
+ "@clonegod/ttd-core": "3.1.51",
18
18
  "axios": "1.15.0",
19
19
  "dotenv": "^16.4.7",
20
20
  "ethers": "^5.8.0",