forked from cfork/defisaver-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle.js
55 lines (52 loc) · 1.33 KB
/
truffle.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
const path = require("path");
const dotenv = require('dotenv').config();
const HDWalletProvider = require('@truffle/hdwallet-provider');
const mnemonic = process.env.ETHEREUM_ACCOUNT_MNEMONIC;
module.exports = {
api_keys: {
etherscan: process.env.ETHERSCAN_API_KEY
},
plugins: [
'truffle-plugin-verify',
'@chainsafe/truffle-plugin-abigen'
],
networks: {
mainnet: {
provider: function() {
return new HDWalletProvider(mnemonic, process.env.ALCHEMY_NODE);
},
network_id: '1',
gasPrice: 45100000000, // 8.1 gwei
skipDryRun: true,
},
kovan: {
provider: function() {
return new HDWalletProvider(mnemonic, process.env.KOVAN_INFURA_ENDPOINT, 0, 15);
},
network_id: '42',
gas: 8000000,
gasPrice: 3000000000,
// skipDryRun: true,
},
moonnet: {
provider: function() {
return new HDWalletProvider('0x4f3edf983ac636a65a842ce7c78d9aa706d3b113bce9c46f30d7d21715b23b1d', process.env.MOON_NET_NODE);
},
network_id: '1',
gas: 6700000,
gasPrice: 3000000000,
skipDryRun: true,
},
},
compilers: {
solc: {
version: "0.6.12",
settings: {
optimizer: {
enabled: true,
runs: 20000
},
}
}
}
}