@gearbox-protocol/deploy-tools 5.11.8 → 5.11.9

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 +24 -18
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -414255,7 +414255,7 @@ function getRenderer(opts) {
414255
414255
  var package_default = {
414256
414256
  name: "@gearbox-protocol/deploy-tools",
414257
414257
  description: "Gearbox deploy tools",
414258
- version: "5.11.8",
414258
+ version: "5.11.9",
414259
414259
  homepage: "https://gearbox.fi",
414260
414260
  keywords: [
414261
414261
  "gearbox"
@@ -414423,23 +414423,29 @@ function sdkExample() {
414423
414423
  sharedDir = "."
414424
414424
  } = opts;
414425
414425
  await mkdir3(path11.resolve(sharedDir, "deploy-state"), { recursive: true });
414426
- const sdkExample2 = new SDKExample(log_default);
414427
- await sdkExample2.run({
414428
- addressProvider,
414429
- addressProviderJson,
414430
- marketConfigurators: marketConfigurators ?? [],
414431
- anvilUrl,
414432
- outFile: path11.resolve(
414433
- sharedDir,
414434
- "deploy-state",
414435
- "stateAfter.human.json"
414436
- )
414437
- });
414438
- await writeFile8(
414439
- path11.resolve(sharedDir, "deploy-state", "stateAfter.json"),
414440
- json_stringify(sdkExample2.sdk.state),
414441
- "utf-8"
414442
- );
414426
+ const anvil = createAnvilClient({ transport: http(anvilUrl) });
414427
+ await anvil.setBlockTimestampInterval({ interval: 0 });
414428
+ try {
414429
+ const sdkExample2 = new SDKExample(log_default);
414430
+ await sdkExample2.run({
414431
+ addressProvider,
414432
+ addressProviderJson,
414433
+ marketConfigurators: marketConfigurators ?? [],
414434
+ anvilUrl,
414435
+ outFile: path11.resolve(
414436
+ sharedDir,
414437
+ "deploy-state",
414438
+ "stateAfter.human.json"
414439
+ )
414440
+ });
414441
+ await writeFile8(
414442
+ path11.resolve(sharedDir, "deploy-state", "stateAfter.json"),
414443
+ json_stringify(sdkExample2.sdk.state),
414444
+ "utf-8"
414445
+ );
414446
+ } finally {
414447
+ await anvil.removeBlockTimestampInterval();
414448
+ }
414443
414449
  log_default.info("done");
414444
414450
  });
414445
414451
  }
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.8",
4
+ "version": "5.11.9",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"