@gearbox-protocol/deploy-tools 4.63.0 → 4.63.2
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 +39 -18
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -351111,9 +351111,17 @@ 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({
|
|
351119
|
+
id: txs[i].safeTxHash,
|
|
351120
|
+
error: `${e}`.replaceAll("\n", "\\n")
|
|
351121
|
+
});
|
|
351122
|
+
} finally {
|
|
351123
|
+
this.#output.safeTxHashes.push(txs[i].safeTxHash);
|
|
351124
|
+
}
|
|
351117
351125
|
}
|
|
351118
351126
|
}
|
|
351119
351127
|
async #parseBatchDir(dir, unsafeMainnetMeta = false) {
|
|
@@ -351132,8 +351140,15 @@ var UpdateParser = class extends ProviderBase {
|
|
|
351132
351140
|
}
|
|
351133
351141
|
this.logger.info(`will parse ${batches.length} batch files`);
|
|
351134
351142
|
for (let i = 0; i < batches.length; i++) {
|
|
351135
|
-
|
|
351136
|
-
|
|
351143
|
+
try {
|
|
351144
|
+
const parsed = await this.#parseNormalizedBatch(batches[i], i, batches.length);
|
|
351145
|
+
this.#output.batches.push(parsed);
|
|
351146
|
+
} catch (e) {
|
|
351147
|
+
this.#output.batches.push({
|
|
351148
|
+
id: batches[i].id,
|
|
351149
|
+
error: `${e}`.replaceAll("\n", "\\n")
|
|
351150
|
+
});
|
|
351151
|
+
}
|
|
351137
351152
|
}
|
|
351138
351153
|
this.#output.batchDir = dir;
|
|
351139
351154
|
}
|
|
@@ -352229,20 +352244,22 @@ var CliRenderer = class {
|
|
|
352229
352244
|
);
|
|
352230
352245
|
this.#nav.tx = 0;
|
|
352231
352246
|
break;
|
|
352232
|
-
case "right":
|
|
352233
|
-
this.#nav.
|
|
352234
|
-
|
|
352235
|
-
|
|
352236
|
-
|
|
352237
|
-
);
|
|
352247
|
+
case "right": {
|
|
352248
|
+
const batch = this.#output.batches[this.#nav.batch];
|
|
352249
|
+
if ("error" in batch) {
|
|
352250
|
+
break;
|
|
352251
|
+
}
|
|
352252
|
+
this.#nav.tx = range(this.#nav.tx, 1, batch.transactions.length);
|
|
352238
352253
|
break;
|
|
352239
|
-
|
|
352240
|
-
|
|
352241
|
-
|
|
352242
|
-
|
|
352243
|
-
|
|
352244
|
-
|
|
352254
|
+
}
|
|
352255
|
+
case "left": {
|
|
352256
|
+
const batch = this.#output.batches[this.#nav.batch];
|
|
352257
|
+
if ("error" in batch) {
|
|
352258
|
+
break;
|
|
352259
|
+
}
|
|
352260
|
+
this.#nav.tx = range(this.#nav.tx, -1, batch.transactions.length);
|
|
352245
352261
|
break;
|
|
352262
|
+
}
|
|
352246
352263
|
case "a":
|
|
352247
352264
|
clearCli();
|
|
352248
352265
|
this.#render(false);
|
|
@@ -352270,6 +352287,10 @@ var CliRenderer = class {
|
|
|
352270
352287
|
);
|
|
352271
352288
|
}
|
|
352272
352289
|
const prefix = total > 1 ? ` ${i + 1}/${total}` : "";
|
|
352290
|
+
if ("error" in batch) {
|
|
352291
|
+
console.log(source_default.red(prefix + " " + batch.error));
|
|
352292
|
+
return;
|
|
352293
|
+
}
|
|
352273
352294
|
const { transactions } = batch;
|
|
352274
352295
|
console.log(prefix + " " + batch.id);
|
|
352275
352296
|
console.log(`${source_default.green("TLDR")}: ${getTldr(batch)}`);
|
|
@@ -352406,7 +352427,7 @@ function getRenderer(opts) {
|
|
|
352406
352427
|
var package_default = {
|
|
352407
352428
|
name: "@gearbox-protocol/deploy-tools",
|
|
352408
352429
|
description: "Gearbox deploy tools",
|
|
352409
|
-
version: "4.63.
|
|
352430
|
+
version: "4.63.2",
|
|
352410
352431
|
homepage: "https://gearbox.fi",
|
|
352411
352432
|
keywords: [
|
|
352412
352433
|
"gearbox"
|