@clonegod/ttd-core 3.1.71 → 3.1.72
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/package.json +1 -1
- package/types/index.d.ts +7 -6
package/package.json
CHANGED
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
|
-
|
|
1064
|
-
|
|
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
|