forked from gnosis/MultiSigWallet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
truffle.js
49 lines (47 loc) · 1.32 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
const HDWalletProvider = require('truffle-hdwallet-provider');
const fs = require('fs');
const mnemonic = fs.readFileSync(".secret").toString().trim();
module.exports = {
networks: {
testnet: {
host: "testnet-rpc.dexon.org",
port: 443,
network_id: 238,
gas: 4000000,
gasPrice: 24000000000, // 24 gwei
},
development: {
host: "localhost",
port: 8545,
network_id: "*", // Match any network id
gas: 4000000,
gasPrice: 10000000000, // 10 gwei
},
tangerineTestnet: {
network_id: 374,
gasPrice: 1e9,
provider: function() {
return new HDWalletProvider(mnemonic, "https://testnet-rpc.tangerine-network.io");
},
},
tangerineMainnet: {
network_id: 411,
gasPrice: 1e9,
provider: function() {
return new HDWalletProvider(mnemonic, "https://mainnet-rpc.tangerine-network.io");
},
},
},
compilers: {
solc: {
version: "0.5.11", // Fetch exact version from solc-bin (default: truffle's version)
// docker: true, // Use "0.5.1" you've installed locally with docker (default: false)
settings: { // See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: true,
runs: 200
},
}
}
}
};