@gearbox-protocol/deploy-tools 1.2.0 → 1.3.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.js +12 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -151575,7 +151575,7 @@ var SafeBase = class {
151575
151575
  _safe = new WeakMap();
151576
151576
 
151577
151577
  // src/Create2Verifier.ts
151578
- var _logger2, _sandboxDir2, _auditor, _output, _setupMetaRepos, setupMetaRepos_fn, _verifyBatchAndMeta, verifyBatchAndMeta_fn, _verifySafeTx, verifySafeTx_fn, _verify, verify_fn, _verifyCreate2Tx, verifyCreate2Tx_fn;
151578
+ var _logger2, _sandboxDir2, _auditor, _output, _ignoreInterfaces, _setupMetaRepos, setupMetaRepos_fn, _verifyBatchAndMeta, verifyBatchAndMeta_fn, _verifySafeTx, verifySafeTx_fn, _verify, verify_fn, _verifyCreate2Tx, verifyCreate2Tx_fn;
151579
151579
  var _Create2Verifier = class _Create2Verifier extends SafeBase {
151580
151580
  constructor(options) {
151581
151581
  const provider = new import_ethers3.ethers.providers.StaticJsonRpcProvider(
@@ -151600,6 +151600,7 @@ var _Create2Verifier = class _Create2Verifier extends SafeBase {
151600
151600
  __privateAdd(this, _sandboxDir2, void 0);
151601
151601
  __privateAdd(this, _auditor, void 0);
151602
151602
  __privateAdd(this, _output, []);
151603
+ __privateAdd(this, _ignoreInterfaces, false);
151603
151604
  if (options.sandboxDir) {
151604
151605
  __privateSet(this, _sandboxDir2, import_node_path3.default.resolve(options.sandboxDir));
151605
151606
  try {
@@ -151645,6 +151646,11 @@ if no options are provided, will verify all pending transactions from safe multi
151645
151646
  "--skip-cleanup",
151646
151647
  "Do not clean up sandbox dir on verification start"
151647
151648
  )
151649
+ ).addOption(
151650
+ new Option(
151651
+ "--ignore-interfaces",
151652
+ "Do not warn about audits of gearbox contracts/interfaces"
151653
+ )
151648
151654
  ).action(async (opts) => {
151649
151655
  const verifier = new _Create2Verifier(opts);
151650
151656
  await verifier.verify(opts);
@@ -151652,6 +151658,7 @@ if no options are provided, will verify all pending transactions from safe multi
151652
151658
  }
151653
151659
  async verify(opts) {
151654
151660
  const { batchFile, metaFile, safeTxHashes, skipCleanup } = opts;
151661
+ __privateSet(this, _ignoreInterfaces, !!opts.ignoreInterfaces);
151655
151662
  try {
151656
151663
  if (!skipCleanup) {
151657
151664
  await __privateMethod(this, _setupMetaRepos, setupMetaRepos_fn).call(this);
@@ -151694,6 +151701,7 @@ _logger2 = new WeakMap();
151694
151701
  _sandboxDir2 = new WeakMap();
151695
151702
  _auditor = new WeakMap();
151696
151703
  _output = new WeakMap();
151704
+ _ignoreInterfaces = new WeakMap();
151697
151705
  _setupMetaRepos = new WeakSet();
151698
151706
  setupMetaRepos_fn = async function() {
151699
151707
  __privateGet(this, _logger2).info("setting up meta repositories");
@@ -151764,6 +151772,9 @@ verify_fn = async function(create2txs, meta2) {
151764
151772
  }
151765
151773
  for (const file of match.files) {
151766
151774
  if (file.gearbox && !((_a2 = file.audits) == null ? void 0 : _a2.length)) {
151775
+ if (__privateGet(this, _ignoreInterfaces) && file.path.startsWith("contracts/interfaces")) {
151776
+ continue;
151777
+ }
151767
151778
  __privateGet(this, _logger2).warn(
151768
151779
  `No audits for file ${import_chalk.default.yellow(file.path)} in ${import_chalk.default.yellow(
151769
151780
  file.repo
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": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"