@gearbox-protocol/deploy-tools 5.2.0 → 5.2.1

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 +13 -6
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -361571,13 +361571,18 @@ var PriceFeedRegister = class extends SDKConstruct {
361571
361571
  AP_MARKET_COMPRESSOR,
361572
361572
  310
361573
361573
  );
361574
+ const configurators = marketConfigurators ?? this.sdk.marketRegister.marketConfigurators.map((mc) => mc.address);
361575
+ this.logger?.debug(
361576
+ { configurators, pools },
361577
+ "calling getUpdatablePriceFeeds"
361578
+ );
361574
361579
  const result = await this.provider.publicClient.readContract({
361575
361580
  address: marketCompressorAddress,
361576
361581
  abi: iMarketCompressorAbi,
361577
361582
  functionName: "getUpdatablePriceFeeds",
361578
361583
  args: [
361579
361584
  {
361580
- configurators: marketConfigurators ?? this.sdk.marketRegister.marketConfigurators.map((mc) => mc.address),
361585
+ configurators,
361581
361586
  pools: pools ?? [],
361582
361587
  underlying: ADDRESS_0X0
361583
361588
  }
@@ -362296,7 +362301,7 @@ var MarketRegister = class extends SDKConstruct {
362296
362301
  await this.#loadMarkets([], pools);
362297
362302
  }
362298
362303
  }
362299
- async #loadMarkets(marketConfigurators, pools, ignoreUpdateablePrices) {
362304
+ async #loadMarkets(configurators, pools, ignoreUpdateablePrices) {
362300
362305
  const marketCompressorAddress = this.sdk.addressProvider.getAddress(
362301
362306
  AP_MARKET_COMPRESSOR,
362302
362307
  310
@@ -362304,12 +362309,13 @@ var MarketRegister = class extends SDKConstruct {
362304
362309
  let txs = [];
362305
362310
  if (!ignoreUpdateablePrices) {
362306
362311
  await this.sdk.priceFeeds.preloadUpdatablePriceFeeds(
362307
- marketConfigurators,
362312
+ configurators,
362308
362313
  pools
362309
362314
  );
362310
362315
  const updates = await this.sdk.priceFeeds.generatePriceFeedsUpdateTxs();
362311
362316
  txs = updates.txs;
362312
362317
  }
362318
+ this.#logger?.debug({ configurators, pools }, "calling getMarkets");
362313
362319
  const resp = await simulateMulticall(this.provider.publicClient, {
362314
362320
  contracts: [
362315
362321
  ...txs.map(rawTxToMulticallPriceUpdate),
@@ -362319,7 +362325,7 @@ var MarketRegister = class extends SDKConstruct {
362319
362325
  functionName: "getMarkets",
362320
362326
  args: [
362321
362327
  {
362322
- configurators: marketConfigurators,
362328
+ configurators,
362323
362329
  pools,
362324
362330
  underlying: ADDRESS_0X0
362325
362331
  }
@@ -396993,6 +396999,7 @@ var SdkExample = class {
396993
396999
  if (!isAddress(marketConfigurator)) {
396994
397000
  throw new Error("marketConfigurator is not a valid address");
396995
397001
  }
397002
+ log_default.info(`market configurator from json: ${marketConfigurator}`);
396996
397003
  } catch (e) {
396997
397004
  throw new Error(
396998
397005
  `cannot read market configurator json ${marketConfiguratorJson}: ${e}`
@@ -397196,7 +397203,7 @@ function getRenderer(opts) {
397196
397203
  var package_default = {
397197
397204
  name: "@gearbox-protocol/deploy-tools",
397198
397205
  description: "Gearbox deploy tools",
397199
- version: "5.2.0",
397206
+ version: "5.2.1",
397200
397207
  homepage: "https://gearbox.fi",
397201
397208
  keywords: [
397202
397209
  "gearbox"
@@ -397239,7 +397246,7 @@ var package_default = {
397239
397246
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
397240
397247
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
397241
397248
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
397242
- "@gearbox-protocol/sdk": "^3.0.0-vfour.131",
397249
+ "@gearbox-protocol/sdk": "^3.0.0-vfour.132",
397243
397250
  "@gearbox-protocol/sdk-gov": "^2.33.1",
397244
397251
  "@types/lodash-es": "^4.17.12",
397245
397252
  "@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.2.0",
4
+ "version": "5.2.1",
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.131",
47
+ "@gearbox-protocol/sdk": "^3.0.0-vfour.132",
48
48
  "@gearbox-protocol/sdk-gov": "^2.33.1",
49
49
  "@types/lodash-es": "^4.17.12",
50
50
  "@types/node": "^22.10.2",