-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
47 lines (43 loc) · 1.06 KB
/
hardhat.config.js
File metadata and controls
47 lines (43 loc) · 1.06 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
require('@nomicfoundation/hardhat-toolbox')
require('dotenv').config()
const PRIVATE_KEY = process.env.PRIVATE_KEY || '0xkey'
const HUMANITY_TESTNET = process.env.HUMANITY_TESTNET || ''
const HUMANITY_API_URL = process.env.HUMANITY_API_URL || ''
const HUMANITY_BROWSER_URL = process.env.HUMANITY_BROWSER_URL || ''
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
compilers: [
{
version: '0.8.20',
},
],
},
defaultNetwork: 'hardhat',
networks: {
hardhat: {},
'humanity-testnet': {
url: HUMANITY_TESTNET,
accounts: PRIVATE_KEY !== '0xkey' ? [PRIVATE_KEY] : [],
},
localhost: {
url: 'http://127.0.0.1:8545/', // ? url running from npx hardhat node
chainId: 31337,
},
},
etherscan: {
apiKey: {
'humanity-testnet': 'empty',
},
customChains: [
{
network: 'humanity-testnet',
chainId: 7080969,
urls: {
apiURL: HUMANITY_API_URL,
browserURL: HUMANITY_BROWSER_URL,
},
},
],
},
}