-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
39 lines (37 loc) · 1021 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
require("@nomicfoundation/hardhat-toolbox");
// Task to list all accounts
task(
'accounts',
'Print List of all accounts with balances',
async (taskArgs, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
const balance = await account.getBalance();
console.log(account + " : " + balance);
}
}
)
const API_SEPOLIA_KEY = "PF-BRAa65EWNg_chNAgVzPlwX_ScyX2K";
const PRIVATE_KEY = "c2e30e588048137558857889b1f99602ff7f5f8ece130d7a74c3e3c853d0a183";
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.18",
paths: {
sources: './contracts',
artifacts: './src/artifacts'
},
defaultNetwork: 'hardhat',
networks: {
hardhat: {
chainID: 1337
},
goerli: {
url: 'https://goerli-testnet-node-url.com',
// accounts: [privateKey1, privateKey2]
},
sepolia: {
url: `https://eth-sepolia.g.alchemy.com/v2/${API_SEPOLIA_KEY}`,
accounts: [PRIVATE_KEY]
}
}
};