-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
45 lines (42 loc) · 1003 Bytes
/
hardhat.config.js
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
require('dotenv').config({path: './.env'});
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
// require('@openzeppelin/hardhat-upgrades')
const deploymentAccount = process.env.PRIVATE_KEY
console.log(`Deployment account: ${deploymentAccount}`)
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: "0.8.15",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
networks: {
hardhat: {
gasPrice: 225000000000,
chainId: 1337,
accounts: {
accountsBalance: '1000000000000000000000000',
count: 10
}
},
fuji: {
url: "https://api.avax-test.network/ext/bc/C/rpc",
gasPrice: 225000000000,
chainId: 43113,
accounts: [deploymentAccount]
},
avax: {
url: "https://api.avax.network/ext/bc/C/rpc",
gasPrice: 225000000000,
chainId: 43114,
accounts: [deploymentAccount]
}
}
};