@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.
@@ -76,7 +76,7 @@ class EthCallSpy {
76
76
  }
77
77
  this.#detectedCalls.push({ request: data });
78
78
  }
79
- storeResponse(call) {
79
+ storeResponse(_call) {
80
80
  return;
81
81
  }
82
82
  #shouldStore(data) {
@@ -188,7 +188,7 @@ class AbstractMigrateCreditAccountsService extends import_base.SDKConstruct {
188
188
  target.underlyingToken,
189
189
  source.borrowedAmountPlusInterestAndFees
190
190
  );
191
- } catch (e) {
191
+ } catch {
192
192
  return 0n;
193
193
  }
194
194
  };
@@ -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
- ["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"
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;
@@ -53,7 +53,7 @@ class EthCallSpy {
53
53
  }
54
54
  this.#detectedCalls.push({ request: data });
55
55
  }
56
- storeResponse(call) {
56
+ storeResponse(_call) {
57
57
  return;
58
58
  }
59
59
  #shouldStore(data) {
@@ -168,7 +168,7 @@ class AbstractMigrateCreditAccountsService extends SDKConstruct {
168
168
  target.underlyingToken,
169
169
  source.borrowedAmountPlusInterestAndFees
170
170
  );
171
- } catch (e) {
171
+ } catch {
172
172
  return 0n;
173
173
  }
174
174
  };
@@ -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
- ["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"
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(call: RequiredBy<TCall, "response" | "responseHeaders">): void | Promise<void>;
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.0",
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.9.5",
76
+ "pino": "^9.10.0",
77
77
  "pino-pretty": "^13.1.1",
78
78
  "tsup": "^8.5.0",
79
79
  "tsx": "^4.20.5",