@gearbox-protocol/deploy-tools 1.7.0 → 1.7.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -14
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -341435,7 +341435,7 @@ var require_Deployer2 = __commonJS({
341435
341435
  var helpers_1 = require_helpers();
341436
341436
  var log_1 = __importDefault3(require_log());
341437
341437
  var SafeBase_1 = require_SafeBase();
341438
- var _logger, _provider5, _tenderly, _governor, _testnetExecutor, _deployerAddress, _keepEta, _sandboxDir, _cachePolicy, _deploy, deploy_fn, _init, init_fn;
341438
+ var _logger, _provider5, _tenderly, _governor, _testnetExecutor, _deployerAddress, _keepEta, _sandboxDir, _deploy, deploy_fn, _init, init_fn;
341439
341439
  var Deployer2 = class extends SafeBase_1.SafeBase {
341440
341440
  constructor(options) {
341441
341441
  const { multisig, safeApi, rpcUrl } = options;
@@ -341453,7 +341453,6 @@ var require_Deployer2 = __commonJS({
341453
341453
  __privateAdd(this, _deployerAddress, void 0);
341454
341454
  __privateAdd(this, _keepEta, void 0);
341455
341455
  __privateAdd(this, _sandboxDir, void 0);
341456
- __privateAdd(this, _cachePolicy, void 0);
341457
341456
  __privateSet(this, _provider5, new ethers_1.JsonRpcProvider(rpcUrl, void 0, {
341458
341457
  staticNetwork: true,
341459
341458
  batchMaxCount: 1,
@@ -341462,7 +341461,6 @@ var require_Deployer2 = __commonJS({
341462
341461
  __privateSet(this, _tenderly, rpcUrl.includes("tenderly"));
341463
341462
  __privateSet(this, _deployerAddress, options.deployerAddress);
341464
341463
  __privateSet(this, _keepEta, options.keepEta);
341465
- __privateSet(this, _cachePolicy, options.cachePolicy);
341466
341464
  __privateSet(this, _sandboxDir, node_path_1.default.resolve(options.sandboxDir, "deployer"));
341467
341465
  (0, node_fs_1.mkdirSync)(__privateGet(this, _sandboxDir), { recursive: true });
341468
341466
  }
@@ -341517,12 +341515,12 @@ var require_Deployer2 = __commonJS({
341517
341515
  repo,
341518
341516
  sandboxDir: __privateGet(this, _sandboxDir),
341519
341517
  commit: committish,
341520
- destDir: node_path_1.default.join(repo, committish),
341521
- disablePull: __privateGet(this, _cachePolicy) === "only"
341518
+ destDir: node_path_1.default.join(repo, committish)
341522
341519
  });
341523
341520
  const batchDir = node_path_1.default.resolve(__privateGet(this, _sandboxDir), repo, committish, dir);
341524
341521
  __privateGet(this, _logger).debug(`will deploy batches from ${batchDir}`);
341525
341522
  await this.deployFromBatchDir(batchDir);
341523
+ await (0, promises_1.rm)(__privateGet(this, _sandboxDir), { force: true, recursive: true });
341526
341524
  }
341527
341525
  };
341528
341526
  _logger = new WeakMap();
@@ -341533,7 +341531,6 @@ var require_Deployer2 = __commonJS({
341533
341531
  _deployerAddress = new WeakMap();
341534
341532
  _keepEta = new WeakMap();
341535
341533
  _sandboxDir = new WeakMap();
341536
- _cachePolicy = new WeakMap();
341537
341534
  _deploy = new WeakSet();
341538
341535
  deploy_fn = async function(queue, execute) {
341539
341536
  var _a;
@@ -384954,7 +384951,7 @@ var require_UpdateParser = __commonJS({
384954
384951
  var parsers_1 = require_parsers2();
384955
384952
  var SafeBase_1 = require_SafeBase();
384956
384953
  var types_1 = require_types30();
384957
- var _logger, _sandboxDir, _cachePolicy, _output2, _parseSafeTxHashes, parseSafeTxHashes_fn, _parseBatchRepoDir, parseBatchRepoDir_fn, _parseBatchDir, parseBatchDir_fn, _parseNormalizedBatch, parseNormalizedBatch_fn, _parseNormalizedTx, parseNormalizedTx_fn, _collectCreate2Addresses, collectCreate2Addresses_fn;
384954
+ var _logger, _sandboxDir, _output2, _parseSafeTxHashes, parseSafeTxHashes_fn, _parseBatchRepoDir, parseBatchRepoDir_fn, _parseBatchDir, parseBatchDir_fn, _parseNormalizedBatch, parseNormalizedBatch_fn, _parseNormalizedTx, parseNormalizedTx_fn, _collectCreate2Addresses, collectCreate2Addresses_fn;
384958
384955
  var UpdateParser2 = class extends SafeBase_1.SafeBase {
384959
384956
  constructor(options) {
384960
384957
  super(options);
@@ -384966,12 +384963,10 @@ var require_UpdateParser = __commonJS({
384966
384963
  __privateAdd(this, _collectCreate2Addresses);
384967
384964
  __privateAdd(this, _logger, log_1.default.getSubLogger({ name: "parser" }));
384968
384965
  __privateAdd(this, _sandboxDir, void 0);
384969
- __privateAdd(this, _cachePolicy, void 0);
384970
384966
  __privateAdd(this, _output2, {
384971
384967
  addresses: {},
384972
384968
  updates: []
384973
384969
  });
384974
- __privateSet(this, _cachePolicy, options.cachePolicy);
384975
384970
  __privateSet(this, _sandboxDir, node_path_1.default.resolve(options.sandboxDir, "parser"));
384976
384971
  (0, node_fs_1.mkdirSync)(__privateGet(this, _sandboxDir), { recursive: true });
384977
384972
  }
@@ -384989,7 +384984,6 @@ var require_UpdateParser = __commonJS({
384989
384984
  };
384990
384985
  _logger = new WeakMap();
384991
384986
  _sandboxDir = new WeakMap();
384992
- _cachePolicy = new WeakMap();
384993
384987
  _output2 = new WeakMap();
384994
384988
  _parseSafeTxHashes = new WeakSet();
384995
384989
  parseSafeTxHashes_fn = async function(hashes) {
@@ -385001,12 +384995,12 @@ var require_UpdateParser = __commonJS({
385001
384995
  repo,
385002
384996
  sandboxDir: __privateGet(this, _sandboxDir),
385003
384997
  commit: committish,
385004
- destDir: node_path_1.default.join(repo, committish),
385005
- disablePull: __privateGet(this, _cachePolicy) === "only"
384998
+ destDir: node_path_1.default.join(repo, committish)
385006
384999
  });
385007
385000
  const batchDir = node_path_1.default.resolve(__privateGet(this, _sandboxDir), repo, committish, dir);
385008
385001
  __privateGet(this, _logger).debug(`will parse batches from ${batchDir}`);
385009
385002
  await __privateMethod(this, _parseBatchDir, parseBatchDir_fn).call(this, batchDir);
385003
+ await (0, promises_1.rm)(__privateGet(this, _sandboxDir), { force: true, recursive: true });
385010
385004
  };
385011
385005
  _parseBatchDir = new WeakSet();
385012
385006
  parseBatchDir_fn = async function(dir) {
@@ -430605,7 +430599,7 @@ var require_package3 = __commonJS({
430605
430599
  module2.exports = {
430606
430600
  name: "@gearbox-protocol/deploy-tools",
430607
430601
  description: "Gearbox deploy tools",
430608
- version: "1.6.2",
430602
+ version: "1.7.1",
430609
430603
  homepage: "https://gearbox.fi",
430610
430604
  keywords: [
430611
430605
  "gearbox"
@@ -448000,7 +447994,9 @@ program2.commands.forEach((cmd) => {
448000
447994
  "--sandbox-dir <dir>",
448001
447995
  "directory for intermediate results and cache"
448002
447996
  ).default("./sandbox")
448003
- ).addOption(new Option("--log-level [info]", "log level")).addOption(new Option("--out-file [json]", "save output as json")).addOption(
447997
+ ).addOption(new Option("--log-level [info]", "log level")).addOption(
447998
+ new Option("--out-file [json]", "save output as json").env("OUT_FILE")
447999
+ ).addOption(
448004
448000
  new Option("--pretty", "pretty-print output event when saving to json")
448005
448001
  ).addOption(
448006
448002
  new Option("--multisig <string>", "multisig contract address").default("0xA7D5DDc1b8557914F158076b228AA91eF613f1D5").env("MULTISIG")
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.7.0",
4
+ "version": "1.7.2",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"