@gearbox-protocol/sdk 9.2.1 → 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/chain/chains.js +4 -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/chain/chains.js +4 -1
- 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/dist/types/sdk/chain/chains.d.ts +1 -1
- package/package.json +2 -2
|
@@ -75,7 +75,10 @@ const chains = {
|
|
|
75
75
|
"0x7a133fbd01736fd076158307c9476cc3877f1af5": "Invariant Group",
|
|
76
76
|
"0x09d8305F49374AEA6A78aF6C996df2913e8f3b19": "Tulipa"
|
|
77
77
|
},
|
|
78
|
-
testMarketConfigurators: {
|
|
78
|
+
testMarketConfigurators: {
|
|
79
|
+
"0x99df7330bf42d596af2e9d9836d4fc2077c574aa": "M11 Credit",
|
|
80
|
+
"0x1b265b97eb169fb6668e3258007c3b0242c7bdbe": "kpk"
|
|
81
|
+
},
|
|
79
82
|
isPublic: true,
|
|
80
83
|
wellKnownToken: {
|
|
81
84
|
address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
@@ -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";
|
|
@@ -59,7 +59,10 @@ const chains = {
|
|
|
59
59
|
"0x7a133fbd01736fd076158307c9476cc3877f1af5": "Invariant Group",
|
|
60
60
|
"0x09d8305F49374AEA6A78aF6C996df2913e8f3b19": "Tulipa"
|
|
61
61
|
},
|
|
62
|
-
testMarketConfigurators: {
|
|
62
|
+
testMarketConfigurators: {
|
|
63
|
+
"0x99df7330bf42d596af2e9d9836d4fc2077c574aa": "M11 Credit",
|
|
64
|
+
"0x1b265b97eb169fb6668e3258007c3b0242c7bdbe": "kpk"
|
|
65
|
+
},
|
|
63
66
|
isPublic: true,
|
|
64
67
|
wellKnownToken: {
|
|
65
68
|
address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
|
@@ -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
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Address, Chain } from "viem";
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
|
-
export type Curator = "Chaos Labs" | "K3" | "cp0x" | "Re7" | "Invariant Group" | "Tulipa";
|
|
3
|
+
export type Curator = "Chaos Labs" | "K3" | "cp0x" | "Re7" | "Invariant Group" | "Tulipa" | "M11 Credit" | "kpk";
|
|
4
4
|
export interface GearboxChain extends Chain {
|
|
5
5
|
network: NetworkType;
|
|
6
6
|
defaultMarketConfigurators: Record<Address, Curator>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "9.
|
|
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",
|