@gearbox-protocol/sdk 4.0.0-next.2 → 4.0.0-next.3

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.
@@ -55,6 +55,9 @@ class CreditSuite extends import_base.SDKConstruct {
55
55
  this.creditFacade = (0, import_createCreditFacade.default)(sdk, this.state);
56
56
  this.creditConfigurator = (0, import_createCreditConfigurator.default)(sdk, this.state);
57
57
  }
58
+ get router() {
59
+ return this.sdk.routerFor(this);
60
+ }
58
61
  async tvl() {
59
62
  const tvl = 0n;
60
63
  const tvlUSD = 0n;
@@ -22,6 +22,9 @@ class CreditSuite extends SDKConstruct {
22
22
  this.creditFacade = createCreditFacade(sdk, this.state);
23
23
  this.creditConfigurator = createCreditConfigurator(sdk, this.state);
24
24
  }
25
+ get router() {
26
+ return this.sdk.routerFor(this);
27
+ }
25
28
  async tvl() {
26
29
  const tvl = 0n;
27
30
  const tvlUSD = 0n;
@@ -2,6 +2,7 @@ import type { Address } from "viem";
2
2
  import type { CreditSuiteState, MarketData } from "../../base/index.js";
3
3
  import { SDKConstruct } from "../../base/index.js";
4
4
  import type { GearboxSDK } from "../../GearboxSDK.js";
5
+ import type { IRouterContract } from "../../router/index.js";
5
6
  import type { CreditSuiteStateHuman, TVL } from "../../types/index.js";
6
7
  import type { CreditFacadeContract, ICreditConfiguratorContract, ICreditManagerContract } from "./types.js";
7
8
  export declare class CreditSuite extends SDKConstruct {
@@ -13,6 +14,7 @@ export declare class CreditSuite extends SDKConstruct {
13
14
  readonly creditConfigurator: ICreditConfiguratorContract;
14
15
  readonly state: CreditSuiteState;
15
16
  constructor(sdk: GearboxSDK, marketData: MarketData, index: number);
17
+ get router(): IRouterContract;
16
18
  tvl(): Promise<TVL>;
17
19
  get dirty(): boolean;
18
20
  get watchAddresses(): Set<Address>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "4.0.0-next.2",
3
+ "version": "4.0.0-next.3",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",