-
Notifications
You must be signed in to change notification settings - Fork 20
/
tronbox.js
64 lines (50 loc) · 1.68 KB
/
tronbox.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
require("dotenv").config();
module.exports = {
networks: {
development: {
// For trontools/quickstart docker image
privateKey:
"da146374a75310b9666e834ee4ad0866d6f4035967bfc76217c5a495fff9f0d0",
consume_user_resource_percent: 30,
fee_limit: 100000000,
// Requires TronBox 2.1.9+ and Tron Quickstart 1.1.16+
// fullHost: "http://127.0.0.1:9090",
// The three settings below for TronBox < 2.1.9
fullNode: "http://127.0.0.1:9090",
solidityNode: "http://127.0.0.1:9090",
eventServer: "http://127.0.0.1:9090",
network_id: "*"
},
mainnet: {
// Don't put your private key here:
privateKey: process.env.PK,
/*
Create a .env file (it must be gitignored) containing something like
export PK=4E7FECCB71207B867C495B51A9758B104B1D4422088A87F4978BE64636656243
Then, run the migration with:
source .env && tronbox migrate --network mainnet
*/
consume_user_resource_percent: 30,
fee_limit: 100000000,
// tronbox 2.1.9+
// fullHost: "https://api.trongrid.io",
// tronbox < 2.1.9
fullNode: "https://api.trongrid.io",
solidityNode: "https://api.trongrid.io",
eventServer: "https://api.trongrid.io",
network_id: "*"
},
shasta: {
privateKey: process.env.PK,
consume_user_resource_percent: 30,
fee_limit: 100000000,
// tronbox 2.1.9+
// fullHost: "https://api.shasta.trongrid.io",
// tronbox < 2.1.9
fullNode: "https://api.shasta.trongrid.io",
solidityNode: "https://api.shasta.trongrid.io",
eventServer: "https://api.shasta.trongrid.io",
network_id: "*"
}
}
};