@gearbox-protocol/deploy-tools 5.11.7 → 5.11.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 +12 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -414021,6 +414021,8 @@ function openAccounts() {
414021
414021
  "SHARED_DIR"
414022
414022
  )
414023
414023
  ).addOption(new Option("--nexo", "try to open accounts in Nexo")).addOption(
414024
+ new Option("--automine <interval>", "optional automine interval")
414025
+ ).addOption(
414024
414026
  new Option("--anvil-url <url>", "anvil rpc url").env("ANVIL_URL")
414025
414027
  ).action(async (opts) => {
414026
414028
  log_default.info("starting sdk v3.1 example");
@@ -414031,7 +414033,8 @@ function openAccounts() {
414031
414033
  anvilUrl = "http://127.0.0.1:8545",
414032
414034
  sharedDir = ".",
414033
414035
  nexo,
414034
- castBin = "cast"
414036
+ castBin = "cast",
414037
+ automine: automineIntervalS = "1"
414035
414038
  } = opts;
414036
414039
  await mkdir2(path9.resolve(sharedDir, "deploy-state"), { recursive: true });
414037
414040
  const sdkExample2 = new SDKExample(log_default);
@@ -414072,7 +414075,12 @@ function openAccounts() {
414072
414075
  }
414073
414076
  }
414074
414077
  );
414075
- await anvil.setBlockTimestampInterval({ interval: 1 });
414078
+ const automineInterval = parseInt(automineIntervalS, 10);
414079
+ const automine = await anvil.getAutomine();
414080
+ await anvil.setBlockTimestampInterval({ interval: automineInterval });
414081
+ log_default.debug(
414082
+ `setting block timestamp interval, automine: ${automine}, interval ${automineInterval}`
414083
+ );
414076
414084
  const borrowerKey = generatePrivateKey();
414077
414085
  const borrower = privateKeyToAccount(borrowerKey);
414078
414086
  await anvil.setBalance({
@@ -414162,6 +414170,7 @@ function openAccounts() {
414162
414170
  log_default.error(`failed to open accounts: ${e}`);
414163
414171
  } finally {
414164
414172
  await anvil.removeBlockTimestampInterval();
414173
+ log_default.debug("removing block timestamp interval");
414165
414174
  }
414166
414175
  log_default.info("done");
414167
414176
  });
@@ -414246,7 +414255,7 @@ function getRenderer(opts) {
414246
414255
  var package_default = {
414247
414256
  name: "@gearbox-protocol/deploy-tools",
414248
414257
  description: "Gearbox deploy tools",
414249
- version: "5.11.7",
414258
+ version: "5.11.8",
414250
414259
  homepage: "https://gearbox.fi",
414251
414260
  keywords: [
414252
414261
  "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.11.7",
4
+ "version": "5.11.8",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"