@gearbox-protocol/sdk 3.0.0-next.77 → 3.0.0-next.79

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.
@@ -52,7 +52,7 @@ export declare class CreditManagerData {
52
52
  encodeUpdateQuotaV3(token: string, quotaChange: bigint, minQuota: bigint): MultiCall;
53
53
  encodeWithdrawCollateralV3(token: string, amount: bigint, to: string): MultiCall;
54
54
  static withdrawAllAndUnwrap_Convex(address: string, claim: boolean): MultiCall;
55
- onDemandPriceUpdateV3(token: string, reserve: boolean, data: string): MultiCall;
55
+ encodeOnDemandPriceUpdateV3(token: string, reserve: boolean, data: string): MultiCall;
56
56
  }
57
57
  export declare class ChartsCreditManagerData {
58
58
  readonly id: string;
@@ -206,7 +206,7 @@ class CreditManagerData {
206
206
  callData: types_1.IConvexV1BaseRewardPoolAdapter__factory.createInterface().encodeFunctionData("withdrawDiffAndUnwrap", [1, claim]),
207
207
  };
208
208
  }
209
- onDemandPriceUpdateV3(token, reserve, data) {
209
+ encodeOnDemandPriceUpdateV3(token, reserve, data) {
210
210
  return {
211
211
  target: this.creditFacade,
212
212
  callData: types_1.ICreditFacadeV3Multicall__factory.createInterface().encodeFunctionData("onDemandPriceUpdate", [token, reserve, data]),
@@ -8,6 +8,7 @@ export declare class PoolData {
8
8
  readonly type: PoolType;
9
9
  readonly underlyingToken: string;
10
10
  readonly dieselToken: string;
11
+ readonly stakedDieselToken: Array<string>;
11
12
  readonly isPaused: boolean;
12
13
  readonly version: number;
13
14
  readonly poolQuotaKeeper: string;
package/lib/core/pool.js CHANGED
@@ -9,6 +9,7 @@ class PoolData {
9
9
  type;
10
10
  underlyingToken;
11
11
  dieselToken;
12
+ stakedDieselToken;
12
13
  isPaused;
13
14
  version;
14
15
  poolQuotaKeeper;
@@ -40,6 +41,7 @@ class PoolData {
40
41
  this.type = PoolData.getPoolType(payload.name || "");
41
42
  this.underlyingToken = payload.underlying.toLowerCase();
42
43
  this.dieselToken = payload.dieselToken.toLowerCase();
44
+ this.stakedDieselToken = (payload.stakedDieselToken || []).map(t => t.toLowerCase());
43
45
  this.isPaused = payload.isPaused;
44
46
  this.version = payload.version.toNumber();
45
47
  this.poolQuotaKeeper = payload.poolQuotaKeeper.toLowerCase();
@@ -3,6 +3,7 @@ import { BigNumberish } from "ethers";
3
3
  import { ZapperInfoStructOutput } from "../types/IDataCompressorV2_10";
4
4
  import { LinearModelStructOutput, PoolDataStructOutput } from "../types/IDataCompressorV3_00";
5
5
  export type PoolDataPayload = Omit<ExcludeArrayProps<PoolDataStructOutput>, "zappers"> & {
6
+ stakedDieselToken: Array<string>;
6
7
  zappers: Array<PoolZapper>;
7
8
  supplyAPY7D: number | undefined;
8
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "3.0.0-next.77",
3
+ "version": "3.0.0-next.79",
4
4
  "description": "Gearbox SDK",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",