@clonegod/ttd-sol-common 2.0.1 → 2.0.3
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/quote/index.d.ts +1 -0
- package/dist/quote/index.js +1 -0
- package/dist/quote/types.d.ts +11 -0
- package/dist/quote/types.js +2 -0
- package/package.json +4 -3
- package/src/index.ts +1 -1
- package/src/quote/index.ts +2 -1
- package/src/quote/types.ts +21 -0
package/dist/quote/index.d.ts
CHANGED
package/dist/quote/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clonegod/ttd-sol-common",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
"push": "npm run build && npm publish"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@clonegod/ttd-core": "2.1.
|
|
16
|
+
"@clonegod/ttd-core": "2.1.3",
|
|
17
17
|
"@solana/web3.js": "1.91.6",
|
|
18
18
|
"rpc-websockets": "7.10.0",
|
|
19
19
|
"axios": "^1.2.3",
|
|
20
20
|
"bn.js": "^4.12.1",
|
|
21
|
-
"bs58": "^6.0.0"
|
|
21
|
+
"bs58": "^6.0.0",
|
|
22
|
+
"helius-laserstream": "^0.2.7"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
25
|
"@types/node": "^22.7.9",
|
package/src/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './quote'
|
|
1
|
+
export * from './quote'
|
package/src/quote/index.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './pricing'
|
|
1
|
+
export * from './pricing'
|
|
2
|
+
export * from './types'
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Solana 池子账户更新事件数据结构
|
|
3
|
+
*/
|
|
4
|
+
export interface SolanaAccountUpdateData {
|
|
5
|
+
recv_ms: number; // 接收时间戳(毫秒)
|
|
6
|
+
|
|
7
|
+
// 公共字段
|
|
8
|
+
slot: number; // Solana slot 号
|
|
9
|
+
writeVersion: number; // 账户写入版本
|
|
10
|
+
transactionHash: string; // 交易哈希
|
|
11
|
+
|
|
12
|
+
// 池子信息
|
|
13
|
+
dexId: string; // DEX ID
|
|
14
|
+
pair: string; // 交易对名称
|
|
15
|
+
poolAddress: string; // 池子地址
|
|
16
|
+
poolName?: string; // 池子名称
|
|
17
|
+
|
|
18
|
+
// 账户数据(原始数据,由客户端解析)
|
|
19
|
+
accountData?: Buffer | string; // 账户原始数据
|
|
20
|
+
}
|
|
21
|
+
|