@gearbox-protocol/sdk 8.27.7 → 8.27.9

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.
@@ -327,7 +327,7 @@ function isPublicNetwork(networkOrChainId) {
327
327
  function getCuratorName(marketConfigurator, network) {
328
328
  const chainz = network ? [chains[network]] : Object.values(chains);
329
329
  for (const c of chainz) {
330
- for (const [a, curator] of Object.entries({
330
+ for (const [a, curator] of import_utils.TypedObjectUtils.entries({
331
331
  ...c.defaultMarketConfigurators,
332
332
  ...c.testMarketConfigurators
333
333
  })) {
@@ -42,6 +42,7 @@ class CreditSuite extends import_base.SDKConstruct {
42
42
  creditManager;
43
43
  creditFacade;
44
44
  creditConfigurator;
45
+ marketConfigurator;
45
46
  state;
46
47
  constructor(sdk, marketData, index) {
47
48
  super(sdk);
@@ -54,6 +55,7 @@ class CreditSuite extends import_base.SDKConstruct {
54
55
  this.creditManager = (0, import_createCreditManager.default)(sdk, this.state);
55
56
  this.creditFacade = (0, import_createCreditFacade.default)(sdk, this.state);
56
57
  this.creditConfigurator = (0, import_createCreditConfigurator.default)(sdk, this.state);
58
+ this.marketConfigurator = marketData.configurator;
57
59
  }
58
60
  get router() {
59
61
  return this.sdk.routerFor(this);
@@ -311,7 +311,7 @@ function isPublicNetwork(networkOrChainId) {
311
311
  function getCuratorName(marketConfigurator, network) {
312
312
  const chainz = network ? [chains[network]] : Object.values(chains);
313
313
  for (const c of chainz) {
314
- for (const [a, curator] of Object.entries({
314
+ for (const [a, curator] of TypedObjectUtils.entries({
315
315
  ...c.defaultMarketConfigurators,
316
316
  ...c.testMarketConfigurators
317
317
  })) {
@@ -9,6 +9,7 @@ class CreditSuite extends SDKConstruct {
9
9
  creditManager;
10
10
  creditFacade;
11
11
  creditConfigurator;
12
+ marketConfigurator;
12
13
  state;
13
14
  constructor(sdk, marketData, index) {
14
15
  super(sdk);
@@ -21,6 +22,7 @@ class CreditSuite extends SDKConstruct {
21
22
  this.creditManager = createCreditManager(sdk, this.state);
22
23
  this.creditFacade = createCreditFacade(sdk, this.state);
23
24
  this.creditConfigurator = createCreditConfigurator(sdk, this.state);
25
+ this.marketConfigurator = marketData.configurator;
24
26
  }
25
27
  get router() {
26
28
  return this.sdk.routerFor(this);
@@ -56,7 +56,7 @@ export declare function isPublicNetwork(networkOrChainId: NetworkType | number |
56
56
  * @param network
57
57
  * @returns
58
58
  */
59
- export declare function getCuratorName(marketConfigurator: Address, network?: NetworkType): string | undefined;
59
+ export declare function getCuratorName(marketConfigurator: Address, network?: NetworkType): Curator | undefined;
60
60
  /**
61
61
  * Finds market configurator address by curator name
62
62
  * @param curator
@@ -12,6 +12,7 @@ export declare class CreditSuite extends SDKConstruct {
12
12
  readonly creditManager: ICreditManagerContract;
13
13
  readonly creditFacade: CreditFacadeContract;
14
14
  readonly creditConfigurator: ICreditConfiguratorContract;
15
+ readonly marketConfigurator: Address;
15
16
  readonly state: CreditSuiteState;
16
17
  constructor(sdk: GearboxSDK, marketData: MarketData, index: number);
17
18
  get router(): IRouterContract;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/sdk",
3
- "version": "8.27.7",
3
+ "version": "8.27.9",
4
4
  "description": "Gearbox SDK",
5
5
  "license": "MIT",
6
6
  "main": "./dist/cjs/sdk/index.js",