forked from omgnetwork/plasma-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
53 lines (52 loc) · 1.36 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
require('dotenv').config()
const HDWalletProvider = require('truffle-hdwallet-provider')
module.exports = {
compilers: {
solc: {
version: process.env.SOLC_VERSION || '0.4.25',
settings: {
optimizer: {
enabled: true,
runs: 1
}
}
}
},
networks: {
local: {
host: process.env.ETH_CLIENT_HOST || '127.0.0.1',
port: process.env.ETH_CLIENT_PORT || 8545,
from: process.env.DEPLOYER_ADDRESS,
network_id: '*'
},
mainnet: {
host: process.env.ETH_CLIENT_HOST || '127.0.0.1',
port: process.env.ETH_CLIENT_PORT || 8545,
from: process.env.DEPLOYER_ADDRESS,
network_id: 1
},
rinkeby: {
host: process.env.ETH_CLIENT_HOST || '127.0.0.1',
port: process.env.ETH_CLIENT_PORT || 8545,
from: process.env.DEPLOYER_ADDRESS,
network_id: 4
},
goerli: {
host: process.env.ETH_CLIENT_HOST || '127.0.0.1',
port: process.env.ETH_CLIENT_PORT || 8545,
from: process.env.DEPLOYER_ADDRESS,
network_id: 5
},
infura: {
skipDryRun: true,
provider: function () {
return new HDWalletProvider(
[process.env.DEPLOYER_PRIVATEKEY, process.env.AUTHORITY_PRIVATEKEY],
`${process.env.INFURA_URL}/${process.env.INFURA_API_KEY}`,
0, 2
)
},
network_id: '*'
}
}
}