@clonegod/ttd-core 3.1.114 → 3.1.116
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/chains/index.d.ts +6 -0
- package/dist/chains/index.js +6 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.js +10 -0
- package/dist/pool/cache_pool_config.js +2 -1
- package/dist/token/cache_token_config.js +2 -1
- package/package.json +1 -1
package/dist/chains/index.d.ts
CHANGED
|
@@ -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;
|
package/dist/chains/index.js
CHANGED
|
@@ -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",
|
|
@@ -75,6 +76,11 @@ export declare enum DEX_ID {
|
|
|
75
76
|
UNISWAP_V4 = "UNISWAP-V4",
|
|
76
77
|
UP_V2 = "UP-V2",
|
|
77
78
|
UP_V3 = "UP-V3",
|
|
79
|
+
RAMSES_V3 = "RAMSES-V3",
|
|
80
|
+
RAMSES_V2 = "RAMSES-V2",
|
|
81
|
+
RAMSES_DLMM = "RAMSES-DLMM",
|
|
82
|
+
GIGA_V3 = "GIGA-V3",
|
|
83
|
+
GIGA_V2 = "GIGA-V2",
|
|
78
84
|
MOMENTUM_CLMM = "MOMENTUM-CLMM",
|
|
79
85
|
CETUS_CLMM = "CETUS-CLMM",
|
|
80
86
|
BLUEFIN_CLMM = "BLUEFIN-CLMM",
|
|
@@ -89,6 +95,10 @@ export declare enum DEX_ID {
|
|
|
89
95
|
DYOR_CLMM = "DYOR-CLMM",
|
|
90
96
|
OKIE_AMM = "OKIE-AMM",
|
|
91
97
|
OKIE_CLMM = "OKIE-CLMM",
|
|
98
|
+
PRJX_CLMM = "PRJX-CLMM",
|
|
99
|
+
PRJX_AMM = "PRJX-AMM",
|
|
100
|
+
HL_SPOT = "HL-SPOT",
|
|
101
|
+
HL_PERP = "HL-PERP",
|
|
92
102
|
STONFI = "STONFI",
|
|
93
103
|
STONFI_V2 = "STONFI-V2",
|
|
94
104
|
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) {
|
|
@@ -160,6 +161,11 @@ var DEX_ID;
|
|
|
160
161
|
DEX_ID["UNISWAP_V4"] = "UNISWAP-V4";
|
|
161
162
|
DEX_ID["UP_V2"] = "UP-V2";
|
|
162
163
|
DEX_ID["UP_V3"] = "UP-V3";
|
|
164
|
+
DEX_ID["RAMSES_V3"] = "RAMSES-V3";
|
|
165
|
+
DEX_ID["RAMSES_V2"] = "RAMSES-V2";
|
|
166
|
+
DEX_ID["RAMSES_DLMM"] = "RAMSES-DLMM";
|
|
167
|
+
DEX_ID["GIGA_V3"] = "GIGA-V3";
|
|
168
|
+
DEX_ID["GIGA_V2"] = "GIGA-V2";
|
|
163
169
|
DEX_ID["MOMENTUM_CLMM"] = "MOMENTUM-CLMM";
|
|
164
170
|
DEX_ID["CETUS_CLMM"] = "CETUS-CLMM";
|
|
165
171
|
DEX_ID["BLUEFIN_CLMM"] = "BLUEFIN-CLMM";
|
|
@@ -174,6 +180,10 @@ var DEX_ID;
|
|
|
174
180
|
DEX_ID["DYOR_CLMM"] = "DYOR-CLMM";
|
|
175
181
|
DEX_ID["OKIE_AMM"] = "OKIE-AMM";
|
|
176
182
|
DEX_ID["OKIE_CLMM"] = "OKIE-CLMM";
|
|
183
|
+
DEX_ID["PRJX_CLMM"] = "PRJX-CLMM";
|
|
184
|
+
DEX_ID["PRJX_AMM"] = "PRJX-AMM";
|
|
185
|
+
DEX_ID["HL_SPOT"] = "HL-SPOT";
|
|
186
|
+
DEX_ID["HL_PERP"] = "HL-PERP";
|
|
177
187
|
DEX_ID["STONFI"] = "STONFI";
|
|
178
188
|
DEX_ID["STONFI_V2"] = "STONFI-V2";
|
|
179
189
|
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
|