@gearbox-protocol/sdk 3.0.0-next.264 → 3.0.0-next.265
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/defiLamaAPY.js +1 -0
- package/lib/core/endpoint.d.ts +1 -0
- package/lib/core/endpoint.js +3 -0
- package/package.json +2 -2
package/lib/apy/defiLamaAPY.js
CHANGED
|
@@ -47,6 +47,7 @@ const NORMAL_TO_LAMA = {
|
|
|
47
47
|
PT_corn_eBTC_27MAR2025: "eb7de368-b460-4638-bde1-50a129109b7b",
|
|
48
48
|
PT_corn_pumpBTC_26DEC2024: "a23e2b97-ff92-4ebf-8c7d-171cad8431ad",
|
|
49
49
|
PT_sUSDe_27MAR2025: "6b28892f-0909-418d-b4bb-3106fff72449",
|
|
50
|
+
scrvUSD: "5fd328af-4203-471b-bd16-1705c726d926",
|
|
50
51
|
},
|
|
51
52
|
Optimism: { rETH: "d4b3c522-6127-4b89-bedf-83641cdcd2eb" },
|
|
52
53
|
Arbitrum: {
|
package/lib/core/endpoint.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare class GearboxBackendApi {
|
|
|
10
10
|
static getNFTMerkleUrl: (network: NetworkType, root: Address) => string;
|
|
11
11
|
static getLeaderboardUrl: (url: string, chainId: number) => string;
|
|
12
12
|
static getReferralUrl: () => string;
|
|
13
|
+
static apyServerAllRewards: (chainId: number) => string;
|
|
13
14
|
}
|
|
14
15
|
interface Options {
|
|
15
16
|
params?: Record<string, string | number>;
|
package/lib/core/endpoint.js
CHANGED
|
@@ -62,6 +62,9 @@ class GearboxBackendApi {
|
|
|
62
62
|
return `${LEADERBOARD_APIS[chainId]}${url}`;
|
|
63
63
|
};
|
|
64
64
|
static getReferralUrl = () => REFERRAL_API;
|
|
65
|
+
static apyServerAllRewards = (chainId) => URLApi.getRelativeUrl("https://testnet.gearbox.foundation/apy-server/api/rewards/all", {
|
|
66
|
+
params: { chain_id: chainId },
|
|
67
|
+
});
|
|
65
68
|
}
|
|
66
69
|
exports.GearboxBackendApi = GearboxBackendApi;
|
|
67
70
|
class URLApi {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gearbox-protocol/sdk",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.265",
|
|
4
4
|
"description": "Gearbox SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"test": "npx mocha -r ts-node/register -r dotenv/config 'src/**/*.spec.ts'"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@gearbox-protocol/sdk-gov": "^2.33.
|
|
31
|
+
"@gearbox-protocol/sdk-gov": "^2.33.2",
|
|
32
32
|
"@wagmi/cli": "^2.1.13",
|
|
33
33
|
"axios": "^1.2.6",
|
|
34
34
|
"decimal.js-light": "^2.5.1",
|