-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
56 lines (51 loc) · 1.23 KB
/
hardhat.config.js
File metadata and controls
56 lines (51 loc) · 1.23 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
require("@nomicfoundation/hardhat-toolbox");
const path = require("path");
require("dotenv").config();
require('@openzeppelin/hardhat-upgrades');
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
compilers: [
{
version: "0.8.29",
},
{
version: "0.6.11",
},
],
},
paths: {
sources: "./src", // 🔁 Tell Hardhat to look in `src/` instead of `contracts/`
artifacts: "./artifacts",
cache: "./cache"
},
resolve: {
modules: [path.resolve(__dirname, "lib"), "node_modules"]
},
networks: {
hardhat: {
accounts: {
count: 20,
accountsBalance: "150000000000000000000000" // 150,000 ETH
}
},
pushchain: {
url: "https://evm.rpc-testnet-donut-node1.push.org/",
accounts: [process.env.PRIVATE]
,
},
pushlocalnet: {
url: "http://127.0.0.1:8545",
accounts: [process.env.PRIVATE]
,
},
sepolia: {
url: `https://sepolia.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: [process.env.PRIVATE]
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_PROJECT_ID}`,
accounts: [process.env.PRIVATE]
}
},
};