From 5bddb9b277ee22d4b30328d9fc5da92cedbb9ceb Mon Sep 17 00:00:00 2001 From: Shane Earley Date: Wed, 6 Dec 2023 13:53:33 -0500 Subject: [PATCH] Unpause contract --- contracts/ethereum/scripts/report.ts | 6 +----- scripts/ethereum/report.ts | 11 ++++------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/contracts/ethereum/scripts/report.ts b/contracts/ethereum/scripts/report.ts index ba6be3e84..7397f48bd 100644 --- a/contracts/ethereum/scripts/report.ts +++ b/contracts/ethereum/scripts/report.ts @@ -1,5 +1,5 @@ import { ethers } from "hardhat" -import { CasimirFactory, CasimirManager, CasimirUpkeep } from "../build/@types" +import { CasimirFactory, CasimirUpkeep } from "../build/@types" import { waitForNetwork } from "../helpers/network" void async function() { @@ -11,12 +11,8 @@ void async function() { const factory = await ethers.getContractAt("CasimirFactory", process.env.FACTORY_ADDRESS) as CasimirFactory const [managerId] = await factory.getManagerIds() const managerConfig = await factory.getManagerConfig(managerId) - const manager = await ethers.getContractAt("CasimirManager", managerConfig.managerAddress) as CasimirManager const upkeep = await ethers.getContractAt("CasimirUpkeep", managerConfig.upkeepAddress) as CasimirUpkeep const requestReport = await upkeep.connect(owner).requestReport() await requestReport.wait() - - // const unpause = await manager.connect(owner).setPaused(true) - // await unpause.wait() }() \ No newline at end of file diff --git a/scripts/ethereum/report.ts b/scripts/ethereum/report.ts index 44b630497..01912c0ba 100644 --- a/scripts/ethereum/report.ts +++ b/scripts/ethereum/report.ts @@ -1,9 +1,9 @@ import { loadCredentials, getSecret } from "@casimir/aws" -import { ETHEREUM_CONTRACTS, ETHEREUM_NETWORK_NAME } from "@casimir/env" +import { ETHEREUM_NETWORK_NAME } from "@casimir/env" import { run } from "@casimir/shell" /** - * Run a report on testnet + * Request a new report on testnet */ void async function () { if (process.env.USE_SECRETS !== "false") { @@ -13,10 +13,7 @@ void async function () { process.env.BIP39_SEED = process.env.BIP39_SEED || "inflict ball claim confirm cereal cost note dad mix donate traffic patient" } console.log(`Your mnemonic seed is ${process.env.BIP39_SEED}`) + const networkName = process.env.NETWORK?.toUpperCase() || "TESTNET" - process.env.SSV_NETWORK_ADDRESS = ETHEREUM_CONTRACTS["TESTNET"].SSV_NETWORK_ADDRESS - process.env.SSV_VIEWS_ADDRESS = ETHEREUM_CONTRACTS["TESTNET"].SSV_VIEWS_ADDRESS - process.env.SWAP_FACTORY_ADDRESS = ETHEREUM_CONTRACTS["TESTNET"].SWAP_FACTORY_ADDRESS - - run(`npm run report --workspace @casimir/ethereum -- --network ${ETHEREUM_NETWORK_NAME["TESTNET"]}`) + run(`npm run report --workspace @casimir/ethereum -- --network ${ETHEREUM_NETWORK_NAME[networkName]}`) }()