@gearbox-protocol/deploy-tools 2.1.1 → 2.1.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 +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -355340,7 +355340,7 @@ var require_package3 = __commonJS({
|
|
|
355340
355340
|
module2.exports = {
|
|
355341
355341
|
name: "@gearbox-protocol/deploy-tools",
|
|
355342
355342
|
description: "Gearbox deploy tools",
|
|
355343
|
-
version: "2.1.
|
|
355343
|
+
version: "2.1.1",
|
|
355344
355344
|
homepage: "https://gearbox.fi",
|
|
355345
355345
|
keywords: [
|
|
355346
355346
|
"gearbox"
|
|
@@ -372645,7 +372645,7 @@ function updateEpoch() {
|
|
|
372645
372645
|
return new Command().name("update-epoch").description(
|
|
372646
372646
|
"finds all Pool_v3 -> PQK -> Gauge and calls updateRates on each PQK on behalf of impersonated gauge"
|
|
372647
372647
|
).addOption(
|
|
372648
|
-
new Option("--anvil-url <url>", "anvil rpc url").env("ANVIL_URL")
|
|
372648
|
+
new Option("--anvil-url <url>", "anvil rpc url").default("http://127.0.0.1:8545").env("ANVIL_URL")
|
|
372649
372649
|
).addOption(
|
|
372650
372650
|
new Option("--address-provider <hex>", "address provider address").env(
|
|
372651
372651
|
"ADDRESS_PROVIDER"
|
|
@@ -372724,11 +372724,11 @@ function warpTime() {
|
|
|
372724
372724
|
return new Command().name("warp-time").description("Sets next block timestamp on anvil").addArgument(
|
|
372725
372725
|
new Argument("<timestamp>", "Timestamp. Can accept 'now' value")
|
|
372726
372726
|
).addOption(
|
|
372727
|
-
new Option("--anvil-url <url>", "anvil rpc url").env("ANVIL_URL")
|
|
372727
|
+
new Option("--anvil-url <url>", "anvil rpc url").default("http://127.0.0.1:8545").env("ANVIL_URL")
|
|
372728
372728
|
).action(
|
|
372729
372729
|
async (timestampStr, options) => {
|
|
372730
372730
|
const { anvilUrl } = options;
|
|
372731
|
-
let timestamp = (/* @__PURE__ */ new Date()).getTime() / 1e3;
|
|
372731
|
+
let timestamp = Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3);
|
|
372732
372732
|
if (timestampStr !== "now") {
|
|
372733
372733
|
timestamp = parseInt(timestampStr, 10);
|
|
372734
372734
|
}
|