-
Notifications
You must be signed in to change notification settings - Fork 6
/
hardhat.config.js
64 lines (63 loc) · 1.41 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
require("@nomicfoundation/hardhat-toolbox");
require('dotenv').config();
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require("@nomicfoundation/hardhat-network-helpers");
require('hardhat-abi-exporter');
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
networks: {
hardhat: {
},
bscTestnet: {
url: process.env.BSCTESTNET_RPC_PROVIDER,
accounts: [process.env.PRIVATE_KEY]
},
goerli: {
url: process.env.GOERLI_RPC_PROVIDER,
accounts: [process.env.PRIVATE_KEY]
},
ftmTestnet: {
url: process.env.FTMTESTNET_RPC_PROVIDER,
accounts: [process.env.PRIVATE_KEY]
},
fuji: {
url: process.env.AVAXTESTNET_RPC_PROVIDER,
accounts: [process.env.PRIVATE_KEY]
},
moonbase: {
url: process.env.MOONBASE_RPC_PROVIDER,
accounts: [process.env.PRIVATE_KEY]
}
},
etherscan: {
apiKey: {
goerli: process.env.ETHERSCAN_API_KEY,
bscTestnet: process.env.BSCSCAN_API_KEY,
ftmTestnet: process.env.FTMSCAN_API_KEY
}
},
abiExporter: [
{
path: './abi/json',
format: "json",
},
{
path: './abi/minimal',
format: "minimal",
},
{
path: './abi/fullName',
format: "fullName",
},
]
};