@gearbox-protocol/deploy-tools 5.3.1 → 5.3.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.
Files changed (2) hide show
  1. package/dist/index.mjs +20 -6
  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();
@@ -381661,7 +381671,11 @@ function normalizeTransactions(batch) {
381661
381671
  if (["queueTransaction", "executeTransaction", "cancelTransaction"].includes(t.contractMethod.name)) {
381662
381672
  return normalizeTimelockTx(t);
381663
381673
  }
381664
- return normalizeDirectTx(t);
381674
+ try {
381675
+ return normalizeDirectTx(t);
381676
+ } catch (e) {
381677
+ throw new Error(`failed to normalize direct tx to ${t.to}/${t.contractMethod.name}: ${e}`);
381678
+ }
381665
381679
  });
381666
381680
  }
381667
381681
  function normalizeDirectTx(t) {
@@ -397203,7 +397217,7 @@ function getRenderer(opts) {
397203
397217
  var package_default = {
397204
397218
  name: "@gearbox-protocol/deploy-tools",
397205
397219
  description: "Gearbox deploy tools",
397206
- version: "5.3.1",
397220
+ version: "5.3.3",
397207
397221
  homepage: "https://gearbox.fi",
397208
397222
  keywords: [
397209
397223
  "gearbox"
@@ -397246,7 +397260,7 @@ var package_default = {
397246
397260
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
397247
397261
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
397248
397262
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
397249
- "@gearbox-protocol/sdk": "^3.0.0-vfour.136",
397263
+ "@gearbox-protocol/sdk": "^3.0.0-vfour.137",
397250
397264
  "@gearbox-protocol/sdk-gov": "^2.33.1",
397251
397265
  "@types/lodash-es": "^4.17.12",
397252
397266
  "@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.1",
4
+ "version": "5.3.3",
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.136",
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",