-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
47 lines (45 loc) · 1.2 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
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
require("hardhat-deploy");
require("hardhat-contract-sizer");
require("hardhat-gas-reporter");
// Replace this private key with your Harmony account private key
// To export your private key from Metamask, open Metamask and
// go to Account Details > Export Private Key
// Be aware of NEVER putting real Ether into testing accounts
const HARMONY_PRIVATE_KEY = "insert private key here";
module.exports = {
solidity: {
version: "0.8.4",
optimizer: {
enabled: true,
runs: 200
}
},
networks: {
hardhat: {
gas: 100000000,
blockGasLimit: 0x1fffffffffffff
},
testnet: {
url: "https://api.s0.b.hmny.io",
chainId: 1666700000,
accounts: [`${HARMONY_PRIVATE_KEY}`]
},
mainnet: {
url: "https://api.s0.t.hmny.io",
chainId: 1666600000,
accounts: [`${HARMONY_PRIVATE_KEY}`]
},
},
namedAccounts: {
deployer: 0,
},
paths: {
deploy: "deploy",
deployments: "deployments",
},
mocha: {
timeout: 1000000
}
};