forked from PunkFinance/punk.protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
68 lines (65 loc) · 1.57 KB
/
truffle-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
const DotEnv = require('dotenv')
DotEnv.config()
const HDWalletProvider = require('@truffle/hdwallet-provider');
const infuraKey = process.env.INFURA_KEY;
const mnemonic = process.env.MNEMONIC;
const etherscanKey = process.env.ETHERSCAN_KEY;
module.exports = {
plugins:[
'truffle-plugin-verify',
"truffle-contract-size"
],
api_keys: {
etherscan: etherscanKey
},
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*"
},
kovan: {
provider: () => new HDWalletProvider(mnemonic, `https://kovan.infura.io/v3/${infuraKey}`),
network_id: 42,
confirmations: 2,
timeoutBlocks: 400,
networkCheckTimeout: 10000000,
gasPrice:10000000000,
skipDryRun: true
},
ropsten: {
provider: () => new HDWalletProvider(mnemonic, `https://ropsten.infura.io/v3/${infuraKey}`),
network_id: 3,
gas: 5200000,
gasPrice: 10000000000,
networkCheckTimeout: 10000000,
confirmations: 2,
timeoutBlocks: 400,
skipDryRun: true
},
mainnet: {
provider: () => new HDWalletProvider(mnemonic, `https://mainnet.infura.io/v3/${infuraKey}`),
network_id: 1,
confirmations: 1,
gas:933670,
gasPrice:130000000000,
timeoutBlocks: 400,
skipDryRun: true
},
},
compilers: {
solc: {
version: "^0.8.0",
settings: {
optimizer: {
enabled: false,
runs: 200
},
evmVersion: "byzantium"
}
}
},
db: {
enabled: false
}
};