-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
55 lines (49 loc) · 1 KB
/
Copy pathhardhat.config.js
File metadata and controls
55 lines (49 loc) · 1 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
require("@chainlink/env-enc").config();
require("@nomicfoundation/hardhat-toolbox");
require("hardhat-deploy");
require("./task");
const PRIVATE_KEY = process.env.ACCOUNT1_PRIVATE
const SEPOLIA_RPC_URL = process.env.SEPOLIA_RPC_URL
const AMOY_RPC_URL = process.env.AMOY_RPC_URL
module.exports = {
defaultNetwork: "hardhat", // hardhat sepolia
solidity:{
compilers: [
{
version: "0.8.27"
},
{
version: "0.8.19"
}
]
},
namedAccounts: {
account1: {
default: 0
}
},
networks: {
localhost: {
url: "http://127.0.0.1:8545",
chainId: 31337
},
sepolia: {
url: SEPOLIA_RPC_URL,
accounts: [PRIVATE_KEY],
chainId: 11155111,
blockConfirmations: 6,
companionNetworks: {
destChain: "amoy"
}
},
amoy: {
url: AMOY_RPC_URL,
accounts: [PRIVATE_KEY],
chainId: 80002,
blockConfirmations: 6,
companionNetworks: {
destChain: "sepolia"
}
}
},
};