-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtruffle-config.js
96 lines (90 loc) · 1.95 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
require("dotenv").config();
const HDWalletProvider = require("@truffle/hdwallet-provider");
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*",
},
rinkeby: {
provider: () =>
new HDWalletProvider(
process.env.MNEMONIC,
process.env.INFURA_RINKEBY_URI
),
network_id: 4,
gas: 5500000,
networkCheckTimeout: 1000,
confirmations: 1,
timeoutBlocks: 200,
skipDryRun: true,
},
kovan: {
provider: () =>
new HDWalletProvider(
process.env.KOVAN_MNEMONIC,
process.env.INFURA_KOVAN_URI
),
network_id: 42,
gas: 5500000,
networkCheckTimeout: 20000,
confirmations: 1,
timeoutBlocks: 20000,
skipDryRun: true,
},
"mainnet-sim": {
host: "127.0.0.1",
port: 8545,
network_id: "*",
skipDryRun: true,
provider: () =>
new HDWalletProvider(
process.env.MNEMONIC,
"http://127.0.0.1:8545",
0,
10,
"m/44'/60'/0'/0/"
),
gas: 5500000,
gasPrice: 85000000000,
networkCheckTimeout: 20000,
confirmations: 0,
timeoutBlocks: 20000,
},
mainnet: {
provider: () =>
new HDWalletProvider(
process.env.MNEMONIC,
process.env.MAINNET_URI,
0,
10,
"m/44'/60'/0'/0/"
),
network_id: 1,
gasPrice: 100000000000,
networkCheckTimeout: 20000,
confirmations: 1,
timeoutBlocks: 20000,
skipDryRun: false,
},
},
api_keys: {
etherscan: "ENT2EY4U26UMK69U4IQ27IY6CKNY5WUETZ",
},
plugins: ["truffle-contract-size", "truffle-plugin-verify"],
mocha: {
timeout: 100000,
},
compilers: {
solc: {
version: "0.7.2",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
},
};