-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtronbox.js
More file actions
67 lines (59 loc) · 1.42 KB
/
tronbox.js
File metadata and controls
67 lines (59 loc) · 1.42 KB
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
require('dotenv').config();
const port = process.env.HOST_PORT || 9090;
module.exports = {
networks: {
// Local development network (Tron Quickstart)
development: {
privateKey: process.env.PRIVATE_KEY_DEV,
userFeePercentage: 100,
feeLimit: 1000 * 1e6,
fullHost: `http://127.0.0.1:${port}`,
network_id: '*'
},
// Nile Testnet
nile: {
privateKey: process.env.PRIVATE_KEY_NILE,
userFeePercentage: 100,
feeLimit: 1000 * 1e6,
fullHost: 'https://nile.trongrid.io',
network_id: '3'
},
// Shasta Testnet
shasta: {
privateKey: process.env.PRIVATE_KEY_SHASTA,
userFeePercentage: 100,
feeLimit: 1000 * 1e6,
fullHost: 'https://api.shasta.trongrid.io',
network_id: '2'
},
// Tron Mainnet
mainnet: {
privateKey: process.env.PRIVATE_KEY_MAINNET,
userFeePercentage: 100,
feeLimit: 1000 * 1e6,
fullHost: 'https://api.trongrid.io',
network_id: '1'
}
},
compilers: {
solc: {
version: '0.8.20',
settings: {
optimizer: {
enabled: true,
runs: 200
},
evmVersion: 'istanbul'
}
}
},
// Plugin configuration
plugins: [
'tronbox-verify'
],
// Contract directory
contracts_directory: './contracts',
contracts_build_directory: './build/contracts',
migrations_directory: './migrations',
test_directory: './test'
};