@gearbox-protocol/deploy-tools 3.0.3 → 3.1.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 +24 -7
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -155463,8 +155463,8 @@ var require_network = __commonJS({
155463
155463
  * Gets a list of all plugins that match %%name%%, with otr without
155464
155464
  * a fragment.
155465
155465
  */
155466
- getPlugins(basename) {
155467
- return this.plugins.filter((p) => p.name.split("#")[0] === basename);
155466
+ getPlugins(basename2) {
155467
+ return this.plugins.filter((p) => p.name.split("#")[0] === basename2);
155468
155468
  }
155469
155469
  /**
155470
155470
  * Create a copy of this Network.
@@ -311042,8 +311042,8 @@ var Network = class _Network {
311042
311042
  * Gets a list of all plugins that match %%name%%, with otr without
311043
311043
  * a fragment.
311044
311044
  */
311045
- getPlugins(basename) {
311046
- return this.plugins.filter((p) => p.name.split("#")[0] === basename);
311045
+ getPlugins(basename2) {
311046
+ return this.plugins.filter((p) => p.name.split("#")[0] === basename2);
311047
311047
  }
311048
311048
  /**
311049
311049
  * Create a copy of this Network.
@@ -316506,7 +316506,7 @@ function compareAudited(a, b3) {
316506
316506
 
316507
316507
  // ../../packages/node/dist/helpers/batches.js
316508
316508
  import { readFile } from "node:fs/promises";
316509
- import { resolve as resolve2 } from "node:path";
316509
+ import { basename, resolve as resolve2 } from "node:path";
316510
316510
  var import_fast_deep_equal = __toESM(require_fast_deep_equal(), 1);
316511
316511
 
316512
316512
  // ../../packages/node/dist/helpers/fs.js
@@ -316654,6 +316654,14 @@ async function loadBatchDir(dir) {
316654
316654
  }
316655
316655
  meta2 = [...meta2, ...metaFile];
316656
316656
  }
316657
+ if (file.includes("_meta/0x")) {
316658
+ const address = basename(file).replace(/\.json$/, "");
316659
+ if (!isAddress2(address)) {
316660
+ throw new Error(`invalid metafile ${file}`);
316661
+ }
316662
+ const metaFile = await readFile(resolve2(dir, file), "utf8").then(json_parse);
316663
+ meta2 = [...meta2, metaFile];
316664
+ }
316657
316665
  if (file.endsWith(".queue.json")) {
316658
316666
  const name = file.replace(".queue.json", "");
316659
316667
  const executeFile = file.replace(".queue.json", ".execute.json");
@@ -324441,7 +324449,16 @@ var UpdateParser = class extends ProviderBase {
324441
324449
  this.logger.info(`[${i + 1}/${total}] processing ${updateTitle(batch)}`);
324442
324450
  const transactions = [];
324443
324451
  for (const tx of batch.transactions) {
324444
- transactions.push(await this.#parseNormalizedTx(tx, meta2));
324452
+ try {
324453
+ transactions.push(await this.#parseNormalizedTx(tx, meta2));
324454
+ } catch (e) {
324455
+ transactions.push({
324456
+ error: `${e}`,
324457
+ to: tx.target,
324458
+ calldata: tx.data,
324459
+ signature: tx.signature
324460
+ });
324461
+ }
324445
324462
  }
324446
324463
  return {
324447
324464
  ...batch,
@@ -325829,7 +325846,7 @@ function zeroLT() {
325829
325846
  }
325830
325847
 
325831
325848
  // package.json
325832
- var version3 = "3.0.2";
325849
+ var version3 = "3.0.4";
325833
325850
 
325834
325851
  // src/index.ts
325835
325852
  var program2 = new Command();
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": "3.0.3",
4
+ "version": "3.1.0",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"