Last active
February 18, 2022 03:59
-
-
Save mhmdhasan/13aac3b8c05fb4064cd1bec618a5542b 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 = “Enter you 14 words wallet passphrase”; | |
module.exports = { | |
// See <http://truffleframework.com/docs/advanced/configuration> | |
// to customize your Truffle configuration! | |
contracts_build_directory: path.join(__dirname, 'client/src/contracts'), | |
networks: { | |
development: { | |
host: '127.0.0.1', | |
port: 7545, | |
network_id: '*', //match any network id | |
}, | |
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