@gearbox-protocol/deploy-tools 4.62.6 → 4.63.1
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.
- package/dist/index.mjs +33 -18
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -351111,9 +351111,14 @@ var UpdateParser = class extends ProviderBase {
|
|
|
351111
351111
|
await this.metaRepo.loadFromRepo();
|
|
351112
351112
|
this.#output.safeTxHashes = [];
|
|
351113
351113
|
for (let i = 0; i < txs.length; i++) {
|
|
351114
|
-
|
|
351115
|
-
|
|
351116
|
-
|
|
351114
|
+
try {
|
|
351115
|
+
const parsed = await this.#parseNormalizedBatch(normalizeSafeApiBatch(txs[i]), i, total);
|
|
351116
|
+
this.#output.batches.push(parsed);
|
|
351117
|
+
} catch (e) {
|
|
351118
|
+
this.#output.batches.push({ error: `${e}`.replaceAll("\n", "\\n") });
|
|
351119
|
+
} finally {
|
|
351120
|
+
this.#output.safeTxHashes.push(txs[i].safeTxHash);
|
|
351121
|
+
}
|
|
351117
351122
|
}
|
|
351118
351123
|
}
|
|
351119
351124
|
async #parseBatchDir(dir, unsafeMainnetMeta = false) {
|
|
@@ -351132,8 +351137,12 @@ var UpdateParser = class extends ProviderBase {
|
|
|
351132
351137
|
}
|
|
351133
351138
|
this.logger.info(`will parse ${batches.length} batch files`);
|
|
351134
351139
|
for (let i = 0; i < batches.length; i++) {
|
|
351135
|
-
|
|
351136
|
-
|
|
351140
|
+
try {
|
|
351141
|
+
const parsed = await this.#parseNormalizedBatch(batches[i], i, batches.length);
|
|
351142
|
+
this.#output.batches.push(parsed);
|
|
351143
|
+
} catch (e) {
|
|
351144
|
+
this.#output.batches.push({ error: `${e}`.replaceAll("\n", "\\n") });
|
|
351145
|
+
}
|
|
351137
351146
|
}
|
|
351138
351147
|
this.#output.batchDir = dir;
|
|
351139
351148
|
}
|
|
@@ -352229,20 +352238,22 @@ var CliRenderer = class {
|
|
|
352229
352238
|
);
|
|
352230
352239
|
this.#nav.tx = 0;
|
|
352231
352240
|
break;
|
|
352232
|
-
case "right":
|
|
352233
|
-
this.#nav.
|
|
352234
|
-
|
|
352235
|
-
|
|
352236
|
-
|
|
352237
|
-
);
|
|
352241
|
+
case "right": {
|
|
352242
|
+
const batch = this.#output.batches[this.#nav.batch];
|
|
352243
|
+
if ("error" in batch) {
|
|
352244
|
+
break;
|
|
352245
|
+
}
|
|
352246
|
+
this.#nav.tx = range(this.#nav.tx, 1, batch.transactions.length);
|
|
352238
352247
|
break;
|
|
352239
|
-
|
|
352240
|
-
|
|
352241
|
-
|
|
352242
|
-
|
|
352243
|
-
|
|
352244
|
-
|
|
352248
|
+
}
|
|
352249
|
+
case "left": {
|
|
352250
|
+
const batch = this.#output.batches[this.#nav.batch];
|
|
352251
|
+
if ("error" in batch) {
|
|
352252
|
+
break;
|
|
352253
|
+
}
|
|
352254
|
+
this.#nav.tx = range(this.#nav.tx, -1, batch.transactions.length);
|
|
352245
352255
|
break;
|
|
352256
|
+
}
|
|
352246
352257
|
case "a":
|
|
352247
352258
|
clearCli();
|
|
352248
352259
|
this.#render(false);
|
|
@@ -352270,6 +352281,10 @@ var CliRenderer = class {
|
|
|
352270
352281
|
);
|
|
352271
352282
|
}
|
|
352272
352283
|
const prefix = total > 1 ? ` ${i + 1}/${total}` : "";
|
|
352284
|
+
if ("error" in batch) {
|
|
352285
|
+
console.log(source_default.red(prefix + " " + batch.error));
|
|
352286
|
+
return;
|
|
352287
|
+
}
|
|
352273
352288
|
const { transactions } = batch;
|
|
352274
352289
|
console.log(prefix + " " + batch.id);
|
|
352275
352290
|
console.log(`${source_default.green("TLDR")}: ${getTldr(batch)}`);
|
|
@@ -352406,7 +352421,7 @@ function getRenderer(opts) {
|
|
|
352406
352421
|
var package_default = {
|
|
352407
352422
|
name: "@gearbox-protocol/deploy-tools",
|
|
352408
352423
|
description: "Gearbox deploy tools",
|
|
352409
|
-
version: "4.
|
|
352424
|
+
version: "4.63.1",
|
|
352410
352425
|
homepage: "https://gearbox.fi",
|
|
352411
352426
|
keywords: [
|
|
352412
352427
|
"gearbox"
|