forked from humanprotocol/hmt-escrow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle.js
58 lines (54 loc) · 1.75 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
56
57
58
require('dotenv').config()
const { INFURA_TOKEN, MNEMONIC, PRIV_KEY, ETH_HOST, ETH_PORT } = process.env;
const HDWalletProvider = require('truffle-hdwallet-provider');
const PrivateKeyProvider = require('./private-provider');
module.exports = {
plugins: ["truffle-security, solidity-coverage"],
networks: {
development: {
host: ETH_HOST || '127.0.0.1',
port: ETH_PORT || 8545,
network_id: '*'
},
live: {
provider: () => new HDWalletProvider(MNEMONIC, `https://mainnet.infura.io/v3/${INFURA_TOKEN}`, 0, 10),
network_id: '1',
},
kovan: {
provider: () => new HDWalletProvider(MNEMONIC, `https://kovan.infura.io/v3/${INFURA_TOKEN}`, 0, 10),
network_id: '2',
},
ropsten: {
provider: () => new HDWalletProvider(MNEMONIC, `https://ropsten.infura.io/v3/${INFURA_TOKEN}`, 0, 10),
network_id: '3',
},
rinkeby: {
provider: () => new HDWalletProvider(MNEMONIC, `https://rinkeby.infura.io/v3/${INFURA_TOKEN}`, 0, 10),
network_id: '4',
networkCheckTimeout: '100000',
gas: 0x989680,
gasPrice: 200000000000
},
moonbase: {
provider: () => new PrivateKeyProvider(PRIV_KEY, 'https://rpc.testnet.moonbeam.network', 1287),
network_id: '1287',
},
skale: {
provider: () => new HDWalletProvider(MNEMONIC, 'https://humanprotocol-integration.skale.network', 0, 10),
network_id: '344435',
},
},
compilers: {
solc: {
version: "0.6.2", // Fetch exact version from solc-bin (default: truffle's version)
settings: {
// See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: true,
runs: 200
},
evmVersion: "constantinople"
}
}
}
};