-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
43 lines (40 loc) · 960 Bytes
/
hardhat.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import dotenv from 'dotenv';
require("@nomicfoundation/hardhat-toolbox");
dotenv.config();
const ALCHEMY_API_KEY = process.env.ALCHEMY_API_KEY;
const GOERLI_PRIVATE_KEY = process.env.GOERLI_PRIVATE_KEY;
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.17",
defaultNetwork: "hardhat",
paths: {
artifacts: "./src/artifacts",
},
networks: {
hardhat: {
chainId: 1337
},
goerli: {
url: `https://eth-goerli.alchemyapi.io/v2/${ALCHEMY_API_KEY}`,
accounts: [GOERLI_PRIVATE_KEY]
},
'Mantle-Testnet': {
url: 'https://rpc.testnet.mantle.xyz/',
accounts: [process.env.PRIV_KEY]
}
},
external: {
contracts: [
{
artifacts: "@chainlink/contracts",
},
],
},
etherscan: {
// ... etherscan configuration options
},
// Add the following to use ethers.js with Hardhat
plugins: [
"@nomiclabs/hardhat-ethers",
],
};