@gearbox-protocol/deploy-tools 4.10.1 → 4.10.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 +16 -13
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -347069,18 +347069,18 @@ var AddressProviderV1Visitor = class extends AbstractVisitor {
347069
347069
  // ../../packages/node/dist/tree/visitors/AddressProviderV3Visitor.js
347070
347070
  var AddressProviderV3Visitor = class extends AbstractVisitor {
347071
347071
  async _visit({ address, lastVisitBlock, discoveryBlock }, provider, block) {
347072
- const contract = IAddressProviderV3__factory.connect(address, provider);
347073
- const events = await contract.queryFilter(contract.filters.SetAddress(), lastVisitBlock ? lastVisitBlock + 1 : discoveryBlock, block);
347072
+ const ap = IAddressProviderV3__factory.connect(address, provider);
347073
+ const events = await ap.queryFilter(ap.filters.SetAddress(), lastVisitBlock ? lastVisitBlock + 1 : discoveryBlock, block);
347074
347074
  const result = [];
347075
347075
  for (const evt of events) {
347076
347076
  const { key, value, version: version5 } = evt.args;
347077
- let contract2 = decodeBytes32String2(key);
347078
- switch (contract2) {
347077
+ let contract = decodeBytes32String2(key);
347078
+ switch (contract) {
347079
347079
  case "ADDRESS_PROVIDER":
347080
347080
  if (value.toLowerCase() === address.toLowerCase()) {
347081
347081
  continue;
347082
347082
  }
347083
- contract2 = "ADDRESS_PROVIDER_V1";
347083
+ contract = "ADDRESS_PROVIDER_V1";
347084
347084
  break;
347085
347085
  case "CONTRACTS_REGISTER":
347086
347086
  break;
@@ -347105,23 +347105,26 @@ var AddressProviderV3Visitor = class extends AbstractVisitor {
347105
347105
  case "ZAPPER_REGISTER":
347106
347106
  break;
347107
347107
  case "DATA_COMPRESSOR":
347108
- contract2 = "DATA_COMPRESSOR_V1";
347108
+ contract = "DATA_COMPRESSOR_V1";
347109
347109
  break;
347110
347110
  case "PRICE_ORACLE":
347111
- contract2 = "PRICE_ORACLE_V2";
347111
+ contract = "PRICE_ORACLE_V2";
347112
347112
  break;
347113
347113
  case "CONTROLLER_TIMELOCK":
347114
- contract2 = "CONTROLLER_TIMELOCK_V3";
347114
+ contract = "CONTROLLER_TIMELOCK_V3";
347115
347115
  break;
347116
347116
  case "DEGEN_NFT":
347117
- contract2 = "DEGEN_NFT";
347117
+ contract = "DEGEN_NFT";
347118
+ break;
347119
+ case "ZERO_PRICE_FEED":
347120
+ contract = "PRICE_FEED_ZERO_ORACLE";
347118
347121
  break;
347119
347122
  default:
347120
- throw new Error(`unknow address provider key '${contract2}'`);
347123
+ throw new Error(`unknown address provider key '${contract}'`);
347121
347124
  }
347122
347125
  const entry = {
347123
347126
  address: value.toLowerCase(),
347124
- contract: contract2,
347127
+ contract,
347125
347128
  discoveryBlock: evt.blockNumber,
347126
347129
  version: Number(version5)
347127
347130
  };
@@ -350708,7 +350711,7 @@ var ZeroLT = class extends ProviderBase {
350708
350711
  this.#dc300.getCreditManagersV3List()
350709
350712
  ]);
350710
350713
  }
350711
- const cm = ICreditManagerV3__factory.connect(cmAddr);
350714
+ const cm = ICreditManagerV3__factory.connect(cmAddr, this.provider);
350712
350715
  const v = await cm.version();
350713
350716
  if (v >= 200 && v <= 299) {
350714
350717
  const cmV2 = await this.#dc210.getCreditManagerData(cmAddr);
@@ -351812,7 +351815,7 @@ function getRenderer(opts) {
351812
351815
  }
351813
351816
 
351814
351817
  // package.json
351815
- var version3 = "4.10.1";
351818
+ var version3 = "4.10.2";
351816
351819
 
351817
351820
  // src/version.ts
351818
351821
  var version_default = version3;
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": "4.10.1",
4
+ "version": "4.10.2",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"