-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
42 lines (40 loc) · 810 Bytes
/
Copy pathhardhat.config.js
File metadata and controls
42 lines (40 loc) · 810 Bytes
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
require("@nomiclabs/hardhat-ethers");
require('dotenv').config({ path: __dirname + '/.env' });
const { PRIVATE_KEY, API_URL_HEDERA, API_URL_DC_TESTNET, CHAIN_ID_DC } = process.env;
module.exports = {
solidity: {
compilers: [
{
version: "0.8.0"
},
{
version: "0.8.20"
},
{
version: "0.8.25"
}
]
},
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
defaultNetwork: "hedera",
networks: {
hardhat: {},
hedera: {
url: API_URL_HEDERA,
accounts: [`0x${PRIVATE_KEY}`],
gas: 6000000,
timeout: 200000
},
destination_chain: {
url: API_URL_DC_TESTNET,
chainId: parseInt(CHAIN_ID_DC, 10),
accounts: [`0x${PRIVATE_KEY}`],
gas: 6000000,
}
}
};