-
Notifications
You must be signed in to change notification settings - Fork 2
/
truffle-config.js
43 lines (42 loc) · 1.11 KB
/
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
34
35
36
37
38
39
40
41
42
43
// eslint-disable-next-line import/no-extraneous-dependencies
const TestRPC = require('ganache-cli');
const HDWalletProvider = require('@truffle/hdwallet-provider');
const { privKey, BSCSCANAPIKEY, getblock } = require('./env.json');
module.exports = {
networks: {
development: {
provider: TestRPC.provider(),
network_id: '*',
},
testnet: {
provider: () => new HDWalletProvider(privKey, 'https://data-seed-prebsc-1-s3.binance.org:8545'),
network_id: 97,
confirmations: 2,
skipDryRun: true,
networkCheckTimeout: 500000000,
timeoutBlocks: 20000,
},
bsc: {
provider: () => new HDWalletProvider(privKey, 'https://bsc.getblock.io/mainnet/?api_key=' + getblock),
network_id: 56,
confirmations: 2,
skipDryRun: true,
networkCheckTimeout: 500000000,
gasPrice: 10000000000,
},
},
plugins: ['truffle-plugin-verify', 'solidity-coverage'],
api_keys: {
bscscan: BSCSCANAPIKEY,
},
compilers: {
solc: {
version: '^0.6.12',
settings: {
optimizer: {
enabled: true,
},
},
},
},
};