@gearbox-protocol/deploy-tools 5.3.0 → 5.3.2

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.
Files changed (2) hide show
  1. package/dist/index.mjs +20 -10
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -361984,10 +361984,16 @@ var MarketFactory = class extends SDKConstruct {
361984
361984
  constructor(sdk, marketData) {
361985
361985
  super(sdk);
361986
361986
  this.state = marketData;
361987
- this.configurator = new MarketConfiguratorContract(
361988
- sdk,
361987
+ let configurator = sdk.contracts.get(
361989
361988
  marketData.configurator
361990
361989
  );
361990
+ if (!configurator) {
361991
+ configurator = new MarketConfiguratorContract(
361992
+ sdk,
361993
+ marketData.configurator
361994
+ );
361995
+ }
361996
+ this.configurator = configurator;
361991
361997
  this.acl = marketData.acl;
361992
361998
  const allTokens = [
361993
361999
  ...marketData.tokens,
@@ -362386,7 +362392,11 @@ var MarketRegister = class extends SDKConstruct {
362386
362392
  return this.markets.flatMap((market) => market.creditManagers);
362387
362393
  }
362388
362394
  get marketConfigurators() {
362389
- return this.markets.flatMap((market) => market.configurator);
362395
+ const result = /* @__PURE__ */ new Set();
362396
+ for (const m of this.markets) {
362397
+ result.add(m.configurator);
362398
+ }
362399
+ return Array.from(result);
362390
362400
  }
362391
362401
  findCreditManager(creditManager) {
362392
362402
  const addr = creditManager.toLowerCase();
@@ -362882,8 +362892,8 @@ var CreditAccountsService = class extends SDKConstruct {
362882
362892
  owner = ADDRESS_0X0
362883
362893
  } = args ?? {};
362884
362894
  const arg0 = creditManager ?? {
362885
- configurators: [],
362886
- pools: this.pools,
362895
+ configurators: this.marketConfigurators,
362896
+ pools: [],
362887
362897
  underlying: ADDRESS_0X0
362888
362898
  };
362889
362899
  const caFilter = {
@@ -363484,10 +363494,10 @@ var CreditAccountsService = class extends SDKConstruct {
363484
363494
  return calls;
363485
363495
  }
363486
363496
  /**
363487
- * Returns addresses of pools of attached markets
363497
+ * Returns addresses of market configurators
363488
363498
  */
363489
- get pools() {
363490
- return this.sdk.marketRegister.pools.map((p) => p.pool.address);
363499
+ get marketConfigurators() {
363500
+ return this.sdk.marketRegister.marketConfigurators.map((mc) => mc.address);
363491
363501
  }
363492
363502
  };
363493
363503
  var AbstractAddressProviderContract = class extends BaseContract {
@@ -397203,7 +397213,7 @@ function getRenderer(opts) {
397203
397213
  var package_default = {
397204
397214
  name: "@gearbox-protocol/deploy-tools",
397205
397215
  description: "Gearbox deploy tools",
397206
- version: "5.3.0",
397216
+ version: "5.3.2",
397207
397217
  homepage: "https://gearbox.fi",
397208
397218
  keywords: [
397209
397219
  "gearbox"
@@ -397246,7 +397256,7 @@ var package_default = {
397246
397256
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
397247
397257
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
397248
397258
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
397249
- "@gearbox-protocol/sdk": "^3.0.0-vfour.134",
397259
+ "@gearbox-protocol/sdk": "^3.0.0-vfour.137",
397250
397260
  "@gearbox-protocol/sdk-gov": "^2.33.1",
397251
397261
  "@types/lodash-es": "^4.17.12",
397252
397262
  "@types/node": "^22.10.2",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/deploy-tools",
3
3
  "description": "Gearbox deploy tools",
4
- "version": "5.3.0",
4
+ "version": "5.3.2",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"
@@ -44,7 +44,7 @@
44
44
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
45
45
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
46
46
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
47
- "@gearbox-protocol/sdk": "^3.0.0-vfour.134",
47
+ "@gearbox-protocol/sdk": "^3.0.0-vfour.137",
48
48
  "@gearbox-protocol/sdk-gov": "^2.33.1",
49
49
  "@types/lodash-es": "^4.17.12",
50
50
  "@types/node": "^22.10.2",