mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
fixes
This commit is contained in:
parent
4138b37c58
commit
ddb0a55af5
|
@ -51,7 +51,7 @@ function getNetworkUrl(networkType: string) {
|
|||
if (networkType === "avalanche")
|
||||
return "https://api.avax.network/ext/bc/C/rpc";
|
||||
else if (networkType === "polygon")
|
||||
return `https://polygon-mainnet.g.alchemy.com/v2/${alchemyApiKey}`;
|
||||
return `https://polygon-mumbai.g.alchemy.com/v2/${alchemyApiKey}`;
|
||||
else if (networkType === "arbitrum")
|
||||
return `https://arb-mainnet.g.alchemy.com/v2/${alchemyApiKey}`;
|
||||
else return `https://eth-mainnet.alchemyapi.io/v2/${alchemyApiKey}`;
|
||||
|
@ -112,7 +112,7 @@ const config: HardhatUserConfig = {
|
|||
tests: "./test",
|
||||
},
|
||||
etherscan: {
|
||||
apiKey: getScanApiKey(getNetworkUrl(String(process.env.networkType))),
|
||||
apiKey: "VT3JEKZ573EIRIMBRREREV2NNJ18NVNI51",
|
||||
},
|
||||
typechain: {
|
||||
outDir: "typechain",
|
||||
|
|
|
@ -3,7 +3,7 @@ import inquirer from "inquirer";
|
|||
import { connectors, connectMapping } from "./connectors";
|
||||
import { join } from "path";
|
||||
|
||||
let start: number, end: number;
|
||||
let start: number, end: number, runchain: string;
|
||||
|
||||
async function connectorSelect(chain: string) {
|
||||
let { connector } = await inquirer.prompt([
|
||||
|
@ -46,18 +46,18 @@ async function deployRunner() {
|
|||
|
||||
let { choice1 } = await inquirer.prompt([
|
||||
{
|
||||
name: "choice",
|
||||
name: "choice1",
|
||||
message: "Do you wanna try deploy on hardhat first?",
|
||||
type: "list",
|
||||
choices: ["yes", "no"],
|
||||
},
|
||||
]);
|
||||
|
||||
if (choice1 === "yes") {
|
||||
chain = "hardhat";
|
||||
}
|
||||
runchain = choice1 === "yes" ? "hardhat" : chain;
|
||||
|
||||
console.log(`Deploying ${connector} on ${chain}, press (ctrl + c) to stop`);
|
||||
console.log(
|
||||
`Deploying ${connector} on ${runchain}, press (ctrl + c) to stop`
|
||||
);
|
||||
|
||||
start = Date.now();
|
||||
await execScript({
|
||||
|
@ -67,7 +67,7 @@ async function deployRunner() {
|
|||
"run",
|
||||
"scripts/deployment/deploy.ts",
|
||||
"--network",
|
||||
`${chain}`,
|
||||
`${runchain}`,
|
||||
],
|
||||
env: {
|
||||
connectorName: connector,
|
||||
|
|
Loading…
Reference in New Issue
Block a user