You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
JavaScript
54 lines
1.1 KiB
JavaScript
require('dotenv').config();
|
|
const HDWalletProvider = require('truffle-hdwallet-provider');
|
|
|
|
module.exports = {
|
|
networks: {
|
|
development: {
|
|
host: "127.0.0.1",
|
|
port: 8545,
|
|
network_id: "*",
|
|
},
|
|
rinkeby: {
|
|
provider: () => new HDWalletProvider(process.env.MNEMONIC, "https://rinkeby.infura.io/v3/" + process.env.INFURA_PID),
|
|
network_id: 4,
|
|
confirmations: 1,
|
|
timeoutBlocks: 10,
|
|
skipDryRun: true,
|
|
production: false,
|
|
},
|
|
mainnet: {
|
|
provider: () => new HDWalletProvider(process.env.MNEMONIC, "https://mainnet.infura.io/v3/" + process.env.INFURA_PID),
|
|
network_id: 1,
|
|
confirmations: 3,
|
|
timeoutBlocks: 30,
|
|
skipDryRun: false,
|
|
production: true,
|
|
gasPrice: 150000000000 // 150 gwei
|
|
},
|
|
},
|
|
mocha: {
|
|
reporter: "eth-gas-reporter",
|
|
reporterOptions: {
|
|
currency: "USD",
|
|
gasPrice: 2,
|
|
},
|
|
},
|
|
compilers: {
|
|
solc: {
|
|
version: "^0.8.0",
|
|
}
|
|
},
|
|
solc: {
|
|
optimizer: {
|
|
enabled: true,
|
|
runs: 200
|
|
}
|
|
},
|
|
plugins: [
|
|
'truffle-plugin-verify'
|
|
],
|
|
api_keys: {
|
|
'etherscan': process.env.ETHERSCAN_API
|
|
}
|
|
};
|