Skip to content

Instantly share code, notes, and snippets.

@dumebi
Created February 12, 2020 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dumebi/481f2d9e339ab7039e3efd5b87fbce94 to your computer and use it in GitHub Desktop.
Save dumebi/481f2d9e339ab7039e3efd5b87fbce94 to your computer and use it in GitHub Desktop.
require('dotenv').config();
const { GSNProvider } = require("@openzeppelin/gsn-provider");
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
ganache: {
provider() {
return new GSNProvider(`${process.env.GANACHE}`, {useGSN: true})
},
network_id: '*', // Match any network id
gas: 70000000, // Block Gas Limit same as latest on Mainnet https://ethstats.net/
gasPrice: 1000000000
},
geth: {
host: 'localhost',
port: 8545,
network_id: '*',
gas: 4612388,
gasPrice: 100000000
},
ropsten: {
provider() {
return new GSNProvider(`${process.env.INFURA_ROPSTEN}`, {useGSN: true})
// return new HDWalletProvider(`${process.env.METAMASK_KEY}`, `${process.env.INFURA_ROPSTEN}`, 0, 5)
},
network_id: 3,
gas: 8000000
},
rinkleby: {
provider() {
return new GSNProvider(`${process.env.INFURA_ROPSTEN}`, {useGSN: true})
},
network_id: 4,
gas: 8000000
}
},
compilers: {
solc: {
version: '0.5.9',
}
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment