@gearbox-protocol/sdk 9.8.0 → 9.8.2
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.
|
@@ -22,7 +22,7 @@ __export(tokenData_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(tokenData_exports);
|
|
24
24
|
var import_endpoint = require("../core/endpoint.js");
|
|
25
|
-
const
|
|
25
|
+
const HUMAN_READABLE_TITLES = {
|
|
26
26
|
USDC_e: "USDC.e",
|
|
27
27
|
dUSDC_eV3: "dUSDC.eV3",
|
|
28
28
|
sdUSDC_eV3: "sdUSDC.eV3",
|
|
@@ -42,13 +42,15 @@ const HUMAN_READABLE_SYMBOLS = {
|
|
|
42
42
|
PT_uptBTC_14AUG2025: "pt.uptBTC(14.08.25)",
|
|
43
43
|
PT_sUSDX_1SEP2025: "pt.sUSDX(1.09.25)",
|
|
44
44
|
PT_sUSDf_25SEP2025: "pt.sUSDf(25.09.25)",
|
|
45
|
+
["PT-sUSDf-29JAN2026"]: "pt.sUSDf(29.01.26)",
|
|
45
46
|
PT_USDf_29JAN2026: "pt.USDf(29.01.26)",
|
|
46
47
|
stkcvxllamathena_v3_1: "stkcvxllamathena",
|
|
47
48
|
stkcvxRLUSDUSDC_v3_1: "stkcvxRLUSDUSDC",
|
|
48
49
|
"PT-wstUSR-25SEP2025": "pt.wstUSR(25.09.25)",
|
|
49
50
|
"PT-yUSD-27NOV2025": "pt.yUSD(27.11.25)",
|
|
50
51
|
"PT-pUSDe-16OCT2025": "pt.pUSDe(16.10.25)",
|
|
51
|
-
"0xab7d50fc2486a1ac06516e2ece9dadc95ba8cd20": "cp0xLRT\xA0\u2192\xA0wstETH"
|
|
52
|
+
"0xab7d50fc2486a1ac06516e2ece9dadc95ba8cd20": "cp0xLRT\xA0\u2192\xA0wstETH",
|
|
53
|
+
"0x6252467c2fefb61cb55180282943139baeea36c5": "cp0xLRT\xA0\u2192\xA0wstETH"
|
|
52
54
|
};
|
|
53
55
|
class TokenData {
|
|
54
56
|
address;
|
|
@@ -60,7 +62,7 @@ class TokenData {
|
|
|
60
62
|
constructor(payload) {
|
|
61
63
|
const address = payload.addr.toLowerCase();
|
|
62
64
|
this.address = address;
|
|
63
|
-
this.title = payload.title ||
|
|
65
|
+
this.title = payload.title || HUMAN_READABLE_TITLES[payload.symbol] || HUMAN_READABLE_TITLES[address] || payload.symbol;
|
|
64
66
|
this.symbol = payload.symbol;
|
|
65
67
|
this.name = payload.name;
|
|
66
68
|
this.decimals = payload.decimals;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GearboxBackendApi } from "../core/endpoint.js";
|
|
2
|
-
const
|
|
2
|
+
const HUMAN_READABLE_TITLES = {
|
|
3
3
|
USDC_e: "USDC.e",
|
|
4
4
|
dUSDC_eV3: "dUSDC.eV3",
|
|
5
5
|
sdUSDC_eV3: "sdUSDC.eV3",
|
|
@@ -19,13 +19,15 @@ const HUMAN_READABLE_SYMBOLS = {
|
|
|
19
19
|
PT_uptBTC_14AUG2025: "pt.uptBTC(14.08.25)",
|
|
20
20
|
PT_sUSDX_1SEP2025: "pt.sUSDX(1.09.25)",
|
|
21
21
|
PT_sUSDf_25SEP2025: "pt.sUSDf(25.09.25)",
|
|
22
|
+
["PT-sUSDf-29JAN2026"]: "pt.sUSDf(29.01.26)",
|
|
22
23
|
PT_USDf_29JAN2026: "pt.USDf(29.01.26)",
|
|
23
24
|
stkcvxllamathena_v3_1: "stkcvxllamathena",
|
|
24
25
|
stkcvxRLUSDUSDC_v3_1: "stkcvxRLUSDUSDC",
|
|
25
26
|
"PT-wstUSR-25SEP2025": "pt.wstUSR(25.09.25)",
|
|
26
27
|
"PT-yUSD-27NOV2025": "pt.yUSD(27.11.25)",
|
|
27
28
|
"PT-pUSDe-16OCT2025": "pt.pUSDe(16.10.25)",
|
|
28
|
-
"0xab7d50fc2486a1ac06516e2ece9dadc95ba8cd20": "cp0xLRT\xA0\u2192\xA0wstETH"
|
|
29
|
+
"0xab7d50fc2486a1ac06516e2ece9dadc95ba8cd20": "cp0xLRT\xA0\u2192\xA0wstETH",
|
|
30
|
+
"0x6252467c2fefb61cb55180282943139baeea36c5": "cp0xLRT\xA0\u2192\xA0wstETH"
|
|
29
31
|
};
|
|
30
32
|
class TokenData {
|
|
31
33
|
address;
|
|
@@ -37,7 +39,7 @@ class TokenData {
|
|
|
37
39
|
constructor(payload) {
|
|
38
40
|
const address = payload.addr.toLowerCase();
|
|
39
41
|
this.address = address;
|
|
40
|
-
this.title = payload.title ||
|
|
42
|
+
this.title = payload.title || HUMAN_READABLE_TITLES[payload.symbol] || HUMAN_READABLE_TITLES[address] || payload.symbol;
|
|
41
43
|
this.symbol = payload.symbol;
|
|
42
44
|
this.name = payload.name;
|
|
43
45
|
this.decimals = payload.decimals;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "9.8.
|
|
3
|
+
"version": "9.8.2",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/cjs/sdk/index.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"test": "vitest",
|
|
48
48
|
"prepare": "husky",
|
|
49
49
|
"check": "biome check --write",
|
|
50
|
-
"check:ci": "biome check",
|
|
50
|
+
"check:ci": "biome check --diagnostic-level=error",
|
|
51
51
|
"typecheck:ci": "tsc --noEmit"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|