forked from block-foundation/solidity-material-passport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
41 lines (39 loc) · 1005 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
34
35
36
37
38
39
40
41
require("dotenv").config({ path: "./.env" })
const HDWalletProvider = require("@truffle/hdwallet-provider")
// const fs = require('fs');
// const mnemonic = fs.readFileSync(".secret").toString().trim();
module.exports = {
networks: {
development: {
host: "127.0.0.1", // Localhost (default: none)
port: 7545, // Standard Ethereum port (default: none)
network_id: "5777", // Any network (default: none)
},
bsc: {
provider: () =>
new HDWalletProvider(
process.env.MNEMONIC,
"wss://data-seed-prebsc-1-s1.binance.org:8545"
),
gas: 9900000,
network_id: 97,
confirmations: 10,
timeoutBlocks: 200,
skipDryRun: true,
},
},
compilers: {
solc: {
version: "0.8.6", // Fetch exact version from solc-bin (default: truffle's version)
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
},
chai: {
enableTimeouts: false,
},
}