forked from bulwark-crypto/bulwark-explorer
-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.template.js
160 lines (154 loc) · 5.02 KB
/
config.template.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
/**
* Global configuration object.
*/
const config = {
api: {
'host': 'https://explorer.dogec.io',
'port': '3000',
'portWorker': '443',
'prefix': '/api',
'timeout': '5s'
},
db: {
'host': '127.0.0.1',
'port': '27017',
'name': 'blockex',
'user': 'blockexuser',
'pass': 'Explorer!1'
},
rpc: {
'host': '127.0.0.1',
'port': '52541',
'user': 'bulwarkrpc',
'pass': 'someverysafepassword',
'timeout': 8000, // 8 seconds
},
coinDetails: {
name: 'Bulwark',
shortName: 'BWK',
coinNumberFormat: '0,0.0000'
},
splitRewardsData: true, // Set to true to extract POS & MN data
verboseCron: true, // If set to true there are extra logging details in cron scripts
verboseCronTx: false, // If set to true there are extra tx logging details in cron scripts (Not recommended)
///////////////////////////////
// API & Social configurations
///////////////////////////////
freegeoip: {
'api': 'https://extreme-ip-lookup.com/json/'
},
coinMarketCap: {
'api': 'http://api.coinmarketcap.com/v1/ticker/',
'ticker': 'bulwark'
},
slack: {
'url': 'https://hooks.slack.com/services/A00000000/B00000000/somekindofhashhere',
//'channel': '#general',
//'username': 'Block Report',
//'icon_emoji': ':bwk:'
},
///////////////////////////////
// API & Social configurations
///////////////////////////////
freegeoip: {
'api': 'https://extreme-ip-lookup.com/json/'
},
coinMarketCap: {
'api': 'http://api.coinmarketcap.com/v1/ticker/',
'ticker': 'bulwark'
},
slack: {
'url': 'https://hooks.slack.com/services/A00000000/B00000000/somekindofhashhere',
//'channel': '#general',
//'username': 'Block Report',
//'icon_emoji': ':bwk:'
},
///////////////////////////////
// Adjustable POS Profitability Score - How profitable is your staking, tailored for your blockchain
///////////////////////////////
profitabilityScore: {
/**
* Figure out how profitable you are staking. Each output is multiplied by the number below, you can configure it for your blockchain
*
* The formula is: (reward.stake.input.confirmations / ((reward.stake.reward / reward.stake.input.value) * 100)) * config.profitabilityScore.weightMultiplier
*/
weightMultiplier: 0.1,
/**
* In order to get the color below (from scoreStyles) we'll use an exponential formula
*
* The formula is: profitabilityScore < weightColorScale * Math.pow(2, i + 1)
*/
weightColorScale: 30,
scoreStyles: [
// Best case
{
color: "#72f87b",
title: "Rank 1/10 - Excellent!!!"
},
{
color: "#84f771",
title: "Rank 2/10 - Excellent!"
},
{
color: "#a0f771",
title: "Rank 3/10 - Excellent"
},
{
color: "#bcf671",
title: "Rank 4/10 - Very Good"
},
{
color: "#d8f671",
title: "Rank 5/10 - Above Average"
},
{
color: "#f3f671",
title: "Rank 6/10 - Average"
},
{
color: "#f5dc71",
title: "Rank 7/10 - Below Average"
},
{
color: "#f5c071",
title: "Rank 8/10 - Not Optimal"
},
{
color: "#f4a471",
title: "Rank 9/10 - Not Optimal!"
},
// Worst case (default)
{
color: "#f48871",
title: "Rank 10/10 - Not Optimal!!!"
}
]
},
///////////////////////////////
/// Community & Address Related
///////////////////////////////
community: {
highlightedAddresses: [
// If you comment out all of these addresses the 'Community Addresses' section will not show up on the homepage. You can add as many addresses to highlight as you wish.
//{ label: 'Community Donations', address: 'XXXXXXXXXXXXXXXXXXXXXXXXXXX' }, // Uncomment and replace with your coin address to highlight an address
//{ label: 'Community Funding', address: 'XXXXXXXXXXXXXXXXXXXXXXXXXXX' }, // Uncomment and replace with your coin address to highlight any other address
]
},
// Each address can contain it's own set of widgets and configs for those widgets
addressWidgets: {
'XXXXXXXXXXXXXXXXXXXXXXXXXXX': {
// WIDGET: Adds a list of masternodes when viewing address. We use this to show community-ran masternodes
masternodesAddressWidget: {
title: 'Community Masternodes',
description: 'Profits from these masternodes fund & fuel community talent',
isPaginationEnabled: false, // If you have more than 10 you should enable this
addresses: [
'XXXXXXXXXXXXXXXXXXXXXXXXXXX',
'XXXXXXXXXXXXXXXXXXXXXXXXXXX',
'XXXXXXXXXXXXXXXXXXXXXXXXXXX',
]
}
}
}
};
module.exports = config;