@clonegod/ttd-bsc-common 3.1.56 → 3.1.57
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.
|
@@ -39,8 +39,7 @@ class BscDexEnvArgs extends bsc_env_args_1.BscEnvArgs {
|
|
|
39
39
|
this.send_tx_blox_bundle_ws = cfg.send_tx_blox_bundle_ws;
|
|
40
40
|
this.stream_quote_ws_host = cfg.stream_quote_ws_host;
|
|
41
41
|
this.min_quote_interval_ms = cfg.min_quote_interval_ms;
|
|
42
|
-
this.
|
|
43
|
-
this.push_price_feed = cfg.push_price_feed;
|
|
42
|
+
this.use_pricefeed_for_orderbook = cfg.use_pricefeed_for_orderbook;
|
|
44
43
|
this.trade_parse_fetch_block_time = cfg.trade_parse_fetch_block_time;
|
|
45
44
|
this.tick_cache_neighboring_words = cfg.tick_cache_neighboring_words;
|
|
46
45
|
this.tick_cache_ttl = cfg.tick_cache_ttl;
|
|
@@ -21,8 +21,7 @@ export declare class BscEnvArgs extends EnvArgs {
|
|
|
21
21
|
_48club_sp_wallet_id: string;
|
|
22
22
|
stream_quote_ws_host: string;
|
|
23
23
|
min_quote_interval_ms: number;
|
|
24
|
-
|
|
25
|
-
push_price_feed: boolean;
|
|
24
|
+
use_pricefeed_for_orderbook: boolean;
|
|
26
25
|
trade_parse_fetch_block_time: boolean;
|
|
27
26
|
tick_cache_neighboring_words: number;
|
|
28
27
|
tick_cache_ttl: number;
|
|
@@ -25,8 +25,7 @@ const constants_1 = require("../common/constants");
|
|
|
25
25
|
_48club_sp_wallet_id: { env: '_48CLUB_SP_WALLET_ID', type: 'string', default: 'TTD-PAYMENT', desc: '48Club SoulPoint 钱包 ID(trader SP 签名用)' },
|
|
26
26
|
stream_quote_ws_host: { env: 'STREAM_QUOTE_WS_HOST', type: 'string', default: '127.0.0.1', desc: 'stream-quote WS 地址' },
|
|
27
27
|
min_quote_interval_ms: { env: 'MIN_QUOTE_INTERVAL_MS', type: 'number', default: 10000, desc: '最小询价间隔(ms)' },
|
|
28
|
-
|
|
29
|
-
push_price_feed: { env: 'PUSH_PRICE_FEED', type: 'boolean', default: false, desc: 'PriceFeed 推送开关' },
|
|
28
|
+
use_pricefeed_for_orderbook: { env: 'USE_PRICEFEED_FOR_ORDERBOOK', type: 'boolean', default: false, desc: 'YYNode PriceFeed (v3 source) 算出的报价是否推 orderbook(false=仅供分析对比,不参与下单决策)' },
|
|
30
29
|
trade_parse_fetch_block_time: { env: 'TRADE_PARSE_FETCH_BLOCK_TIME', type: 'boolean', default: false, desc: '解析交易 receipt 时是否额外 RPC 查询 block 时间戳填入结果' },
|
|
31
30
|
tick_cache_neighboring_words: { env: 'TICK_CACHE_NEIGHBORING_WORDS', type: 'number', default: 2, desc: 'tick 预加载 words 数' },
|
|
32
31
|
tick_cache_ttl: { env: 'TICK_CACHE_TTL', type: 'number', default: 30000, desc: 'tick 缓存 TTL(ms)' },
|
package/dist/common/constants.js
CHANGED
|
@@ -36,7 +36,4 @@ exports.PancakeV3PoolABI = [
|
|
|
36
36
|
"function fee() external view returns (uint24)",
|
|
37
37
|
"function ticks(int24 tick) external view returns (uint128 liquidityGross, int128 liquidityNet, int56 tickCumulativeOutside, uint160 secondsPerLiquidityOutsideX128, uint32 secondsOutside, bool initialized)",
|
|
38
38
|
"function tickBitmap(int16 wordPosition) external view returns (uint256)",
|
|
39
|
-
"event Swap(address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick, uint128 protocolFeesToken0, uint128 protocolFeesToken1)",
|
|
40
|
-
"event Mint(address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1)",
|
|
41
|
-
"event Burn(address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1)"
|
|
42
39
|
];
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -20,5 +20,4 @@ __exportStar(require("./quote"), exports);
|
|
|
20
20
|
__exportStar(require("./trade"), exports);
|
|
21
21
|
__exportStar(require("./types"), exports);
|
|
22
22
|
__exportStar(require("./utils"), exports);
|
|
23
|
-
__exportStar(require("./ws"), exports);
|
|
24
23
|
__exportStar(require("./send-tx"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clonegod/ttd-bsc-common",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.57",
|
|
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.
|
|
17
|
+
"@clonegod/ttd-core": "3.1.54",
|
|
18
18
|
"axios": "1.15.0",
|
|
19
19
|
"dotenv": "^16.4.7",
|
|
20
20
|
"ethers": "^5.8.0",
|