@clonegod/ttd-core 3.1.71 → 3.1.73

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.
package/dist/index.d.ts CHANGED
@@ -65,8 +65,9 @@ export declare enum DEX_ID {
65
65
  PANCAKE_CLAMM = "PANCAKE-CLAMM",
66
66
  PANCAKE_BIN = "PANCAKE-BIN",
67
67
  AERODROME_AMM = "AERODROME-AMM",
68
- AERODROME_CLMM = "AERODROME-CLMM",
69
- AERODROME_CLAMM = "AERODROME-CLAMM",
68
+ AERODROME_SLIPSTREAMV1 = "AERODROME-SLIPSTREAMV1",
69
+ AERODROME_SLIPSTREAMV2 = "AERODROME-SLIPSTREAMV2",
70
+ AERODROME_SLIPSTREAMV3 = "AERODROME-SLIPSTREAMV3",
70
71
  UNISWAP_AMM = "UNISWAP-AMM",
71
72
  UNISWAP_CLMM = "UNISWAP-CLMM",
72
73
  UNISWAP_V4 = "UNISWAP-V4",
package/dist/index.js CHANGED
@@ -150,8 +150,9 @@ var DEX_ID;
150
150
  DEX_ID["PANCAKE_CLAMM"] = "PANCAKE-CLAMM";
151
151
  DEX_ID["PANCAKE_BIN"] = "PANCAKE-BIN";
152
152
  DEX_ID["AERODROME_AMM"] = "AERODROME-AMM";
153
- DEX_ID["AERODROME_CLMM"] = "AERODROME-CLMM";
154
- DEX_ID["AERODROME_CLAMM"] = "AERODROME-CLAMM";
153
+ DEX_ID["AERODROME_SLIPSTREAMV1"] = "AERODROME-SLIPSTREAMV1";
154
+ DEX_ID["AERODROME_SLIPSTREAMV2"] = "AERODROME-SLIPSTREAMV2";
155
+ DEX_ID["AERODROME_SLIPSTREAMV3"] = "AERODROME-SLIPSTREAMV3";
155
156
  DEX_ID["UNISWAP_AMM"] = "UNISWAP-AMM";
156
157
  DEX_ID["UNISWAP_CLMM"] = "UNISWAP-CLMM";
157
158
  DEX_ID["UNISWAP_V4"] = "UNISWAP-V4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-core",
3
- "version": "3.1.71",
3
+ "version": "3.1.73",
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": "dist/index.d.ts",
package/types/index.d.ts CHANGED
@@ -1059,18 +1059,19 @@ export interface AnalyzePoolEventType {
1059
1059
  /** 该事件是否是我方发起的 tx(source_txid === 我方 OnTrade.txid) */
1060
1060
  is_mine?: boolean
1061
1061
  event_type: 'SWAP' | 'MINT' | 'BURN' | 'MODIFY_LIQUIDITY'
1062
- /**
1063
- * 时间线渲染时用的"本地观测时间" (ms)。
1064
- * 历史 = block_time(chain),现行 = stream_recv_time(local),便于和其他本地时间统一第一列。
1065
- */
1066
- timestamp: number
1067
- /** 链上 block_time (ms),UI 用来计算"传播延迟"。0 = 未知 */
1062
+ /** 本地观测时间 (ms),来自 stream-quote 的 recv_ms。UI 用来显示我们收到事件的时刻 + 传播延迟 (stream_recv_time - chain_time)。 */
1063
+ stream_recv_time: number
1064
+ /** 链上 block_time (ms),UI 时间线排序 + 计算"传播延迟"基准。0 = 未知 */
1068
1065
  chain_time?: number
1069
1066
  swap?: {
1070
1067
  direction: 'BUY' | 'SELL'
1071
1068
  amount_in: string
1072
1069
  amount_out: string
1073
1070
  price: string
1071
+ /** 已应用 decimals + 加 K/M 单位 + 带 token symbol 的人读字符串,如 "2.76K USDC" */
1072
+ amount_in_formatted?: string
1073
+ /** 同上,对应 amount_out。空 = analyze 端找不到 pool 的 token meta */
1074
+ amount_out_formatted?: string
1074
1075
  }
1075
1076
  liquidity?: {
1076
1077
  tick_lower?: number