Created
March 21, 2022 00:30
-
-
Save mhmdhasan/1bc0d20d0966db06f63486f3aa8715d9 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
const path = require('path'); | |
const HDWalletProvider = require('truffle-hdwallet-provider'); | |
const mnemonic = 'Add your 14 works MetaMask secret passphrase'; | |
module.exports = { | |
contracts_build_directory: path.join(__dirname, 'client/src/contracts'), | |
networks: { | |
development: { | |
host: '127.0.0.1', | |
port: 7545, | |
network_id: '*', //match any network id | |
}, | |
kovan: { | |
provider: () => | |
new HDWalletProvider(mnemonic, `https://kovan.infura.io/v3/1c588cd8b6684287ad15ddb7e8b48d53`, 5), | |
network_id: 42, | |
}, | |
rinkeby: { | |
provider: () => new HDWalletProvider(mnemonic, `https://rinkeby.infura.io/v3/`, 5), | |
network_id: 4, | |
}, | |
bsctest: { | |
provider: () => new HDWalletProvider(mnemonic, `https://data-seed-prebsc-1-s1.binance.org:8545`, 11), | |
network_id: 97, | |
}, | |
matic: { | |
provider: () => new HDWalletProvider(mnemonic, `https://rpc-mumbai.maticvigil.com`), | |
network_id: 80001, | |
confirmations: 2, | |
timeoutBlocks: 200, | |
skipDryRun: true, | |
}, | |
bsc: { | |
provider: () => new HDWalletProvider(mnemonic, `https://bsc-dataseed1.binance.org`), | |
network_id: 56, | |
confirmations: 10, | |
timeoutBlocks: 200, | |
skipDryRun: true, | |
}, | |
}, | |
// Configure your compilers | |
compilers: { | |
solc: { | |
optimizer: { | |
enabled: true, | |
runs: 200, | |
}, | |
version: '^0.8.0', | |
}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment