forked from Uniswap/v1-contracts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
truffle-config.js
43 lines (42 loc) · 1.12 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
require('dotenv').config();
const HDWalletProvider = require("truffle-hdwallet-provider");
const mnemonic = process.env.MNEMONIC;
const infuraKey = process.env.INFURA_ACCESS_TOKEN;
const gasPrice = process.env.GAS_PRICE || 1000000000;
var ropstenUrl = "https://ropsten.infura.io/v3/" + infuraKey;
var mainnetUrl = "https://mainnet.infura.io/v3/" + infuraKey;
module.exports = {
solc: {
optimizer: {
enabled: true,
runs: 200
}
},
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*" // Match any network id
},
ropsten: {
provider: new HDWalletProvider(mnemonic, ropstenUrl),
network_id: 3,
gasPrice: gasPrice
},
mainnet: {
provider: new HDWalletProvider(mnemonic, mainnetUrl),
network_id: 1,
gasPrice: gasPrice
},
rskTestnet: {
provider: new HDWalletProvider(mnemonic, "https://public-node.testnet.rsk.co"),
network_id: '*',
gasPrice: 61000000
},
rsk: {
provider: new HDWalletProvider(mnemonic, "https://public-node.rsk.co"),
network_id: '*',
gasPrice: 61000000
}
}
};