Updated truffle config

This commit is contained in:
Игорь Соболев 2019-06-23 15:02:03 +03:00
parent b49a62f44c
commit d7d8d7d506

View File

@ -3,43 +3,19 @@
var HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonicRopsten = "...";
var infuraLinkRopsten = "...";
var deployerAddressRopsten = "...";
var mnemonicKovan = "...";
var infuraLinkKovan = "...";
var deployerAddressKovan = "...";
var addressIndex = 0; // address index in MetaMask
var mnemonicRinkeby = "oxygen crunch note tent verify chicken gossip shield essence runway clinic fortune";
var infuraLinkRinkeby = "https://rinkeby.infura.io/v3/f06b7ded27484b2f8590183576eeec95";
module.exports = {
networks: {
development: {
host: "localhost",
network_id: "*",
port: 8545,
},
coverage: {
host: "localhost",
network_id: "*",
port: 8555, // <-- If you change this, also set the port option in .solcover.js.
gas: 0xfffffffffff, // <-- Use this high gas value
gasPrice: 0x01 // <-- Use this low gas price
},
ropsten: {
rinkeby: {
provider: function() {
return new HDWalletProvider(mnemonicRopsten, infuraLinkRopsten, addressIndex);
return new HDWalletProvider(mnemonicRinkeby, infuraLinkRinkeby)
},
network_id: 3,
from: deployerAddressRopsten.toLowerCase(),
},
kovan: {
provider: function() {
return new HDWalletProvider(mnemonicKovan, infuraLinkKovan, addressIndex);
},
network_id: 42,
from: deployerAddressKovan.toLowerCase(),
network_id: "4"
}
},
compilers: {
@ -53,6 +29,4 @@ module.exports = {
}
}
}
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
};