forked from GemsGame/lottery-solidity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
111 lines (110 loc) · 2.42 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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require('hardhat-abi-exporter');
require('dotenv').config();
module.exports = {
etherscan: {
apiKey: {
coinex: process.env.COINEX_API_KEY,
},
customChains: [
{
network: "coinex",
chainId: 53,
urls: {
apiURL: "https://testnet.coinex.net/api/v1",
browserURL: "https://testnet.coinex.net"
}
},
{
network: "evmos",
chainId: 9000,
urls: {
apiURL: "",
browserURL: ""
}
}
],
},
networks: {
mumbai: {
url: "https://rpc-mumbai.maticvigil.com",
accounts: [process.env.PRIVATE_KEY],
network_id: 80001,
gasPrice: 'auto'
},
coinex: {
url: "https://testnet-rpc.coinex.net",
accounts: [process.env.PRIVATE_KEY],
network_id: 53,
gasPrice: 'auto',
},
evmos: {
url: "https://eth.bd.evmos.dev:8545",
accounts: [process.env.PRIVATE_KEY],
network_id: 9000,
gasPrice: 'auto'
},
moonbase: {
url: "https://rpc.api.moonbase.moonbeam.network",
accounts: [process.env.PRIVATE_KEY],
network_id: 1287,
gasPrice: 'auto'
},
celo: {
url: "https://alfajores-forno.celo-testnet.org",
accounts: [process.env.PRIVATE_KEY],
network_id: 44757,
gasPrice: 'auto'
},
klaytn: {
url: "https://public-node-api.klaytnapi.com/v1/baobab",
accounts: [process.env.PRIVATE_KEY],
network_id: 1001,
gasPrice: 'auto'
},
cube: {
url: "https://http-testnet-jp.cube.network",
accounts: [process.env.PRIVATE_KEY],
network_id: 1819,
gasPrice: 20000000000
},
aurora: {
url: "https://testnet.aurora.dev",
accounts: [process.env.PRIVATE_KEY],
network_id: 1313161555,
gasPrice: 'auto'
},
trust: {
url: "https://api.testnet-dev.trust.one",
accounts: [process.env.PRIVATE_KEY],
network_id: 15555
},
},
solidity: {
version: "0.8.16",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
mocha: {
timeout: 60000
},
abiExporter: {
path: './data/abi',
runOnCompile: true,
clear: true,
flat: true,
spacing: 2,
pretty: true,
}
};