@gearbox-protocol/deploy-tools 5.45.7 → 5.45.8

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 +9 -4
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -446362,7 +446362,7 @@ function defillamaTest() {
446362
446362
  anvilUrl = "http://127.0.0.1:8545",
446363
446363
  outputDir,
446364
446364
  gasLimit = "550000000",
446365
- pageSize = "250"
446365
+ pageSize = "1000"
446366
446366
  } = opts;
446367
446367
  const transportOptions = getSDKTransportOptions({
446368
446368
  ...opts,
@@ -446426,13 +446426,18 @@ function defillamaTest() {
446426
446426
  }
446427
446427
  const creditManagers = {};
446428
446428
  for (const suite of sdk.marketRegister.creditManagers) {
446429
- const creditAccounts = await loadCreditAccounts(
446429
+ let creditAccounts = await loadCreditAccounts(
446430
446430
  sdk,
446431
446431
  address,
446432
446432
  suite,
446433
446433
  Number(pageSize)
446434
446434
  );
446435
+ const total = creditAccounts.length;
446436
+ creditAccounts = creditAccounts.filter((ca) => !!ca.debt);
446435
446437
  creditManagers[suite.creditManager.address] = creditAccounts;
446438
+ log_default.info(
446439
+ `got ${creditAccounts.length}/${total} credit accounts for ${sdk.provider.addressLabels.get(suite.creditManager.address)}`
446440
+ );
446436
446441
  }
446437
446442
  const outDir = outputDir ?? process.cwd();
446438
446443
  await mkdir2(outDir, { recursive: true });
@@ -446465,7 +446470,7 @@ async function loadCreditAccounts(sdk, compressor, suite, limit) {
446465
446470
  log_default.debug(
446466
446471
  `got ${creditAccounts.length} credit accounts for ${sdk.provider.addressLabels.get(suite.creditManager.address)} page ${page}`
446467
446472
  );
446468
- } while (creditAccounts.length > 0);
446473
+ } while (creditAccounts.length === limit);
446469
446474
  return result;
446470
446475
  }
446471
446476
  async function loadPage(sdk, compressor, suite, offset, limit) {
@@ -446765,7 +446770,7 @@ function getRenderer(opts) {
446765
446770
  var package_default = {
446766
446771
  name: "@gearbox-protocol/deploy-tools",
446767
446772
  description: "Gearbox deploy tools",
446768
- version: "5.45.7",
446773
+ version: "5.45.8",
446769
446774
  homepage: "https://gearbox.fi",
446770
446775
  keywords: [
446771
446776
  "gearbox"
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.45.7",
4
+ "version": "5.45.8",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"