-
Notifications
You must be signed in to change notification settings - Fork 4
/
truffle-config.js
73 lines (64 loc) · 1.73 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// configuration for truffle project
// defines deployment and compilation settings
const dotenv = require('dotenv');
dotenv.config();
// const LedgerWalletProvider = require('@umaprotocol/truffle-ledger-provider');
const HDWalletProvider = require('@truffle/hdwallet-provider');
const mnemonic = process.env.MNEMONIC_PHRASE.trim()
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "*"
},
bscTestnet: {
provider: () => new HDWalletProvider(mnemonic, `https://data-seed-prebsc-1-s1.binance.org:8545`),
network_id: 97,
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
},
ethTestnet: {
provider : () => new HDWalletProvider(mnemonic, `https://kovan.infura.io/v3/${process.env.INFURA_KEY}`),
networkCheckTimeout : 10000000,
network_id : 42,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true
},
mainnet: {
provider : () => new HDWalletProvider(mnemonic, `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`),
networkCheckTimeout : 100000000,
network_id : 1,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true
}
},
compilers: {
solc: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 10000
}
}
},
},
mocha: {
timeout: 5000
},
api_keys: {
etherscan: process.env.ETHERSCAN_KEY
},
plugins: ['truffle-contract-size', 'truffle-plugin-verify']
};