@clonegod/ttd-core 3.1.114 → 3.1.115

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.
@@ -29,6 +29,12 @@ export declare const EvmChainConfig: {
29
29
  chain_full_name: string;
30
30
  weth_addr: string;
31
31
  };
32
+ HL: {
33
+ chain_id: number;
34
+ chain_short_name: string;
35
+ chain_full_name: string;
36
+ weth_addr: string;
37
+ };
32
38
  XLAYER: {
33
39
  chain_id: number;
34
40
  chain_short_name: string;
@@ -32,6 +32,12 @@ exports.EvmChainConfig = {
32
32
  chain_full_name: 'AVALANCHE',
33
33
  weth_addr: "0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7".toLowerCase(),
34
34
  },
35
+ HL: {
36
+ chain_id: 999,
37
+ chain_short_name: 'hyperliquid',
38
+ chain_full_name: 'HYPEREVM',
39
+ weth_addr: "0x5555555555555555555555555555555555555555".toLowerCase(),
40
+ },
35
41
  "XLAYER": {
36
42
  chain_id: 196,
37
43
  chain_short_name: 'x-layer',
package/dist/index.d.ts CHANGED
@@ -47,7 +47,8 @@ export declare enum CHAIN_ID {
47
47
  LINEA = "LINEA",
48
48
  TRON = "TRON",
49
49
  SONIC = "SONIC",
50
- XLAYER = "XLAYER"
50
+ XLAYER = "XLAYER",
51
+ HL = "HL"
51
52
  }
52
53
  export declare enum DEX_ID {
53
54
  SUNSWAP_AMM = "SUNSWAP-AMM",
@@ -89,6 +90,10 @@ export declare enum DEX_ID {
89
90
  DYOR_CLMM = "DYOR-CLMM",
90
91
  OKIE_AMM = "OKIE-AMM",
91
92
  OKIE_CLMM = "OKIE-CLMM",
93
+ PRJX_CLMM = "PRJX-CLMM",
94
+ PRJX_AMM = "PRJX-AMM",
95
+ HL_SPOT = "HL-SPOT",
96
+ HL_PERP = "HL-PERP",
92
97
  STONFI = "STONFI",
93
98
  STONFI_V2 = "STONFI-V2",
94
99
  DEDUST = "DEDUST",
package/dist/index.js CHANGED
@@ -132,6 +132,7 @@ var CHAIN_ID;
132
132
  CHAIN_ID["TRON"] = "TRON";
133
133
  CHAIN_ID["SONIC"] = "SONIC";
134
134
  CHAIN_ID["XLAYER"] = "XLAYER";
135
+ CHAIN_ID["HL"] = "HL";
135
136
  })(CHAIN_ID || (exports.CHAIN_ID = CHAIN_ID = {}));
136
137
  var DEX_ID;
137
138
  (function (DEX_ID) {
@@ -174,6 +175,10 @@ var DEX_ID;
174
175
  DEX_ID["DYOR_CLMM"] = "DYOR-CLMM";
175
176
  DEX_ID["OKIE_AMM"] = "OKIE-AMM";
176
177
  DEX_ID["OKIE_CLMM"] = "OKIE-CLMM";
178
+ DEX_ID["PRJX_CLMM"] = "PRJX-CLMM";
179
+ DEX_ID["PRJX_AMM"] = "PRJX-AMM";
180
+ DEX_ID["HL_SPOT"] = "HL-SPOT";
181
+ DEX_ID["HL_PERP"] = "HL-PERP";
177
182
  DEX_ID["STONFI"] = "STONFI";
178
183
  DEX_ID["STONFI_V2"] = "STONFI-V2";
179
184
  DEX_ID["DEDUST"] = "DEDUST";
@@ -90,6 +90,7 @@ const cache_pool_config = (chain_id, tokens_map, pools_map) => __awaiter(void 0,
90
90
  if (body.length > 0) {
91
91
  const res = (yield axios_1.default.post(config_pool_url, body, {
92
92
  headers: { 'Content-Type': 'application/json' },
93
+ proxy: false,
93
94
  })).data;
94
95
  (0, index_1.log_trace)('cache_pool_config, res', res);
95
96
  }
@@ -104,7 +105,7 @@ const cache_pool_config = (chain_id, tokens_map, pools_map) => __awaiter(void 0,
104
105
  data: skip_pool_list
105
106
  }, null, 2));
106
107
  let notify_config_change_url = `${ccBase}/change?type=pool`;
107
- let res = (yield axios_1.default.get(notify_config_change_url)).data;
108
+ let res = (yield axios_1.default.get(notify_config_change_url, { proxy: false })).data;
108
109
  (0, index_1.log_info)('fetch dex pools end, notify config change', {
109
110
  notify_config_change_url,
110
111
  res
@@ -47,12 +47,13 @@ const cache_token_config = (chain_id, tokens_map) => __awaiter(void 0, void 0, v
47
47
  if (valid_tokens.length > 0) {
48
48
  const res = (yield axios_1.default.post(config_token_url, valid_tokens, {
49
49
  headers: { 'Content-Type': 'application/json' },
50
+ proxy: false,
50
51
  })).data;
51
52
  (0, index_1.log_trace)('cache_token_config, res', res);
52
53
  }
53
54
  (0, index_1.log_info)(`cache_token_config finish! sync token count: ${valid_tokens.length}`);
54
55
  let notify_config_change_url = `${ccBase}/change?type=token`;
55
- let res = (yield axios_1.default.get(notify_config_change_url)).data;
56
+ let res = (yield axios_1.default.get(notify_config_change_url, { proxy: false })).data;
56
57
  (0, index_1.log_info)('fetch tokens end, notify config change', {
57
58
  notify_config_change_url,
58
59
  res
package/package.json CHANGED
@@ -1,50 +1,50 @@
1
1
  {
2
- "name": "@clonegod/ttd-core",
3
- "version": "3.1.114",
4
- "description": "Common types and utilities for trading systems - use `npm run push` to publish",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "keywords": [],
8
- "author": "",
9
- "license": "ISC",
10
- "scripts": {
11
- "clean": "rm -rf dist node_modules",
12
- "build": "yarn tsc --outDir ./dist",
13
- "push": "npm run build && npm publish"
14
- },
15
- "dependencies": {
16
- "@noble/secp256k1": "1.7.1",
17
- "axios": "1.17.0",
18
- "bn.js": "^5.2.1",
19
- "body-parser": "^1.20.3",
20
- "bs58": "^6.0.0",
21
- "decimal.js": "^10.5.0",
22
- "dotenv": "^16.4.7",
23
- "express": "^4.21.2",
24
- "express-ws": "^5.0.2",
25
- "graphql": "^16.11.0",
26
- "graphql-request": "^7.2.0",
27
- "keccak": "^3.0.4",
28
- "moment": "^2.30.1",
29
- "redis": "^4.7.0",
30
- "short-uuid": "6.0.3",
31
- "ts-node": "^10.9.2",
32
- "typescript": "^5.7.3",
33
- "uuid": "^11.1.0"
34
- },
35
- "devDependencies": {
36
- "@types/bn.js": "~5.1.5",
37
- "@types/node": "^22.7.9",
38
- "rimraf": "^5.0.5",
39
- "ts-node": "^10.9.2",
40
- "typescript": "^5.7.3"
41
- },
42
- "resolutions": {
43
- "qs": ">=6.14.1",
44
- "diff": ">=8.0.3"
45
- },
46
- "overrides": {},
47
- "publishConfig": {
48
- "access": "public"
49
- }
2
+ "name": "@clonegod/ttd-core",
3
+ "version": "3.1.115",
4
+ "description": "Common types and utilities for trading systems - use `npm run push` to publish",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "keywords": [],
8
+ "author": "",
9
+ "license": "ISC",
10
+ "scripts": {
11
+ "clean": "rm -rf dist node_modules",
12
+ "build": "yarn tsc --outDir ./dist",
13
+ "push": "npm run build && npm publish"
14
+ },
15
+ "dependencies": {
16
+ "@noble/secp256k1": "1.7.1",
17
+ "axios": "1.17.0",
18
+ "bn.js": "^5.2.1",
19
+ "body-parser": "^1.20.3",
20
+ "bs58": "^6.0.0",
21
+ "decimal.js": "^10.5.0",
22
+ "dotenv": "^16.4.7",
23
+ "express": "^4.21.2",
24
+ "express-ws": "^5.0.2",
25
+ "graphql": "^16.11.0",
26
+ "graphql-request": "^7.2.0",
27
+ "keccak": "^3.0.4",
28
+ "moment": "^2.30.1",
29
+ "redis": "^4.7.0",
30
+ "short-uuid": "6.0.3",
31
+ "ts-node": "^10.9.2",
32
+ "typescript": "^5.7.3",
33
+ "uuid": "^11.1.0"
34
+ },
35
+ "devDependencies": {
36
+ "@types/bn.js": "~5.1.5",
37
+ "@types/node": "^22.7.9",
38
+ "rimraf": "^5.0.5",
39
+ "ts-node": "^10.9.2",
40
+ "typescript": "^5.7.3"
41
+ },
42
+ "resolutions": {
43
+ "qs": ">=6.14.1",
44
+ "diff": ">=8.0.3"
45
+ },
46
+ "overrides": {},
47
+ "publishConfig": {
48
+ "access": "public"
49
+ }
50
50
  }