-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
49 lines (46 loc) · 1.27 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
import { HardhatUserConfig } from 'hardhat/config';
import '@nomicfoundation/hardhat-toolbox';
require('dotenv').config();
const config: HardhatUserConfig = {
solidity: {
version: '0.8.17'
},
networks: {
// for testnet
'base-goerli': {
url: 'https://goerli.base.org',
accounts: [process.env.WALLET_KEY as string]
},
// for local dev environment
'base-local': {
url: 'http://localhost:8545',
accounts: [process.env.WALLET_KEY as string]
}
},
defaultNetwork: 'hardhat',
// Hardhat expects etherscan here, even if you're using Blockscout.
etherscan: {
apiKey: {
// Uncomment for Blockscout
// No api key is needed for Basescan
// Blockscout
'base-goerli': process.env.BLOCKSCOUT_KEY as string
},
customChains: [
{
network: 'base-goerli',
chainId: 84531,
urls: {
// Pick a block explorer and uncomment those lines
// Blockscout
//apiURL: 'https://base-goerli.blockscout.com/api',
//browserURL: 'https://base-goerli.blockscout.com'
// Basescan by Etherscan
apiURL: 'https://api-goerli.basescan.org/api',
browserURL: 'https://goerli.basescan.org'
}
}
]
}
};
export default config;