@gearbox-protocol/sdk 9.3.0 → 9.3.1
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/cjs/dev/EthCallSpy.js +1 -1
- package/dist/cjs/sdk/accountMigration/AbstractMigrateCreditAccountsService.js +1 -1
- package/dist/cjs/sdk/market/pricefeeds/AbstractPriceFeed.js +2 -5
- package/dist/cjs/sdk/sdk-legacy/tokens/tokenData.js +4 -4
- package/dist/esm/dev/EthCallSpy.js +1 -1
- package/dist/esm/sdk/accountMigration/AbstractMigrateCreditAccountsService.js +1 -1
- package/dist/esm/sdk/accounts/AbstractCreditAccountsService.js +1 -3
- package/dist/esm/sdk/market/pricefeeds/AbstractPriceFeed.js +2 -5
- package/dist/esm/sdk/sdk-legacy/tokens/tokenData.js +4 -4
- package/dist/types/dev/EthCallSpy.d.ts +1 -1
- package/package.json +2 -2
|
@@ -61,12 +61,9 @@ class AbstractPriceFeedContract extends import_base.BaseContract {
|
|
|
61
61
|
this.#updatable = args.updatable;
|
|
62
62
|
this.#skipCheck = args.skipCheck;
|
|
63
63
|
if (args.underlyingFeeds && args.underlyingStalenessPeriods) {
|
|
64
|
+
const underlyingStalenessPeriods = args.underlyingStalenessPeriods;
|
|
64
65
|
this.#underlyingPriceFeeds = args.underlyingFeeds.map(
|
|
65
|
-
(address, i) => new import_PriceFeedRef.PriceFeedRef(
|
|
66
|
-
this.sdk,
|
|
67
|
-
address,
|
|
68
|
-
args.underlyingStalenessPeriods[i]
|
|
69
|
-
)
|
|
66
|
+
(address, i) => new import_PriceFeedRef.PriceFeedRef(this.sdk, address, underlyingStalenessPeriods[i])
|
|
70
67
|
);
|
|
71
68
|
}
|
|
72
69
|
}
|
|
@@ -45,10 +45,10 @@ const HUMAN_READABLE_SYMBOLS = {
|
|
|
45
45
|
PT_USDf_29JAN2026: "pt.USDf(29.01.26)",
|
|
46
46
|
stkcvxllamathena_v3_1: "stkcvxllamathena",
|
|
47
47
|
stkcvxRLUSDUSDC_v3_1: "stkcvxRLUSDUSDC",
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
"PT-wstUSR-25SEP2025": "pt.wstUSR(25.09.25)",
|
|
49
|
+
"PT-yUSD-27NOV2025": "pt.yUSD(27.11.25)",
|
|
50
|
+
"PT-pUSDe-16OCT2025": "pt.pUSDe(16.10.25)",
|
|
51
|
+
"0xab7d50fc2486a1ac06516e2ece9dadc95ba8cd20": "cp0xLRT\xA0\u2192\xA0wstETH"
|
|
52
52
|
};
|
|
53
53
|
class TokenData {
|
|
54
54
|
address;
|
|
@@ -24,9 +24,7 @@ import {
|
|
|
24
24
|
RAY,
|
|
25
25
|
VERSION_RANGE_310
|
|
26
26
|
} from "../constants/index.js";
|
|
27
|
-
import {
|
|
28
|
-
assetsMap
|
|
29
|
-
} from "../router/index.js";
|
|
27
|
+
import { assetsMap } from "../router/index.js";
|
|
30
28
|
import { AddressMap, childLogger } from "../utils/index.js";
|
|
31
29
|
import { simulateWithPriceUpdates } from "../utils/viem/index.js";
|
|
32
30
|
import { stringifyGetCreditAccountsArgs } from "./utils.js";
|
|
@@ -37,12 +37,9 @@ class AbstractPriceFeedContract extends BaseContract {
|
|
|
37
37
|
this.#updatable = args.updatable;
|
|
38
38
|
this.#skipCheck = args.skipCheck;
|
|
39
39
|
if (args.underlyingFeeds && args.underlyingStalenessPeriods) {
|
|
40
|
+
const underlyingStalenessPeriods = args.underlyingStalenessPeriods;
|
|
40
41
|
this.#underlyingPriceFeeds = args.underlyingFeeds.map(
|
|
41
|
-
(address, i) => new PriceFeedRef(
|
|
42
|
-
this.sdk,
|
|
43
|
-
address,
|
|
44
|
-
args.underlyingStalenessPeriods[i]
|
|
45
|
-
)
|
|
42
|
+
(address, i) => new PriceFeedRef(this.sdk, address, underlyingStalenessPeriods[i])
|
|
46
43
|
);
|
|
47
44
|
}
|
|
48
45
|
}
|
|
@@ -22,10 +22,10 @@ const HUMAN_READABLE_SYMBOLS = {
|
|
|
22
22
|
PT_USDf_29JAN2026: "pt.USDf(29.01.26)",
|
|
23
23
|
stkcvxllamathena_v3_1: "stkcvxllamathena",
|
|
24
24
|
stkcvxRLUSDUSDC_v3_1: "stkcvxRLUSDUSDC",
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
"PT-wstUSR-25SEP2025": "pt.wstUSR(25.09.25)",
|
|
26
|
+
"PT-yUSD-27NOV2025": "pt.yUSD(27.11.25)",
|
|
27
|
+
"PT-pUSDe-16OCT2025": "pt.pUSDe(16.10.25)",
|
|
28
|
+
"0xab7d50fc2486a1ac06516e2ece9dadc95ba8cd20": "cp0xLRT\xA0\u2192\xA0wstETH"
|
|
29
29
|
};
|
|
30
30
|
class TokenData {
|
|
31
31
|
address;
|
|
@@ -23,5 +23,5 @@ export declare class EthCallSpy<TCall extends DetectedCall = DetectedCall> {
|
|
|
23
23
|
get detectedCalls(): TCall[];
|
|
24
24
|
get detectedBlock(): bigint;
|
|
25
25
|
protected storeRequest(blockNumber: bigint, data: EthCallRequest): void;
|
|
26
|
-
protected storeResponse(
|
|
26
|
+
protected storeResponse(_call: RequiredBy<TCall, "response" | "responseHeaders">): void | Promise<void>;
|
|
27
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.1",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/cjs/sdk/index.js",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"cross-spawn": "^7.0.6",
|
|
74
74
|
"husky": "^9.1.7",
|
|
75
75
|
"lint-staged": "^16.1.6",
|
|
76
|
-
"pino": "^9.
|
|
76
|
+
"pino": "^9.10.0",
|
|
77
77
|
"pino-pretty": "^13.1.1",
|
|
78
78
|
"tsup": "^8.5.0",
|
|
79
79
|
"tsx": "^4.20.5",
|