Created
July 17, 2018 22:03
-
-
Save dangerousfood/5534da7cf0be923872aaf436ef2b42e8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var HDWalletProvider = require("truffle-hdwallet-provider"); | |
var NonceTrackerSubprovider = require("web3-provider-engine/subproviders/nonce-tracker") | |
var mnemonic = "YOUR_MNEMONIC_FROM_GANACHE" | |
var DefaultBuilder = require("truffle-default-builder"); | |
module.exports = { | |
build: new DefaultBuilder({ | |
}), | |
solc: { | |
optimizer: { | |
enabled: true, | |
runs: 200 | |
} | |
}, | |
networks: { | |
development: { | |
host: "localhost", | |
port: 7545, | |
network_id: "*" // Match any network id | |
}, | |
ropsten: { | |
provider: function() { | |
return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/YOUR_PUBLIC_KEY_FROM_INFURA") | |
}, | |
network_id: 3, | |
gas: 3000000, | |
gasPrice: 3000000000 | |
}, | |
mainnet: { | |
provider: function() { | |
return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/YOUR_PUBLIC_KEY_FROM_INFURA") | |
}, | |
network_id: 1, | |
gasPrice: 5000000000 | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment