@gearbox-protocol/sdk 9.12.9 → 9.12.11
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/sdk/chain/chains.js +3 -3
- package/dist/cjs/sdk/market/pricefeeds/AbstractLPPriceFeed.js +7 -2
- package/dist/cjs/sdk/market/pricefeeds/index.js +2 -0
- package/dist/esm/sdk/chain/chains.js +3 -3
- package/dist/esm/sdk/market/pricefeeds/AbstractLPPriceFeed.js +5 -1
- package/dist/esm/sdk/market/pricefeeds/index.js +1 -0
- package/dist/types/sdk/market/pricefeeds/AbstractLPPriceFeed.d.ts +1 -0
- package/dist/types/sdk/market/pricefeeds/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -74,11 +74,11 @@ const chains = {
|
|
|
74
74
|
"0xc168343c791d56dd1da4b4b8b0cc1c1ec1a16e6b": "cp0x",
|
|
75
75
|
"0x3b56538833fc02f4f0e75609390f26ded0c32e42": "Re7",
|
|
76
76
|
"0x7a133fbd01736fd076158307c9476cc3877f1af5": "Invariant Group",
|
|
77
|
-
"0x09d8305F49374AEA6A78aF6C996df2913e8f3b19": "Tulipa"
|
|
77
|
+
"0x09d8305F49374AEA6A78aF6C996df2913e8f3b19": "Tulipa",
|
|
78
|
+
"0x1b265b97eb169fb6668e3258007c3b0242c7bdbe": "kpk"
|
|
78
79
|
},
|
|
79
80
|
testMarketConfigurators: {
|
|
80
|
-
"0x99df7330bf42d596af2e9d9836d4fc2077c574aa": "M11 Credit"
|
|
81
|
-
"0x1b265b97eb169fb6668e3258007c3b0242c7bdbe": "kpk"
|
|
81
|
+
"0x99df7330bf42d596af2e9d9836d4fc2077c574aa": "M11 Credit"
|
|
82
82
|
},
|
|
83
83
|
isPublic: true,
|
|
84
84
|
wellKnownToken: {
|
|
@@ -18,7 +18,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
var AbstractLPPriceFeed_exports = {};
|
|
20
20
|
__export(AbstractLPPriceFeed_exports, {
|
|
21
|
-
AbstractLPPriceFeedContract: () => AbstractLPPriceFeedContract
|
|
21
|
+
AbstractLPPriceFeedContract: () => AbstractLPPriceFeedContract,
|
|
22
|
+
isLPPriceFeed: () => isLPPriceFeed
|
|
22
23
|
});
|
|
23
24
|
module.exports = __toCommonJS(AbstractLPPriceFeed_exports);
|
|
24
25
|
var import_viem = require("viem");
|
|
@@ -114,7 +115,11 @@ class AbstractLPPriceFeedContract extends import_AbstractPriceFeed.AbstractPrice
|
|
|
114
115
|
};
|
|
115
116
|
}
|
|
116
117
|
}
|
|
118
|
+
function isLPPriceFeed(priceFeed) {
|
|
119
|
+
return priceFeed instanceof AbstractLPPriceFeedContract;
|
|
120
|
+
}
|
|
117
121
|
// Annotate the CommonJS export names for ESM import in node:
|
|
118
122
|
0 && (module.exports = {
|
|
119
|
-
AbstractLPPriceFeedContract
|
|
123
|
+
AbstractLPPriceFeedContract,
|
|
124
|
+
isLPPriceFeed
|
|
120
125
|
});
|
|
@@ -15,6 +15,7 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
|
|
|
15
15
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
16
|
var pricefeeds_exports = {};
|
|
17
17
|
module.exports = __toCommonJS(pricefeeds_exports);
|
|
18
|
+
__reExport(pricefeeds_exports, require("./AbstractLPPriceFeed.js"), module.exports);
|
|
18
19
|
__reExport(pricefeeds_exports, require("./AbstractPriceFeed.js"), module.exports);
|
|
19
20
|
__reExport(pricefeeds_exports, require("./BalancerStablePriceFeed.js"), module.exports);
|
|
20
21
|
__reExport(pricefeeds_exports, require("./BalancerWeightedPriceFeed.js"), module.exports);
|
|
@@ -39,6 +40,7 @@ __reExport(pricefeeds_exports, require("./YearnPriceFeed.js"), module.exports);
|
|
|
39
40
|
__reExport(pricefeeds_exports, require("./ZeroPriceFeed.js"), module.exports);
|
|
40
41
|
// Annotate the CommonJS export names for ESM import in node:
|
|
41
42
|
0 && (module.exports = {
|
|
43
|
+
...require("./AbstractLPPriceFeed.js"),
|
|
42
44
|
...require("./AbstractPriceFeed.js"),
|
|
43
45
|
...require("./BalancerStablePriceFeed.js"),
|
|
44
46
|
...require("./BalancerWeightedPriceFeed.js"),
|
|
@@ -59,11 +59,11 @@ const chains = {
|
|
|
59
59
|
"0xc168343c791d56dd1da4b4b8b0cc1c1ec1a16e6b": "cp0x",
|
|
60
60
|
"0x3b56538833fc02f4f0e75609390f26ded0c32e42": "Re7",
|
|
61
61
|
"0x7a133fbd01736fd076158307c9476cc3877f1af5": "Invariant Group",
|
|
62
|
-
"0x09d8305F49374AEA6A78aF6C996df2913e8f3b19": "Tulipa"
|
|
62
|
+
"0x09d8305F49374AEA6A78aF6C996df2913e8f3b19": "Tulipa",
|
|
63
|
+
"0x1b265b97eb169fb6668e3258007c3b0242c7bdbe": "kpk"
|
|
63
64
|
},
|
|
64
65
|
testMarketConfigurators: {
|
|
65
|
-
"0x99df7330bf42d596af2e9d9836d4fc2077c574aa": "M11 Credit"
|
|
66
|
-
"0x1b265b97eb169fb6668e3258007c3b0242c7bdbe": "kpk"
|
|
66
|
+
"0x99df7330bf42d596af2e9d9836d4fc2077c574aa": "M11 Credit"
|
|
67
67
|
},
|
|
68
68
|
isPublic: true,
|
|
69
69
|
wellKnownToken: {
|
|
@@ -93,6 +93,10 @@ class AbstractLPPriceFeedContract extends AbstractPriceFeedContract {
|
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
+
function isLPPriceFeed(priceFeed) {
|
|
97
|
+
return priceFeed instanceof AbstractLPPriceFeedContract;
|
|
98
|
+
}
|
|
96
99
|
export {
|
|
97
|
-
AbstractLPPriceFeedContract
|
|
100
|
+
AbstractLPPriceFeedContract,
|
|
101
|
+
isLPPriceFeed
|
|
98
102
|
};
|
|
@@ -18,3 +18,4 @@ export declare abstract class AbstractLPPriceFeedContract<const abi extends Abi
|
|
|
18
18
|
static toLowerBound(value: bigint): bigint;
|
|
19
19
|
stateHuman(raw?: boolean): UnionOmit<LPPriceFeedStateHuman, "stalenessPeriod">;
|
|
20
20
|
}
|
|
21
|
+
export declare function isLPPriceFeed(priceFeed: unknown): priceFeed is AbstractLPPriceFeedContract<any>;
|