-
Notifications
You must be signed in to change notification settings - Fork 6
/
hardhat.config.js
82 lines (81 loc) · 2.07 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-waffle");
require("@openzeppelin/hardhat-upgrades");
require("dotenv").config();
require("hardhat-abi-exporter");
require("hardhat-contract-sizer");
require("hardhat-deploy");
require("hardhat-deploy-ethers");
require("solidity-coverage");
require("./tasks/transfer-ownerships");
module.exports = {
solidity: {
compilers: [
{
version: "0.8.10",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
defaultNetwork: "hardhat",
networks: {
hardhat: {},
avalanche: {
url: "https://api.avax.network/ext/bc/C/rpc",
accounts: process.env.DEPLOY_PRIVATE_KEY
? [process.env.DEPLOY_PRIVATE_KEY]
: [],
chainId: 43114,
live: true,
saveDeployments: true,
gasPrice: 225_000_000_000,
},
fuji: {
url: "https://api.avax-test.network/ext/bc/C/rpc",
gasPrice: 225_000_000_000,
gasLimit: 8_000_000_000,
chainId: 43113,
accounts: process.env.DEPLOY_PRIVATE_KEY
? [process.env.DEPLOY_PRIVATE_KEY]
: [],
},
bscTestnet: {
url: process.env.BSC_TESTNET_RPC_ENDPOINT,
gasPrice: 20_000_000_000,
chainId: 97,
accounts: process.env.BSC_TESTNET_DEPLOYER
? [process.env.BSC_TESTNET_DEPLOYER]
: [],
},
bsc: {
url: process.env.BSC_RPC_ENDPOINT,
gasPrice: 5_000_000_000,
chainId: 56,
accounts: process.env.BSC_TESTNET_DEPLOYER
? [process.env.BSC_TESTNET_DEPLOYER]
: [],
},
},
contractSizer: {
strict: true,
},
namedAccounts: {
deployer: 0,
dev: 1,
},
etherscan: {
apiKey: {
// See https://hardhat.org/plugins/nomiclabs-hardhat-etherscan.html#multiple-api-keys-and-alternative-block-explorers
avalanche: process.env.SNOWTRACE_API_KEY,
avalancheFujiTestnet: process.env.SNOWTRACE_API_KEY,
bscTestnet: process.env.BSC_API_KEY,
bsc: process.env.BSC_API_KEY,
},
},
};