@gearbox-protocol/sdk 12.3.13 → 12.3.15

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.
@@ -38,7 +38,7 @@ var import_sdk_legacy = require("../sdk-legacy/index.js");
38
38
  var import_utils = require("../utils/index.js");
39
39
  var import_viem2 = require("../utils/viem/index.js");
40
40
  const COMPRESSORS = {
41
- [import_chains.chains.Mainnet.id]: "0xfB79b6713fe214B8748ED7b0db1f93E4f1aC9d29",
41
+ [import_chains.chains.Mainnet.id]: "0x36F3d0Bb73CBC2E94fE24dF0f26a689409cF9023",
42
42
  [import_chains.chains.Monad.id]: "0x36F3d0Bb73CBC2E94fE24dF0f26a689409cF9023"
43
43
  };
44
44
  function getWithdrawalCompressorAddress(chainId) {
@@ -114,15 +114,9 @@ class GearboxBackendApi {
114
114
  return `${LEADERBOARD_APIS[chainId]}${url}`;
115
115
  };
116
116
  static getReferralUrl = () => REFERRAL_API;
117
- static apyServerAllRewards = (chainId) => URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/tokens/all", {
118
- params: { chain_id: chainId }
119
- });
120
- static apyServerGearAPY = (chainId) => URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/gear-apy", {
121
- params: { chain_id: chainId }
122
- });
123
- static apyServerAllPoolRewards = (chainId) => URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/pools/all", {
124
- params: { chain_id: chainId }
125
- });
117
+ static apyAllRewards = () => URLApi.getRelativeUrl(
118
+ "https://state-cache.gearbox.foundation/apy-server/latest.json"
119
+ );
126
120
  }
127
121
  class URLApi {
128
122
  static getRelativeUrl = (url, options) => {
@@ -28,7 +28,7 @@ import { BigIntMath } from "../sdk-legacy/index.js";
28
28
  import { AddressMap } from "../utils/index.js";
29
29
  import { simulateWithPriceUpdates } from "../utils/viem/index.js";
30
30
  const COMPRESSORS = {
31
- [chains.Mainnet.id]: "0xfB79b6713fe214B8748ED7b0db1f93E4f1aC9d29",
31
+ [chains.Mainnet.id]: "0x36F3d0Bb73CBC2E94fE24dF0f26a689409cF9023",
32
32
  [chains.Monad.id]: "0x36F3d0Bb73CBC2E94fE24dF0f26a689409cF9023"
33
33
  };
34
34
  function getWithdrawalCompressorAddress(chainId) {
@@ -85,15 +85,9 @@ class GearboxBackendApi {
85
85
  return `${LEADERBOARD_APIS[chainId]}${url}`;
86
86
  };
87
87
  static getReferralUrl = () => REFERRAL_API;
88
- static apyServerAllRewards = (chainId) => URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/tokens/all", {
89
- params: { chain_id: chainId }
90
- });
91
- static apyServerGearAPY = (chainId) => URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/gear-apy", {
92
- params: { chain_id: chainId }
93
- });
94
- static apyServerAllPoolRewards = (chainId) => URLApi.getRelativeUrl("https://apy-server.fly.dev/api/rewards/pools/all", {
95
- params: { chain_id: chainId }
96
- });
88
+ static apyAllRewards = () => URLApi.getRelativeUrl(
89
+ "https://state-cache.gearbox.foundation/apy-server/latest.json"
90
+ );
97
91
  }
98
92
  class URLApi {
99
93
  static getRelativeUrl = (url, options) => {
@@ -13,9 +13,7 @@ export declare class GearboxBackendApi {
13
13
  static getNFTMerkleUrl: (network: NetworkType, root: Address) => string;
14
14
  static getLeaderboardUrl: (url: string, chainId: number) => string;
15
15
  static getReferralUrl: () => string;
16
- static apyServerAllRewards: (chainId: number) => string;
17
- static apyServerGearAPY: (chainId: number) => string;
18
- static apyServerAllPoolRewards: (chainId: number) => string;
16
+ static apyAllRewards: () => string;
19
17
  }
20
18
  interface Options {
21
19
  params?: Record<string, string | number>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "12.3.13",
3
+ "version": "12.3.15",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",