// NB: It's important to wrap the provider as a function.
ropsten:{
provider:()=>newHDWalletProvider({
mnemonic:{
phrase:mnemonic
},
providerOrUrl:alchemyApiUrl,
chainId:3
}),
// provider: () => new HDWalletProvider('turtle erupt shop aisle north segment clarify soda excuse help love snake', `https://eth-ropsten.alchemyapi.io/v2/msUAyuwMjIDj72x461sgdmXLxPcVm4eP`),
network_id:3,// Ropsten's id
gas:5500000,// Ropsten has a lower block limit than mainnet
confirmations:2,// # of confs to wait between deployments. (default: 0)
timeoutBlocks:200,// # of blocks before a deployment times out (minimum/default: 50)
skipDryRun:true// Skip dry run before migrations? (default: false for public nets )
},
// Useful for private networks
// private: {
// provider: () => new HDWalletProvider(mnemonic, `https://network.io`),
// network_id: 2111, // This network is yours, in the cloud.
// production: true // Treats this network as if it was a public net. (default: false)
// }
},
// Set default mocha options here, use special reporters etc.
mocha:{
// timeout: 100000
},
// Configure your compilers
compilers:{
solc:{
version:"0.8.0",// Fetch exact version from solc-bin (default: truffle's version)
// docker: true, // Use "0.5.1" you've installed locally with docker (default: false)
// settings: { // See the solidity docs for advice about optimization and evmVersion
// optimizer: {
// enabled: false,
// runs: 200
// },
// evmVersion: "byzantium"
// }
}
},
// Truffle DB is currently disabled by default; to enable it, change enabled: false to enabled: true
//
// Note: if you migrated your contracts prior to enabling this field in your Truffle project and want
// those previously migrated contracts available in the .db directory, you will need to run the following: