|
@@ -1,11 +1,13 @@
|
|
|
import "@nomicfoundation/hardhat-toolbox";
|
|
|
import { config as dotenvConfig } from "dotenv";
|
|
|
+import "hardhat-deploy";
|
|
|
import type { HardhatUserConfig } from "hardhat/config";
|
|
|
import type { NetworkUserConfig } from "hardhat/types";
|
|
|
import { resolve } from "path";
|
|
|
|
|
|
import "./tasks/accounts";
|
|
|
-import "./tasks/deploy";
|
|
|
+import "./tasks/greet";
|
|
|
+import "./tasks/taskDeploy";
|
|
|
|
|
|
const dotenvConfigPath: string = process.env.DOTENV_CONFIG_PATH || "./.env";
|
|
|
dotenvConfig({ path: resolve(__dirname, dotenvConfigPath) });
|
|
@@ -58,6 +60,9 @@ function getChainConfig(chain: keyof typeof chainIds): NetworkUserConfig {
|
|
|
|
|
|
const config: HardhatUserConfig = {
|
|
|
defaultNetwork: "hardhat",
|
|
|
+ namedAccounts: {
|
|
|
+ deployer: 0,
|
|
|
+ },
|
|
|
etherscan: {
|
|
|
apiKey: {
|
|
|
arbitrumOne: process.env.ARBISCAN_API_KEY || "",
|
|
@@ -83,6 +88,13 @@ const config: HardhatUserConfig = {
|
|
|
},
|
|
|
chainId: chainIds.hardhat,
|
|
|
},
|
|
|
+ ganache: {
|
|
|
+ accounts: {
|
|
|
+ mnemonic,
|
|
|
+ },
|
|
|
+ chainId: chainIds.ganache,
|
|
|
+ url: "http://localhost:8545",
|
|
|
+ },
|
|
|
arbitrum: getChainConfig("arbitrum-mainnet"),
|
|
|
avalanche: getChainConfig("avalanche"),
|
|
|
bsc: getChainConfig("bsc"),
|