-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathhardhat.config.ts
57 lines (53 loc) · 1.28 KB
/
hardhat.config.ts
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
import { task } from "hardhat/config";
import "@nomiclabs/hardhat-waffle";
import "@openzeppelin/hardhat-upgrades";
import "@typechain/hardhat";
// This is a sample Hardhat task. To learn how to create your own go to
// https://hardhat.org/guides/create-task.html
task("accounts", "Prints the list of accounts", async (args, hre) => {
const accounts = await hre.ethers.getSigners();
for (const account of accounts) {
console.log(await account.address);
}
});
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
export default {
defaultNetwork: "disco",
networks: {
hardhat: {
accounts: [{
privateKey: '0x2f6b8e2dc397013c43281c30e01bd6b67625031b2607b48fd72cc8c9aba08a3a',
balance: '10000000000000000000000'
}]
},
disco: {
url: "http://127.0.0.1:8545",
gas: 1000000,
timeout: 3600000
},
disco2: {
url: "http://127.0.0.1:8547",
gas: 1000000000,
timeout: 3600000
}
},
typechain: {
outDir: "src-gen/types",
target: "ethers-v5",
},
solidity: {
compilers: [
{
version: "0.6.2"
},
{
version: "0.7.0",
settings: { }
}
]
},
mocha: {
timeout: 36000000
}
};