-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
33 lines (32 loc) · 1002 Bytes
/
truffle-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// const path = require("path");
const HDWalletProvider = require("@truffle/hdwallet-provider")
require("dotenv").config()
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration> to customize your Truffle configuration!
// contracts_build_directory: path.join(__dirname, "client/src/contracts"),
networks: {
// bscankr: {
// provider: new HDWalletProvider(process.env.ACCOUNT_KEY, "https://" + process.env.ANKR_USER + ":" + process.env.ANKR_PASS + process.env.ARKN_APP_API),
// network_id: 56,
// gas: 3000000,
// gasPrice: 5000000000, // 5 Gwei
// skipDryRun: false
// },
bscpublic: {
provider: new HDWalletProvider(process.env.ACCOUNT_KEY, "https://bsc-dataseed.binance.org/"),
network_id: 56,
gas: 3000000,
gasPrice: 5000000000, // 5 Gwei
skipDryRun: false
}
},
compilers: {
solc: {
version: "^0.6.6",
},
},
plugins: ["truffle-plugin-verify"],
api_keys: {
etherscan: process.env.BSCSCAN_API_KEY,
},
}