From 30a1939c424feaa531476be5b299c8683ae65910 Mon Sep 17 00:00:00 2001 From: pradyuman-verma Date: Fri, 10 Dec 2021 17:14:36 +0530 Subject: [PATCH] updated scripts --- ...{deployAvaxConnector.ts => deployAndVerifyOnSourcify.ts} | 2 +- scripts/deployment/deployCompoundMapping.ts | 2 +- scripts/deployment/deployConnectorsFromCmd.ts | 6 +++--- scripts/deployment/deployInstaMappingController.ts | 2 +- scripts/deployment/deployMappingContract.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) rename scripts/deployment/{deployAvaxConnector.ts => deployAndVerifyOnSourcify.ts} (94%) diff --git a/scripts/deployment/deployAvaxConnector.ts b/scripts/deployment/deployAndVerifyOnSourcify.ts similarity index 94% rename from scripts/deployment/deployAvaxConnector.ts rename to scripts/deployment/deployAndVerifyOnSourcify.ts index 645a3b98..4aee27e8 100644 --- a/scripts/deployment/deployAvaxConnector.ts +++ b/scripts/deployment/deployAndVerifyOnSourcify.ts @@ -1,4 +1,4 @@ -import * as hre from "hardhat"; +import hre from "hardhat"; const { ethers, deployments, getUnnamedAccounts } = hre; const { deploy } = deployments; diff --git a/scripts/deployment/deployCompoundMapping.ts b/scripts/deployment/deployCompoundMapping.ts index 3534208d..a5c78cd8 100644 --- a/scripts/deployment/deployCompoundMapping.ts +++ b/scripts/deployment/deployCompoundMapping.ts @@ -1,4 +1,4 @@ -import * as hre from "hardhat"; +import hre from "hardhat"; const { ethers } = hre; async function main() { const CONNECTORS_V2 = "0x97b0B3A8bDeFE8cB9563a3c610019Ad10DB8aD11"; diff --git a/scripts/deployment/deployConnectorsFromCmd.ts b/scripts/deployment/deployConnectorsFromCmd.ts index 39c55bdc..f3c24f45 100644 --- a/scripts/deployment/deployConnectorsFromCmd.ts +++ b/scripts/deployment/deployConnectorsFromCmd.ts @@ -1,5 +1,5 @@ -import * as fs from "fs"; -import * as hre from "hardhat" +import fs from "fs"; +import hre from "hardhat" const { ethers, network, config } = hre; let args = process.argv; @@ -30,7 +30,7 @@ if (!params.hasOwnProperty("gasPrice")) { process.exit(-1); } -let privateKey = process.env.PRIVATE_KEY; +let privateKey = String(process.env.PRIVATE_KEY); let provider = new ethers.providers.JsonRpcProvider( config.networks[params["network"]].url ); diff --git a/scripts/deployment/deployInstaMappingController.ts b/scripts/deployment/deployInstaMappingController.ts index abdacfb8..daeed499 100644 --- a/scripts/deployment/deployInstaMappingController.ts +++ b/scripts/deployment/deployInstaMappingController.ts @@ -1,4 +1,4 @@ -import * as hre from "hardhat"; +import hre from "hardhat"; const { ethers } = hre; async function main() { diff --git a/scripts/deployment/deployMappingContract.ts b/scripts/deployment/deployMappingContract.ts index c55d9991..69a4bc4d 100644 --- a/scripts/deployment/deployMappingContract.ts +++ b/scripts/deployment/deployMappingContract.ts @@ -1,4 +1,4 @@ -import * as hre from "hardhat"; +import hre from "hardhat"; const { ethers } = hre; async function main() {