-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
61 lines (59 loc) · 1.5 KB
/
hardhat.config.ts
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
57
58
59
60
61
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
require('dotenv').config();
import "@nomicfoundation/hardhat-ethers";
import "@nomicfoundation/hardhat-chai-matchers";
import "@typechain/hardhat";
import "hardhat-gas-reporter";
import "solidity-coverage";
import "@nomicfoundation/hardhat-verify";
import "hardhat-deploy";
import "hardhat-deploy-ethers";
const config: HardhatUserConfig = {
solidity: {
version: '0.8.27',
},
defaultNetwork: "base-sepolia",
namedAccounts: {
deployer: {
// By default, it will take the first Hardhat account as the deployer
default: 0,
},
},
networks: {
// for mainnet
'base-mainnet': {
url: 'https://mainnet.base.org',
accounts: [process.env.WALLET_KEY as string],
gasPrice: 1000000000,
},
// for testnet
'base-sepolia': {
url: 'https://sepolia.base.org',
accounts: [process.env.WALLET_KEY as string],
gasPrice: 1000000000,
},
// for local dev environment
'base-local': {
url: 'http://localhost:8545',
accounts: [process.env.WALLET_KEY as string],
gasPrice: 1000000000,
},
},
etherscan: {
apiKey: {
"base-sepolia": process.env.APIKEY as string,
},
customChains: [
{
network: "base-sepolia",
chainId: 84532,
urls: {
apiURL: "https://api-sepolia.basescan.org/api",
browserURL: "https://sepolia.basescan.org"
}
}
]
},
};
export default config;