-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtruffle-config.js
40 lines (39 loc) · 1.06 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
const HDWalletProvider = require('@truffle/hdwallet-provider');
const fs = require('fs');
const mnemonic = fs.readFileSync(".secret").toString().trim();
module.exports = {
plugins: [
'truffle-plugin-verify'
],
api_keys: {
etherscan: 'NYIF5A6SX811WXZ2PP4F3ZNYSQZFRA6R36'
},
networks: {
development: {
provider: () => new HDWalletProvider(mnemonic, `https://ropsten.infura.io/v3/4f477eb263cd4f2d8777c2ed46ac552f`),
//provider: () => new HDWalletProvider(mnemonic, `http://127.0.0.1:7545`),
//host: "127.0.0.1",
// network_id: "5777",
// port: 7545,
network_id: "3",
confirmations: 0,
timeoutBlocks: 200,
skipDryRun: true
},
mainnet: {
provider: () => new HDWalletProvider(mnemonic, `https://mainnet.infura.io/v3/4f477eb263cd4f2d8777c2ed46ac552f`),
// host: "127.0.0.1",
network_id: 1,
confirmations: 10,
gas: "4000000",
gasPrice: "200000000000",
timeoutBlocks: 200,
skipDryRun: true
}
},
compilers: {
solc: {
version: "0.8.0"
}
}
};