@gearbox-protocol/sdk 3.0.0-next.295 → 3.0.0-next.296
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/lib/apy/index.d.ts +2 -2
- package/lib/apy/index.js +2 -0
- package/lib/core/protocols.d.ts +1 -1
- package/lib/core/protocols.js +4 -0
- package/package.json +1 -1
package/lib/apy/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LPTokens, PartialRecord, SupportedToken } from "@gearbox-protocol/sdk-gov";
|
|
2
|
-
type ExtraFarmTokens = Extract<SupportedToken, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "weETH" | "ezETH" | "sfrxETH" | "USDe" | "rsETH" | "rswETH" | "pufETH" | "pzETH" | "rstETH" | "steakLRT" | "amphrETH" | "LBTC" | "Re7LRT" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "eBTC" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "pumpBTC" | "PT_sUSDe_27MAR2025" | "DVstETH" | "beraSTONE" | "PT_sUSDe_29MAY2025" | "tETH" | "PT_beraSTONE_10APR2025" | "stS" | "csUSDL">;
|
|
3
|
-
type ExtraTokensWithAPY = Extract<ExtraFarmTokens, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "sfrxETH" | "pzETH" | "ezETH" | "Re7LRT" | "rsETH" | "weETH" | "rswETH" | "rstETH" | "steakLRT" | "amphrETH" | "pufETH" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "PT_sUSDe_27MAR2025" | "DVstETH" | "PT_sUSDe_29MAY2025" | "tETH" | "PT_beraSTONE_10APR2025" | "stS" | "csUSDL">;
|
|
2
|
+
type ExtraFarmTokens = Extract<SupportedToken, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "weETH" | "ezETH" | "sfrxETH" | "USDe" | "rsETH" | "rswETH" | "pufETH" | "pzETH" | "rstETH" | "steakLRT" | "amphrETH" | "LBTC" | "Re7LRT" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "eBTC" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "pumpBTC" | "PT_sUSDe_27MAR2025" | "DVstETH" | "beraSTONE" | "PT_sUSDe_29MAY2025" | "tETH" | "PT_beraSTONE_10APR2025" | "stS" | "csUSDL" | "scUSD">;
|
|
3
|
+
type ExtraTokensWithAPY = Extract<ExtraFarmTokens, "STETH" | "rETH" | "osETH" | "cbETH" | "wstETH" | "sfrxETH" | "pzETH" | "ezETH" | "Re7LRT" | "rsETH" | "weETH" | "rswETH" | "rstETH" | "steakLRT" | "amphrETH" | "pufETH" | "PT_ezETH_26DEC2024" | "PT_eETH_26DEC2024" | "PT_sUSDe_26DEC2024" | "PT_eBTC_26DEC2024" | "PT_LBTC_27MAR2025" | "PT_cornLBTC_26DEC2024" | "PT_corn_eBTC_27MAR2025" | "PT_corn_pumpBTC_26DEC2024" | "PT_sUSDe_27MAR2025" | "DVstETH" | "PT_sUSDe_29MAY2025" | "tETH" | "PT_beraSTONE_10APR2025" | "stS" | "csUSDL" | "scUSD">;
|
|
4
4
|
type LRTAndLSTTokens = Exclude<ExtraFarmTokens, "USDe">;
|
|
5
5
|
export declare const isExtraFarmToken: (t: unknown) => t is ExtraFarmTokens;
|
|
6
6
|
export declare const isLRT_LSTToken: (t: unknown) => t is LRTAndLSTTokens;
|
package/lib/apy/index.js
CHANGED
|
@@ -39,6 +39,7 @@ const EXTRA_FARM_TOKENS = {
|
|
|
39
39
|
PT_beraSTONE_10APR2025: true,
|
|
40
40
|
stS: true,
|
|
41
41
|
csUSDL: true,
|
|
42
|
+
scUSD: true,
|
|
42
43
|
};
|
|
43
44
|
const isExtraFarmToken = (t) => {
|
|
44
45
|
if (typeof t !== "string")
|
|
@@ -78,6 +79,7 @@ const EXTRA_TOKENS_WITH_APY = {
|
|
|
78
79
|
PT_beraSTONE_10APR2025: true,
|
|
79
80
|
stS: true,
|
|
80
81
|
csUSDL: true,
|
|
82
|
+
scUSD: true,
|
|
81
83
|
};
|
|
82
84
|
const isExtraTokenWithAPY = (t) => {
|
|
83
85
|
if (typeof t !== "string")
|
package/lib/core/protocols.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ interface ProtocolData {
|
|
|
3
3
|
name: string;
|
|
4
4
|
icon: string;
|
|
5
5
|
}
|
|
6
|
-
export type ExtendedProtocols = keyof typeof Protocols | "Stakewise" | "Etherfi" | "Rocketpool" | "Renzo" | "Coinbase" | "Kelp" | "Swell" | "Puffer" | "Mellow" | "Lombard" | "pumpBTC" | "Stakestone" | "Treehouse" | "Coinshift";
|
|
6
|
+
export type ExtendedProtocols = keyof typeof Protocols | "Stakewise" | "Etherfi" | "Rocketpool" | "Renzo" | "Coinbase" | "Kelp" | "Swell" | "Puffer" | "Mellow" | "Lombard" | "pumpBTC" | "Stakestone" | "Treehouse" | "Coinshift" | "Rings";
|
|
7
7
|
export declare const isExtendedProtocol: (t: unknown) => t is ExtendedProtocols;
|
|
8
8
|
export declare function getProtocolData(t: string): ProtocolData;
|
|
9
9
|
export {};
|
package/lib/core/protocols.js
CHANGED
|
@@ -166,6 +166,10 @@ const PROTOCOL_DATA = {
|
|
|
166
166
|
name: "coinshift",
|
|
167
167
|
icon: "/protocols/coinshift.svg",
|
|
168
168
|
},
|
|
169
|
+
Rings: {
|
|
170
|
+
name: "rings",
|
|
171
|
+
icon: "/protocols/rings.svg",
|
|
172
|
+
},
|
|
169
173
|
};
|
|
170
174
|
const isExtendedProtocol = (t) => typeof t === "string" && !!PROTOCOL_DATA[t];
|
|
171
175
|
exports.isExtendedProtocol = isExtendedProtocol;
|