@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.
- package/dist/cjs/sdk/chain/chains.js +1 -1
- package/dist/cjs/sdk/market/credit/CreditSuite.js +2 -0
- package/dist/esm/sdk/chain/chains.js +1 -1
- package/dist/esm/sdk/market/credit/CreditSuite.js +2 -0
- package/dist/types/sdk/chain/chains.d.ts +1 -1
- package/dist/types/sdk/market/credit/CreditSuite.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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):
|
|
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;
|