-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
32 lines (31 loc) · 845 Bytes
/
Copy pathhardhat.config.js
File metadata and controls
32 lines (31 loc) · 845 Bytes
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
require('@nomicfoundation/hardhat-toolbox');
require('dotenv').config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: '0.8.19',
},
networks: {
// for mainnet
'base-mainnet': {
url: 'https://developer-access-mainnet.base.org',
accounts: [process.env.WALLET_KEY, process.env.WALLET2_KEY],
chainId: 8453,
},
// for testnet
'base-goerli': {
url: 'https://goerli.base.org',
accounts: [process.env.WALLET_KEY, process.env.WALLET2_KEY],
chainId: 84531,
gasPrice: 'auto',
},
// for local dev environment
'base-local': {
url: 'http://127.0.0.1:8545/',
accounts: [process.env.WALLET_KEY, process.env.WALLET2_KEY],
chainId: 31337,
gasPrice: 'auto',
},
},
defaultNetwork: 'base-local',
};