Created
February 12, 2020 14:49
-
-
Save dumebi/481f2d9e339ab7039e3efd5b87fbce94 to your computer and use it in GitHub Desktop.
This file contains 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
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