@gearbox-protocol/deploy-tools 5.45.3 → 5.45.4

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 -11
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -141462,7 +141462,7 @@ var require_sonic_boom = __commonJS({
141462
141462
  if (!(this instanceof SonicBoom)) {
141463
141463
  return new SonicBoom(opts);
141464
141464
  }
141465
- let { fd, dest, minLength, maxLength, maxWrite, periodicFlush, sync, append = true, mkdir: mkdir4, retryEAGAIN, fsync, contentMode, mode } = opts || {};
141465
+ let { fd, dest, minLength, maxLength, maxWrite, periodicFlush, sync, append = true, mkdir: mkdir5, retryEAGAIN, fsync, contentMode, mode } = opts || {};
141466
141466
  fd = fd || dest;
141467
141467
  this._len = 0;
141468
141468
  this.fd = -1;
@@ -141487,7 +141487,7 @@ var require_sonic_boom = __commonJS({
141487
141487
  this.append = append || false;
141488
141488
  this.mode = mode;
141489
141489
  this.retryEAGAIN = retryEAGAIN || (() => true);
141490
- this.mkdir = mkdir4 || false;
141490
+ this.mkdir = mkdir5 || false;
141491
141491
  let fsWriteSync;
141492
141492
  let fsWrite;
141493
141493
  if (contentMode === kContentModeBuffer) {
@@ -446187,7 +446187,7 @@ function audit() {
446187
446187
  }
446188
446188
 
446189
446189
  // src/commands/defillama-test/index.ts
446190
- import { writeFile as writeFile5 } from "node:fs/promises";
446190
+ import { mkdir as mkdir2, writeFile as writeFile5 } from "node:fs/promises";
446191
446191
  import path8 from "node:path";
446192
446192
 
446193
446193
  // src/commands/defillama-test/abi.ts
@@ -446395,12 +446395,16 @@ function defillamaTest() {
446395
446395
  log_default.info(`got ${mcs.length} market configurators: ${mcs.join(", ")}`);
446396
446396
  const result = {};
446397
446397
  try {
446398
- result.poolsGas = await sdk.provider.publicClient.estimateContractGas({
446398
+ const poolsGas = await sdk.provider.publicClient.estimateContractGas({
446399
446399
  abi: DefillamaCompressorAbi,
446400
446400
  address,
446401
446401
  functionName: "getPools",
446402
446402
  args: [mcs]
446403
446403
  });
446404
+ result.poolGas = poolsGas;
446405
+ log_default.debug(
446406
+ `estimated gas for pools: ${Number(poolsGas / 100000n) / 10}M`
446407
+ );
446404
446408
  } catch (e) {
446405
446409
  log_default.error(`error estimating pools gas: ${e}`);
446406
446410
  result.poolsGas = { error: `${e}` };
@@ -446434,7 +446438,7 @@ function defillamaTest() {
446434
446438
  });
446435
446439
  creditManagersGas[suite.creditManager.address] = cmGas;
446436
446440
  log_default.debug(
446437
- `estimated gas for ${sdk.provider.addressLabels.get(suite.creditManager.address)}: ${cmGas}`
446441
+ `estimated gas for ${sdk.provider.addressLabels.get(suite.creditManager.address)}: ${Number(cmGas / 100000n) / 10}M`
446438
446442
  );
446439
446443
  } catch (e) {
446440
446444
  log_default.error(
@@ -446463,6 +446467,7 @@ function defillamaTest() {
446463
446467
  }
446464
446468
  }
446465
446469
  const outDir = outputDir ?? process.cwd();
446470
+ await mkdir2(outDir, { recursive: true });
446466
446471
  const outputJson = path8.resolve(outDir, "defillama.json");
446467
446472
  log_default.debug(`saving results to ${outputJson}`);
446468
446473
  await writeFile5(
@@ -446476,7 +446481,7 @@ function defillamaTest() {
446476
446481
 
446477
446482
  // src/commands/open-accounts.ts
446478
446483
  import { spawnSync as spawnSync3 } from "node:child_process";
446479
- import { mkdir as mkdir2, readFile as readFile8, writeFile as writeFile6 } from "node:fs/promises";
446484
+ import { mkdir as mkdir3, readFile as readFile8, writeFile as writeFile6 } from "node:fs/promises";
446480
446485
  import path9 from "node:path";
446481
446486
  function openAccounts() {
446482
446487
  return newCommand().name("open-accounts").description("Script to open accounts in v3.1").addOption(
@@ -446499,7 +446504,7 @@ function openAccounts() {
446499
446504
  castBin = "cast",
446500
446505
  inputJson
446501
446506
  } = opts;
446502
- await mkdir2(path9.resolve(sharedDir, "deploy-state"), { recursive: true });
446507
+ await mkdir3(path9.resolve(sharedDir, "deploy-state"), { recursive: true });
446503
446508
  const transportOptions = getSDKTransportOptions({
446504
446509
  ...opts,
446505
446510
  anvilUrl
@@ -446585,7 +446590,7 @@ function openAccounts() {
446585
446590
  try {
446586
446591
  const result = await accountOpener.openCreditAccounts(accounts, true);
446587
446592
  const destDir = path9.resolve(sharedDir, "open-accounts");
446588
- await mkdir2(destDir, { recursive: true });
446593
+ await mkdir3(destDir, { recursive: true });
446589
446594
  await writeFile6(
446590
446595
  path9.resolve(destDir, "result.json"),
446591
446596
  json_stringify(result),
@@ -446734,7 +446739,7 @@ function getRenderer(opts) {
446734
446739
  var package_default = {
446735
446740
  name: "@gearbox-protocol/deploy-tools",
446736
446741
  description: "Gearbox deploy tools",
446737
- version: "5.45.3",
446742
+ version: "5.45.4",
446738
446743
  homepage: "https://gearbox.fi",
446739
446744
  keywords: [
446740
446745
  "gearbox"
@@ -446983,7 +446988,7 @@ function printSafeTx() {
446983
446988
  }
446984
446989
 
446985
446990
  // src/commands/state-snapshot.ts
446986
- import { mkdir as mkdir3, writeFile as writeFile8 } from "node:fs/promises";
446991
+ import { mkdir as mkdir4, writeFile as writeFile8 } from "node:fs/promises";
446987
446992
  import path11 from "node:path";
446988
446993
 
446989
446994
  // ../../node_modules/@gearbox-protocol/sdk/dist/esm/plugins/bots/abi/iPartialLiquidationBotV300.js
@@ -447631,7 +447636,7 @@ function stateSnapshot() {
447631
447636
  });
447632
447637
  log_default.debug(`saving state to ${outputJson}`);
447633
447638
  const outputDir = path11.dirname(outputJson);
447634
- await mkdir3(outputDir, { recursive: true });
447639
+ await mkdir4(outputDir, { recursive: true });
447635
447640
  await writeFile8(outputJson, json_stringify(sdk.state), "utf-8");
447636
447641
  log_default.info("done");
447637
447642
  });
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.3",
4
+ "version": "5.45.4",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"