-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
95 lines (91 loc) · 1.87 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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
import type { HardhatUserConfig, NetworkUserConfig } from "hardhat/types";
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-web3";
import "@nomiclabs/hardhat-truffle5";
import "hardhat-abi-exporter";
import "hardhat-contract-sizer";
import "solidity-coverage";
import "dotenv/config";
import "@xtools-at/hardhat-sourcify";
const zilliqaMainnet: NetworkUserConfig = {
url: "https://api.zilliqa.com/",
chainId: 32769,
accounts: [process.env.KEY_MAINNET!],
};
const zilliqaTestnet: NetworkUserConfig = {
url: "https://dev-api.zilliqa.com/",
chainId: 33101,
accounts: [process.env.KEY_TESTNET!],
};
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
networks: {
hardhat: {},
testnet: zilliqaTestnet,
mainnet: zilliqaMainnet,
},
solidity: {
compilers: [
{
version: "0.8.12",
settings: {
optimizer: {
enabled: true,
runs: 99999,
},
},
},
{
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 99999,
},
},
},
{
version: "0.6.6",
settings: {
optimizer: {
enabled: true,
runs: 99999,
},
},
},
{
version: "0.5.16",
settings: {
optimizer: {
enabled: true,
runs: 99999,
},
},
},
{
version: "0.4.18",
settings: {
optimizer: {
enabled: true,
runs: 99999,
},
},
},
],
},
paths: {
sources: "./contracts",
tests: "./tests",
cache: "./cache",
artifacts: "./artifacts",
},
mocha: {
timeout: 100000000,
},
// abiExporter: {
// path: "./data/abi",
// clear: true,
// flat: false,
// },
};
export default config;