@drift-labs/common 1.0.39 → 1.0.40
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.
|
@@ -6,7 +6,9 @@ export declare const CBBTC_SPOT_MARKET_INDEX = 27;
|
|
|
6
6
|
export declare const DEFAULT_MAX_MARKET_LEVERAGE = 10;
|
|
7
7
|
/**
|
|
8
8
|
* Low-activity perp markets to hide from the UI.
|
|
9
|
-
*
|
|
9
|
+
* Key = perp market index, Value = Unix timestamp (seconds) after which the market is hidden.
|
|
10
|
+
* Before the timestamp: market is visible but a warning banner is shown.
|
|
11
|
+
* After the timestamp: market is hidden from dropdowns (unless user has positions/orders/unsettled PnL).
|
|
10
12
|
* Direct URL navigation (e.g. /TIA-PERP) is unaffected.
|
|
11
13
|
*/
|
|
12
|
-
export declare const HIDDEN_PERP_MARKET_INDEXES:
|
|
14
|
+
export declare const HIDDEN_PERP_MARKET_INDEXES: ReadonlyMap<number, number>;
|
package/lib/constants/markets.js
CHANGED
|
@@ -9,30 +9,32 @@ exports.CBBTC_SPOT_MARKET_INDEX = 27;
|
|
|
9
9
|
exports.DEFAULT_MAX_MARKET_LEVERAGE = 10;
|
|
10
10
|
/**
|
|
11
11
|
* Low-activity perp markets to hide from the UI.
|
|
12
|
-
*
|
|
12
|
+
* Key = perp market index, Value = Unix timestamp (seconds) after which the market is hidden.
|
|
13
|
+
* Before the timestamp: market is visible but a warning banner is shown.
|
|
14
|
+
* After the timestamp: market is hidden from dropdowns (unless user has positions/orders/unsettled PnL).
|
|
13
15
|
* Direct URL navigation (e.g. /TIA-PERP) is unaffected.
|
|
14
16
|
*/
|
|
15
|
-
exports.HIDDEN_PERP_MARKET_INDEXES = new
|
|
16
|
-
5, // POL
|
|
17
|
-
10, // 1MPEPE
|
|
18
|
-
11, // OP
|
|
19
|
-
14, // HNT
|
|
20
|
-
19, // TIA
|
|
21
|
-
21, // SEI
|
|
22
|
-
27, // W
|
|
23
|
-
31, // CLOUD
|
|
24
|
-
34, // POPCAT
|
|
25
|
-
42, // TON
|
|
26
|
-
61, // ME
|
|
27
|
-
62, // PENGU
|
|
28
|
-
64, // TRUMP
|
|
29
|
-
66, // BERA
|
|
30
|
-
69, // KAITO
|
|
31
|
-
70, // IP
|
|
32
|
-
72, // ADA
|
|
33
|
-
77, // XPL
|
|
34
|
-
78, // 2Z
|
|
35
|
-
80, // MNT
|
|
36
|
-
82, // MET
|
|
17
|
+
exports.HIDDEN_PERP_MARKET_INDEXES = new Map([
|
|
18
|
+
[5, 1772625600], // POL — 4 Mar 2026, 12:00 UTC
|
|
19
|
+
[10, 1772625600], // 1MPEPE — 4 Mar 2026, 12:00 UTC
|
|
20
|
+
[11, 1772625600], // OP — 4 Mar 2026, 12:00 UTC
|
|
21
|
+
[14, 1772625600], // HNT — 4 Mar 2026, 12:00 UTC
|
|
22
|
+
[19, 1772625600], // TIA — 4 Mar 2026, 12:00 UTC
|
|
23
|
+
[21, 1772625600], // SEI — 4 Mar 2026, 12:00 UTC
|
|
24
|
+
[27, 1772625600], // W — 4 Mar 2026, 12:00 UTC
|
|
25
|
+
[31, 1772625600], // CLOUD — 4 Mar 2026, 12:00 UTC
|
|
26
|
+
[34, 1772625600], // POPCAT — 4 Mar 2026, 12:00 UTC
|
|
27
|
+
[42, 1772625600], // TON — 4 Mar 2026, 12:00 UTC
|
|
28
|
+
[61, 1772625600], // ME — 4 Mar 2026, 12:00 UTC
|
|
29
|
+
[62, 1772625600], // PENGU — 4 Mar 2026, 12:00 UTC
|
|
30
|
+
[64, 1772625600], // TRUMP — 4 Mar 2026, 12:00 UTC
|
|
31
|
+
[66, 1772625600], // BERA — 4 Mar 2026, 12:00 UTC
|
|
32
|
+
[69, 1772625600], // KAITO — 4 Mar 2026, 12:00 UTC
|
|
33
|
+
[70, 1772625600], // IP — 4 Mar 2026, 12:00 UTC
|
|
34
|
+
[72, 1772625600], // ADA — 4 Mar 2026, 12:00 UTC
|
|
35
|
+
[77, 1772625600], // XPL — 4 Mar 2026, 12:00 UTC
|
|
36
|
+
[78, 1772625600], // 2Z — 4 Mar 2026, 12:00 UTC
|
|
37
|
+
[80, 1772625600], // MNT — 4 Mar 2026, 12:00 UTC
|
|
38
|
+
[82, 1772625600], // MET — 4 Mar 2026, 12:00 UTC
|
|
37
39
|
]);
|
|
38
40
|
//# sourceMappingURL=markets.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markets.js","sourceRoot":"","sources":["../../src/constants/markets.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAC3B,QAAA,qBAAqB,GAAG,CAAC,CAAC;AAC1B,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAC3B,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAC3B,QAAA,uBAAuB,GAAG,EAAE,CAAC;AAE7B,QAAA,2BAA2B,GAAG,EAAE,CAAC;AAE9C
|
|
1
|
+
{"version":3,"file":"markets.js","sourceRoot":"","sources":["../../src/constants/markets.ts"],"names":[],"mappings":";;;AAAa,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAC3B,QAAA,qBAAqB,GAAG,CAAC,CAAC;AAC1B,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAC3B,QAAA,sBAAsB,GAAG,CAAC,CAAC;AAC3B,QAAA,uBAAuB,GAAG,EAAE,CAAC;AAE7B,QAAA,2BAA2B,GAAG,EAAE,CAAC;AAE9C;;;;;;GAMG;AACU,QAAA,0BAA0B,GAAgC,IAAI,GAAG,CAAC;IAC9E,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,8BAA8B;IAC/C,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,iCAAiC;IACnD,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,6BAA6B;IAC/C,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,8BAA8B;IAChD,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,8BAA8B;IAChD,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,8BAA8B;IAChD,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,4BAA4B;IAC9C,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,gCAAgC;IAClD,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,iCAAiC;IACnD,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,8BAA8B;IAChD,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,6BAA6B;IAC/C,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,gCAAgC;IAClD,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,gCAAgC;IAClD,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,+BAA+B;IACjD,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,gCAAgC;IAClD,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,6BAA6B;IAC/C,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,8BAA8B;IAChD,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,8BAA8B;IAChD,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,6BAA6B;IAC/C,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,8BAA8B;IAChD,CAAC,EAAE,EAAE,UAAU,CAAC,EAAE,8BAA8B;CAChD,CAAC,CAAC","sourcesContent":["export const USDC_SPOT_MARKET_INDEX = 0;\nexport const SOL_SPOT_MARKET_INDEX = 1;\nexport const WBTC_SPOT_MARKET_INDEX = 3;\nexport const WETH_SPOT_MARKET_INDEX = 4;\nexport const CBBTC_SPOT_MARKET_INDEX = 27;\n\nexport const DEFAULT_MAX_MARKET_LEVERAGE = 10;\n\n/**\n * Low-activity perp markets to hide from the UI.\n * Key = perp market index, Value = Unix timestamp (seconds) after which the market is hidden.\n * Before the timestamp: market is visible but a warning banner is shown.\n * After the timestamp: market is hidden from dropdowns (unless user has positions/orders/unsettled PnL).\n * Direct URL navigation (e.g. /TIA-PERP) is unaffected.\n */\nexport const HIDDEN_PERP_MARKET_INDEXES: ReadonlyMap<number, number> = new Map([\n\t[5, 1772625600], // POL — 4 Mar 2026, 12:00 UTC\n\t[10, 1772625600], // 1MPEPE — 4 Mar 2026, 12:00 UTC\n\t[11, 1772625600], // OP — 4 Mar 2026, 12:00 UTC\n\t[14, 1772625600], // HNT — 4 Mar 2026, 12:00 UTC\n\t[19, 1772625600], // TIA — 4 Mar 2026, 12:00 UTC\n\t[21, 1772625600], // SEI — 4 Mar 2026, 12:00 UTC\n\t[27, 1772625600], // W — 4 Mar 2026, 12:00 UTC\n\t[31, 1772625600], // CLOUD — 4 Mar 2026, 12:00 UTC\n\t[34, 1772625600], // POPCAT — 4 Mar 2026, 12:00 UTC\n\t[42, 1772625600], // TON — 4 Mar 2026, 12:00 UTC\n\t[61, 1772625600], // ME — 4 Mar 2026, 12:00 UTC\n\t[62, 1772625600], // PENGU — 4 Mar 2026, 12:00 UTC\n\t[64, 1772625600], // TRUMP — 4 Mar 2026, 12:00 UTC\n\t[66, 1772625600], // BERA — 4 Mar 2026, 12:00 UTC\n\t[69, 1772625600], // KAITO — 4 Mar 2026, 12:00 UTC\n\t[70, 1772625600], // IP — 4 Mar 2026, 12:00 UTC\n\t[72, 1772625600], // ADA — 4 Mar 2026, 12:00 UTC\n\t[77, 1772625600], // XPL — 4 Mar 2026, 12:00 UTC\n\t[78, 1772625600], // 2Z — 4 Mar 2026, 12:00 UTC\n\t[80, 1772625600], // MNT — 4 Mar 2026, 12:00 UTC\n\t[82, 1772625600], // MET — 4 Mar 2026, 12:00 UTC\n]);\n"]}
|