@gearbox-protocol/deploy-tools 5.17.3 → 5.18.0

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 +10 -6
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -405656,7 +405656,7 @@ var AccountOpener = class extends SDKConstruct {
405656
405656
  totalUSD += market.priceOracle.convertToUSD(pool.underlying, diff);
405657
405657
  }
405658
405658
  }
405659
- totalUSD = totalUSD * 105n / 100n;
405659
+ totalUSD = totalUSD * PERCENTAGE_FACTOR / 9000n;
405660
405660
  this.#logger?.debug(
405661
405661
  `total USD to claim from faucet: ${formatBN(totalUSD, 8)}`
405662
405662
  );
@@ -413182,7 +413182,7 @@ function openAccounts() {
413182
413182
  } = opts;
413183
413183
  await mkdir(path9.resolve(sharedDir, "deploy-state"), { recursive: true });
413184
413184
  const sdk = await GearboxSDK.attach({
413185
- rpcURLs: ["https://anvil.gearbox.foundation/rpc/PermissionlessMainnet"],
413185
+ rpcURLs: [anvilUrl],
413186
413186
  timeout: 48e4,
413187
413187
  addressProvider,
413188
413188
  marketConfigurators: marketConfigurators ?? [],
@@ -413334,7 +413334,7 @@ function openAccounts() {
413334
413334
  }
413335
413335
  async function runCast(result, index2, opts) {
413336
413336
  const { txHash, rawTx } = result;
413337
- const { anvilUrl, destDir, privateKey, castBin = "cast" } = opts;
413337
+ const { anvilUrl, privateKey } = opts;
413338
413338
  if (!txHash && !rawTx) {
413339
413339
  return;
413340
413340
  }
@@ -413349,10 +413349,14 @@ async function runCast(result, index2, opts) {
413349
413349
  rawTx.to,
413350
413350
  rawTx.callData
413351
413351
  ];
413352
+ await runCastCmd(args, id, opts);
413353
+ }
413354
+ async function runCastCmd(args, traceId, opts) {
413355
+ const { destDir, privateKey, castBin = "cast" } = opts;
413352
413356
  const argsStr = args.join(" ").replace(privateKey, "<pk>");
413353
413357
  log_default.debug(`running ${castBin} ${argsStr}`);
413354
413358
  try {
413355
- const traceFile = path9.resolve(destDir, `${id}.trace`);
413359
+ const traceFile = path9.resolve(destDir, `${traceId}.trace`);
413356
413360
  const cast = spawnSync3(castBin, args, { encoding: "utf-8", stdio: "pipe" });
413357
413361
  if (cast.error) {
413358
413362
  log_default.warn(`failed to run cast: ${cast.error}`);
@@ -413412,7 +413416,7 @@ function getRenderer(opts) {
413412
413416
  var package_default = {
413413
413417
  name: "@gearbox-protocol/deploy-tools",
413414
413418
  description: "Gearbox deploy tools",
413415
- version: "5.17.3",
413419
+ version: "5.18.0",
413416
413420
  homepage: "https://gearbox.fi",
413417
413421
  keywords: [
413418
413422
  "gearbox"
@@ -413455,7 +413459,7 @@ var package_default = {
413455
413459
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
413456
413460
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
413457
413461
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
413458
- "@gearbox-protocol/sdk": "3.0.0-vfour.290",
413462
+ "@gearbox-protocol/sdk": "3.0.0-vfour.292",
413459
413463
  "@gearbox-protocol/sdk-gov": "^2.36.5",
413460
413464
  "@types/lodash-es": "^4.17.12",
413461
413465
  "@types/node": "^22.13.5",
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.17.3",
4
+ "version": "5.18.0",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"
@@ -44,7 +44,7 @@
44
44
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
45
45
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
46
46
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
47
- "@gearbox-protocol/sdk": "3.0.0-vfour.290",
47
+ "@gearbox-protocol/sdk": "3.0.0-vfour.292",
48
48
  "@gearbox-protocol/sdk-gov": "^2.36.5",
49
49
  "@types/lodash-es": "^4.17.12",
50
50
  "@types/node": "^22.13.5",