@gearbox-protocol/deploy-tools 1.6.0-next.14 → 1.6.0-next.15
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.js +28 -23
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -313898,12 +313898,13 @@ var require_SafeHelper = __commonJS({
|
|
|
313898
313898
|
var SIG_QUEUE = "0x3a66f901";
|
|
313899
313899
|
var _pending, _pairedExecutions, _tenderly, _init, init_fn, _impersonateSafe, impersonateSafe_fn, _validateTransaction, validateTransaction_fn, _validateMultisend, validateMultisend_fn, _validateSingle, validateSingle_fn, _execute, execute_fn, _getPairedExecute, getPairedExecute_fn;
|
|
313900
313900
|
var _SafeHelper = class _SafeHelper extends SafeBase_1.SafeBase {
|
|
313901
|
-
constructor(
|
|
313901
|
+
constructor(options) {
|
|
313902
|
+
const { multisig, safeApi, rpcURL } = options;
|
|
313902
313903
|
const provider = new ethers_1.ethers.providers.StaticJsonRpcProvider({
|
|
313903
|
-
url:
|
|
313904
|
+
url: rpcURL,
|
|
313904
313905
|
timeout: 3e5
|
|
313905
313906
|
});
|
|
313906
|
-
super(provider,
|
|
313907
|
+
super(provider, { multisig, safeApi });
|
|
313907
313908
|
__privateAdd(this, _init);
|
|
313908
313909
|
/**
|
|
313909
313910
|
* Impersonates safe and:
|
|
@@ -313930,7 +313931,7 @@ var require_SafeHelper = __commonJS({
|
|
|
313930
313931
|
__privateAdd(this, _pending, []);
|
|
313931
313932
|
__privateAdd(this, _pairedExecutions, []);
|
|
313932
313933
|
__privateAdd(this, _tenderly, void 0);
|
|
313933
|
-
__privateSet(this, _tenderly,
|
|
313934
|
+
__privateSet(this, _tenderly, rpcURL.includes("tenderly"));
|
|
313934
313935
|
}
|
|
313935
313936
|
/**
|
|
313936
313937
|
* Executes all found pending transactions, returns array of safe tx hashes
|
|
@@ -369201,7 +369202,7 @@ var require_GearboxAddressTree = __commonJS({
|
|
|
369201
369202
|
__privateAdd(this, _queue, new queue_1.default({ concurrency: 5 }));
|
|
369202
369203
|
__privateAdd(this, _visited, /* @__PURE__ */ new Map());
|
|
369203
369204
|
__privateAdd(this, _create2, /* @__PURE__ */ new Map());
|
|
369204
|
-
__privateSet(this, _provider, new ethers_1.ethers.providers.StaticJsonRpcProvider(options.
|
|
369205
|
+
__privateSet(this, _provider, new ethers_1.ethers.providers.StaticJsonRpcProvider(options.rpcURL));
|
|
369205
369206
|
__privateSet(this, _outFile, node_path_1.default.resolve(options.sandboxDir, "tree.json"));
|
|
369206
369207
|
__privateSet(this, _etherscan, new EtherscanVerifier_1.EtherscanVerifier(options));
|
|
369207
369208
|
__privateSet(this, _verifier, new Verifier_1.default());
|
|
@@ -373769,7 +373770,7 @@ var require_UpdateParser = __commonJS({
|
|
|
373769
373770
|
var _logger, _output2, _parseSafeTxHashes, parseSafeTxHashes_fn, _parseBatchAndMeta, parseBatchAndMeta_fn, _parseNormalizedBatch, parseNormalizedBatch_fn, _parseNormalizedTx, parseNormalizedTx_fn, _collectCreate2Addresses, collectCreate2Addresses_fn;
|
|
373770
373771
|
var UpdateParser2 = class extends SafeBase_1.SafeBase {
|
|
373771
373772
|
constructor(opts) {
|
|
373772
|
-
const provider = new ethers_1.ethers.providers.StaticJsonRpcProvider(opts.
|
|
373773
|
+
const provider = new ethers_1.ethers.providers.StaticJsonRpcProvider(opts.rpcURL);
|
|
373773
373774
|
super(provider, opts);
|
|
373774
373775
|
__privateAdd(this, _parseSafeTxHashes);
|
|
373775
373776
|
__privateAdd(this, _parseBatchAndMeta);
|
|
@@ -414759,7 +414760,7 @@ var require_package3 = __commonJS({
|
|
|
414759
414760
|
module2.exports = {
|
|
414760
414761
|
name: "@gearbox-protocol/deploy-tools",
|
|
414761
414762
|
description: "Gearbox deploy tools",
|
|
414762
|
-
version: "1.6.0-next.
|
|
414763
|
+
version: "1.6.0-next.14",
|
|
414763
414764
|
homepage: "https://gearbox.fi",
|
|
414764
414765
|
keywords: [
|
|
414765
414766
|
"gearbox"
|
|
@@ -414887,19 +414888,26 @@ function copyMultisig() {
|
|
|
414887
414888
|
"Copies transactions from safe multisig to anvil (or tenderly) fork using multisig impersonation"
|
|
414888
414889
|
).addOption(
|
|
414889
414890
|
new Option(
|
|
414890
|
-
"--
|
|
414891
|
-
"
|
|
414892
|
-
)
|
|
414893
|
-
).
|
|
414894
|
-
|
|
414895
|
-
|
|
414896
|
-
|
|
414897
|
-
|
|
414898
|
-
|
|
414899
|
-
|
|
414891
|
+
"--disable-paired-execute",
|
|
414892
|
+
"Disable creation and execution of paired executeTrransaction for timelock.queueTransaction"
|
|
414893
|
+
)
|
|
414894
|
+
).addOption(
|
|
414895
|
+
new Option(
|
|
414896
|
+
"--always-warp-time",
|
|
414897
|
+
"Warp time even after queueTransactions"
|
|
414898
|
+
)
|
|
414899
|
+
).action(
|
|
414900
|
+
async (options) => {
|
|
414901
|
+
const safeHelper = new import_lib2.SafeHelper(options);
|
|
414902
|
+
const executed = await safeHelper.run(options);
|
|
414903
|
+
try {
|
|
414904
|
+
(0, import_core.exportVariable)("EXECUTED_TRANSACTIONS", executed.join(","));
|
|
414905
|
+
} catch (e) {
|
|
414906
|
+
console.warn(`Failed to set EXECUTED_TRANSACTIONS: ${e}`);
|
|
414907
|
+
}
|
|
414908
|
+
console.log("done");
|
|
414900
414909
|
}
|
|
414901
|
-
|
|
414902
|
-
});
|
|
414910
|
+
);
|
|
414903
414911
|
}
|
|
414904
414912
|
|
|
414905
414913
|
// src/commands/parse.ts
|
|
@@ -416035,10 +416043,7 @@ program2.addCommand(verifyEtherscan());
|
|
|
416035
416043
|
program2.addCommand(parse2());
|
|
416036
416044
|
program2.commands.forEach((cmd) => {
|
|
416037
416045
|
cmd.addOption(
|
|
416038
|
-
new Option(
|
|
416039
|
-
"--mainnet-rpc <url>",
|
|
416040
|
-
"mainnet rpc provider, used by safe api"
|
|
416041
|
-
).default("https://rpc.ankr.com/eth").env("MAINNET_RPC_URL")
|
|
416046
|
+
new Option("--rpc-url <url>", "rpc provider url").default("https://rpc.ankr.com/eth").env("RPC_URL")
|
|
416042
416047
|
).addOption(
|
|
416043
416048
|
new Option(
|
|
416044
416049
|
"--cache-policy [never|only]",
|