@gearbox-protocol/deploy-tools 5.17.2 → 5.17.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 +18 -10
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -380164,11 +380164,15 @@ var GearboxSDK = class _GearboxSDK {
380164
380164
  `address provider version: ${this.#addressProvider.version}`
380165
380165
  );
380166
380166
  await this.#addressProvider.syncState(this.currentBlock);
380167
- const botListAddress = this.#addressProvider.getAddress(
380168
- AP_BOT_LIST,
380169
- NO_VERSION
380170
- );
380171
- this.#botListContract = new BotListContract(this, botListAddress);
380167
+ try {
380168
+ const botListAddress = this.#addressProvider.getAddress(
380169
+ AP_BOT_LIST,
380170
+ NO_VERSION
380171
+ );
380172
+ this.#botListContract = new BotListContract(this, botListAddress);
380173
+ } catch (e) {
380174
+ this.logger?.error(e);
380175
+ }
380172
380176
  this.#gear = this.#addressProvider.getAddress(AP_GEAR_TOKEN, NO_VERSION);
380173
380177
  const gearStakingAddress = this.#addressProvider.getAddress(
380174
380178
  AP_GEAR_STAKING,
@@ -413178,7 +413182,7 @@ function openAccounts() {
413178
413182
  } = opts;
413179
413183
  await mkdir(path9.resolve(sharedDir, "deploy-state"), { recursive: true });
413180
413184
  const sdk = await GearboxSDK.attach({
413181
- rpcURLs: ["https://anvil.gearbox.foundation/rpc/PermissionlessMainnet"],
413185
+ rpcURLs: [anvilUrl],
413182
413186
  timeout: 48e4,
413183
413187
  addressProvider,
413184
413188
  marketConfigurators: marketConfigurators ?? [],
@@ -413330,7 +413334,7 @@ function openAccounts() {
413330
413334
  }
413331
413335
  async function runCast(result, index2, opts) {
413332
413336
  const { txHash, rawTx } = result;
413333
- const { anvilUrl, destDir, privateKey, castBin = "cast" } = opts;
413337
+ const { anvilUrl, privateKey } = opts;
413334
413338
  if (!txHash && !rawTx) {
413335
413339
  return;
413336
413340
  }
@@ -413345,10 +413349,14 @@ async function runCast(result, index2, opts) {
413345
413349
  rawTx.to,
413346
413350
  rawTx.callData
413347
413351
  ];
413352
+ await runCastCmd(args, id, opts);
413353
+ }
413354
+ async function runCastCmd(args, traceId, opts) {
413355
+ const { destDir, privateKey, castBin = "cast" } = opts;
413348
413356
  const argsStr = args.join(" ").replace(privateKey, "<pk>");
413349
413357
  log_default.debug(`running ${castBin} ${argsStr}`);
413350
413358
  try {
413351
- const traceFile = path9.resolve(destDir, `${id}.trace`);
413359
+ const traceFile = path9.resolve(destDir, `${traceId}.trace`);
413352
413360
  const cast = spawnSync3(castBin, args, { encoding: "utf-8", stdio: "pipe" });
413353
413361
  if (cast.error) {
413354
413362
  log_default.warn(`failed to run cast: ${cast.error}`);
@@ -413408,7 +413416,7 @@ function getRenderer(opts) {
413408
413416
  var package_default = {
413409
413417
  name: "@gearbox-protocol/deploy-tools",
413410
413418
  description: "Gearbox deploy tools",
413411
- version: "5.17.2",
413419
+ version: "5.17.4",
413412
413420
  homepage: "https://gearbox.fi",
413413
413421
  keywords: [
413414
413422
  "gearbox"
@@ -413451,7 +413459,7 @@ var package_default = {
413451
413459
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
413452
413460
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
413453
413461
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
413454
- "@gearbox-protocol/sdk": "3.0.0-vfour.289",
413462
+ "@gearbox-protocol/sdk": "3.0.0-vfour.290",
413455
413463
  "@gearbox-protocol/sdk-gov": "^2.36.5",
413456
413464
  "@types/lodash-es": "^4.17.12",
413457
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.2",
4
+ "version": "5.17.4",
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.289",
47
+ "@gearbox-protocol/sdk": "3.0.0-vfour.290",
48
48
  "@gearbox-protocol/sdk-gov": "^2.36.5",
49
49
  "@types/lodash-es": "^4.17.12",
50
50
  "@types/node": "^22.13.5",