@gearbox-protocol/deploy-tools 1.6.0 → 1.6.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.js +20 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -372403,7 +372403,9 @@ var require_GearboxAddressTree = __commonJS({
|
|
|
372403
372403
|
__privateAdd(this, _visited, /* @__PURE__ */ new Map());
|
|
372404
372404
|
__privateAdd(this, _create2, /* @__PURE__ */ new Map());
|
|
372405
372405
|
__privateSet(this, _provider5, new ethers_1.JsonRpcProvider(options.rpcUrl, void 0, {
|
|
372406
|
-
staticNetwork: true
|
|
372406
|
+
staticNetwork: true,
|
|
372407
|
+
batchMaxCount: 1,
|
|
372408
|
+
cacheTimeout: -1
|
|
372407
372409
|
}));
|
|
372408
372410
|
__privateSet(this, _outFile, node_path_1.default.resolve(options.sandboxDir, "tree.json"));
|
|
372409
372411
|
__privateSet(this, _etherscan, new EtherscanVerifier_1.EtherscanVerifier(options));
|
|
@@ -387761,7 +387763,9 @@ var require_ZeroLT = __commonJS({
|
|
|
387761
387763
|
__privateAdd(this, _configrator, void 0);
|
|
387762
387764
|
__privateAdd(this, _provider5, void 0);
|
|
387763
387765
|
__privateSet(this, _provider5, new ethers_1.JsonRpcProvider(opts.rpcUrl, void 0, {
|
|
387764
|
-
staticNetwork: true
|
|
387766
|
+
staticNetwork: true,
|
|
387767
|
+
batchMaxCount: 1,
|
|
387768
|
+
cacheTimeout: -1
|
|
387765
387769
|
}));
|
|
387766
387770
|
}
|
|
387767
387771
|
async setLtZero() {
|
|
@@ -428697,7 +428701,7 @@ var require_package3 = __commonJS({
|
|
|
428697
428701
|
module2.exports = {
|
|
428698
428702
|
name: "@gearbox-protocol/deploy-tools",
|
|
428699
428703
|
description: "Gearbox deploy tools",
|
|
428700
|
-
version: "1.6.
|
|
428704
|
+
version: "1.6.1",
|
|
428701
428705
|
homepage: "https://gearbox.fi",
|
|
428702
428706
|
keywords: [
|
|
428703
428707
|
"gearbox"
|
|
@@ -428830,7 +428834,9 @@ var import_lib2 = __toESM(require_dist13());
|
|
|
428830
428834
|
function deploy() {
|
|
428831
428835
|
return new Command().name("deploy").description(
|
|
428832
428836
|
"Deploys transaction from multisig or batch dir onto testnet via impersonation"
|
|
428833
|
-
).addOption(
|
|
428837
|
+
).addOption(
|
|
428838
|
+
new Option("--anvil-url <url>", "anvil rpc url").env("ANVIL_URL").default("http://127.0.0.1:8545")
|
|
428839
|
+
).addOption(
|
|
428834
428840
|
new Option("--batch-dir [dir]", "Directory with batch json files")
|
|
428835
428841
|
).addOption(
|
|
428836
428842
|
new Option(
|
|
@@ -428853,7 +428859,10 @@ function deploy() {
|
|
|
428853
428859
|
).env("GITHUB_TOKEN")
|
|
428854
428860
|
).action(
|
|
428855
428861
|
async (options) => {
|
|
428856
|
-
const deployer = new import_lib2.Deployer(
|
|
428862
|
+
const deployer = new import_lib2.Deployer({
|
|
428863
|
+
...options,
|
|
428864
|
+
rpcUrl: options.anvilUrl
|
|
428865
|
+
});
|
|
428857
428866
|
if (!!options.batchRepo && !!options.batchCommittish && !!options.batchDir) {
|
|
428858
428867
|
await deployer.deployFromRepoDir(
|
|
428859
428868
|
options.batchRepo,
|
|
@@ -446511,7 +446520,9 @@ function updateEpoch() {
|
|
|
446511
446520
|
).action(async (options) => {
|
|
446512
446521
|
const { anvilUrl, addressProvider } = options;
|
|
446513
446522
|
const provider = new JsonRpcProvider(anvilUrl, void 0, {
|
|
446514
|
-
staticNetwork: true
|
|
446523
|
+
staticNetwork: true,
|
|
446524
|
+
batchMaxCount: 1,
|
|
446525
|
+
cacheTimeout: -1
|
|
446515
446526
|
});
|
|
446516
446527
|
const ap = import_typechain.IAddressProviderV3__factory.connect(addressProvider, provider);
|
|
446517
446528
|
const dc300Addr = await ap.getAddressOrRevert(
|
|
@@ -446591,7 +446602,9 @@ function warpTime() {
|
|
|
446591
446602
|
`attempting timewarp on ${anvilUrl} to ${timestamp} (${hex})`
|
|
446592
446603
|
);
|
|
446593
446604
|
const provider = new JsonRpcProvider(anvilUrl, void 0, {
|
|
446594
|
-
staticNetwork: true
|
|
446605
|
+
staticNetwork: true,
|
|
446606
|
+
batchMaxCount: 1,
|
|
446607
|
+
cacheTimeout: -1
|
|
446595
446608
|
});
|
|
446596
446609
|
const resp = await provider.send("anvil_setNextBlockTimestamp", [hex]);
|
|
446597
446610
|
console.log(resp);
|