@clonegod/ttd-sol-common 2.0.32 → 2.0.33

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.
@@ -1,13 +1,13 @@
1
1
  export interface SolanaAccountUpdateEvent {
2
- recv_ms: number;
2
+ recvTimeMs: number;
3
3
  providerId: string;
4
4
  account: string;
5
5
  slot: number;
6
6
  writeVersion: number;
7
7
  transactionHash: string;
8
- dex_id: string;
9
- pool_address: string;
10
- pool_name: string;
8
+ dexId: string;
9
+ poolAddress: string;
10
+ poolName: string;
11
11
  accountData?: Buffer | string;
12
12
  }
13
13
  export interface SolanaBlockMetaUpdateEvent {
@@ -21,15 +21,14 @@ export interface SolanaBlockMetaUpdateEvent {
21
21
  entriesCount: number;
22
22
  }
23
23
  export interface SolanaPoolAccountUpdateEventData {
24
- provider_id: string;
25
24
  event_time: number;
26
- dexId: string;
25
+ provider_id: string;
26
+ dex_id: string;
27
27
  pool_address: string;
28
28
  pool_name: string;
29
29
  data: {
30
30
  slot: number;
31
- writeVersion: number;
32
- transactionHash: string;
31
+ tx_hash: string;
33
32
  pool_account: string;
34
33
  pool_account_data: string;
35
34
  vaultA_account?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clonegod/ttd-sol-common",
3
- "version": "2.0.32",
3
+ "version": "2.0.33",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",
@@ -2,7 +2,7 @@
2
2
  * Solana 池子账户更新事件数据结构
3
3
  */
4
4
  export interface SolanaAccountUpdateEvent {
5
- recv_ms: number; // 接收时间戳(毫秒)
5
+ recvTimeMs: number; // 接收时间戳(毫秒)
6
6
 
7
7
  providerId: string; // 提供者 ID: 'helius-laserstream'
8
8
 
@@ -13,9 +13,9 @@ export interface SolanaAccountUpdateEvent {
13
13
  transactionHash: string; // 导致账户变化的交易哈希
14
14
 
15
15
  // 池子信息
16
- dex_id: string; // DEX ID
17
- pool_address: string; // 池子地址
18
- pool_name: string; // 池子名称
16
+ dexId: string; // DEX ID
17
+ poolAddress: string; // 池子地址
18
+ poolName: string; // 池子名称
19
19
 
20
20
  // 账户数据(原始数据,由客户端解析)
21
21
  accountData?: Buffer | string; // 账户原始数据
@@ -41,15 +41,14 @@ export interface SolanaBlockMetaUpdateEvent {
41
41
  * - 其他 : account_data
42
42
  */
43
43
  export interface SolanaPoolAccountUpdateEventData {
44
- provider_id: string
45
44
  event_time: number
46
- dexId: string
45
+ provider_id: string
46
+ dex_id: string
47
47
  pool_address: string
48
48
  pool_name: string
49
49
  data: {
50
50
  slot: number
51
- writeVersion: number
52
- transactionHash: string
51
+ tx_hash: string
53
52
  pool_account: string
54
53
  pool_account_data: string
55
54