From 90fb01927ed8535b6323fe90fc059b3d9a48afb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Crist=C3=B3v=C3=A3o=20Honorato?= Date: Fri, 16 Aug 2024 13:32:01 +0200 Subject: [PATCH] Delete more leftover files --- .../contracts/src/deploy/createEIP1193.ts | 23 ------------- packages/contracts/src/deploy/verify.ts | 32 ------------------- 2 files changed, 55 deletions(-) delete mode 100644 packages/contracts/src/deploy/createEIP1193.ts delete mode 100644 packages/contracts/src/deploy/verify.ts diff --git a/packages/contracts/src/deploy/createEIP1193.ts b/packages/contracts/src/deploy/createEIP1193.ts deleted file mode 100644 index 63d2093..0000000 --- a/packages/contracts/src/deploy/createEIP1193.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Signer } from "ethers"; -import { EthereumProvider } from "hardhat/types"; - -import { EIP1193Provider } from "@gnosis-guild/zodiac-core"; - -export default function createAdapter({ - provider, - signer, -}: { - provider: EthereumProvider; - signer: Signer; -}): EIP1193Provider { - return { - request: async ({ method, params }) => { - if (method == "eth_sendTransaction") { - const { hash } = await signer.sendTransaction((params as any[])[0]); - return hash; - } - - return provider.request({ method, params }); - }, - }; -} diff --git a/packages/contracts/src/deploy/verify.ts b/packages/contracts/src/deploy/verify.ts deleted file mode 100644 index 65fac10..0000000 --- a/packages/contracts/src/deploy/verify.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { HardhatRuntimeEnvironment } from "hardhat/types"; -import { DeployFunction } from "hardhat-deploy/types"; -import { TASK_ETHERSCAN_VERIFY } from "hardhat-deploy"; - -const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { - const { run } = hre; - if (!["goerli", "mainnet", "ropsten"].includes(hre.network.name)) { - return; - } - - if (!process.env.INFURA_KEY) { - console.log( - `Could not find Infura key in env, unable to connect to network ${hre.network.name}` - ); - return; - } - - console.log("Verification of Exit Module in etherscan..."); - console.log("Waiting for 1 minute before verifying contracts..."); - // Etherscan needs some time to process before trying to verify. - await new Promise((resolve) => setTimeout(resolve, 60000)); - - console.log("Starting to verify now"); - - await run(TASK_ETHERSCAN_VERIFY, { - apiKey: process.env.ETHERSCAN_KEY_API, - license: "GPL-3.0", - solcInput: true, - forceLicense: true, // we need this because contracts license is LGPL-3.0-only - }); -}; -export default func;