This repository has been archived by the owner on Oct 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
/
config.js
247 lines (236 loc) · 8.49 KB
/
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
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
require('dotenv').config();
const ENV = process.env;
const username = ENV.account || 'disregardfiat';
const active = ENV.active || '';
const follow = ENV.follow || 'disregardfiat';
const msowner = ENV.msowner || '';
const mspublic = ENV.mspublic || '';
const memoKey = ENV.memo || '';
const hookurl = ENV.discordwebhook || '';
const NODEDOMAIN = ENV.domain || 'http://dlux-token.herokuapp.com' //where your API lives
const acm = ENV.account_creator || false //account creation market ... use your accounts HP to claim account tokens
const mirror = ENV.mirror || false //makes identical posts, votes and IPFS pins as the leader account
const port = ENV.PORT || 3001;
const pintoken = ENV.pintoken || ''
const pinurl = ENV.pinurl || '';
const status = ENV.status || true
const dbcs = ENV.DATABASE_URL || ''; //connection string to a postgres database
const dbmods = ENV.DATABASE_MODS || []; //list of moderators to hide posts in above db
const typeDefs = ENV.APPTYPES || {
["360"]: ['QmNby3SMAAa9hBVHvdkKvvTqs7ssK4nYa2jBdZkxqmRc16'],
}
const history = ENV.history || 3600
const stream = ENV.stream || 'irreversible'
const mode = ENV.mode || "normal";
const timeoutStart = ENV.timeoutStart || 180000;
const timeoutContinuous = ENV.timeoutContinuous || 30000;
// testing configs for replays
const override = ENV.override || 0 //69116600 //will use standard restarts after this blocknumber
const engineCrank = ENV.startingHash || 'QmconUD3faVGbgC2jAXRiueEuLarjfaUiDz5SA74kptuvu' //but this state will be inserted before
// third party configs
const rta = ENV.rta || '' //rtrades account : IPFS pinning interface
const rtp = ENV.rtp || '' //rtrades password : IPFS pinning interface
const ipfshost = ENV.ipfshost || 'ipfs.infura.io' //IPFS upload/download provider provider
const ipfsport = ENV.ipfsport || '5001' //IPFS upload/download provider provider
const ipfsLinks = ENV.ipfsLinks
? ENV.ipfsLinks.split(" ")
: [
"https://ipfs:8080/ipfs/",
"http://localhost:8080/ipfs/",
"https://ipfs.3speak.tv/ipfs/",
"https://infura-ipfs.io/ipfs/",
"https://ipfs.alloyxuast.co.uk/ipfs/",
];
const ipfsprotocol = ENV.ipfsprotocol || 'https' //IPFS upload/download protocol
//node market config > 2500 is 25% inflation to node operators, this is currently not used
const bidRate = ENV.BIDRATE || 2500 //
//HIVE CONFIGS
var startURL = ENV.STARTURL || "https://hive-api.dlux.io/";
var clientURL = ENV.APIURL || "https://hive-api.dlux.io/";
const clients = ENV.clients
? ENV.clients.split(" ")
: [
"https://api.deathwing.me/",
"https://hive-api.dlux.io/",
"https://rpc.ecency.com/",
"https://hived.emre.sh/",
"https://rpc.ausbit.dev/",
"https://api.hive.blog/",
];
//!!!!!!! -- THESE ARE COMMUNITY CONSTANTS -- !!!!!!!!!//
//TOKEN CONFIGS -- ALL COMMUNITY RUNNERS NEED THESE SAME VALUES
const starting_block = 49988008; //from what block does your token start
const prefix = 'dlux_' //Community token name for Custom Json IDs
const TOKEN = 'DLUX' //Token name
const precision = 3 //precision of token
const tag = 'dlux' //the fe.com/<tag>/@<leader>/<permlink>
const jsonTokenName = 'dlux' //what customJSON in Escrows and sends is looking for
const leader = 'dlux-io' //Default account to pull state from, will post token
const ben = 'dlux-io' //Account where comment benifits trigger token action
const delegation = 'dlux-io' //account people can delegate to for rewards
const delegationWeight = 1000 //when to trigger community rewards with bens
const msaccount = 'dlux-cc' //account controlled by community leaders
const msPubMemo = 'STM5GNM3jpjWh7Msts5Z37eM9UPfGwTMU7Ksats3RdKeRaP5SveR9' //memo key for msaccount
const msPriMemo = '5KDZ9fzihXJbiLqUCMU2Z2xU8VKb9hCggyRPZP37aprD2kVKiuL'
const msmeta = ''
const mainAPI = 'token.dlux.io' //leaders API probably
const mainRender = 'data.dlux.io' //data and render server
const mainFE = 'dlux.io' //frontend for content
const mainIPFS = 'a.ipfs.dlux.io' //IPFS service
const mainICO = 'robotolux' //Account collecting ICO HIVE
const footer = `\n[Find us on Discord](https://discord.gg/Beeb38j)`
const hive_service_fee = 100 //HIVE service fee for transactions in Hive/HBD in centipercents (1% = 100)
const features = {
pob: true, //proof of brain
delegate: true, //delegation
daily: true, // daily post
liquidity: true, //liquidity
ico: true, //ico
inflation: true,
dex: true, //dex
nft: true, //nfts
state: true, //api dumps
claimdrop: false //claim drops
}
const featuresModel = {
claim_id: 'claim',
claim_S: 'Airdrop',
claim_B: false,
claim_json: 'drop',
rewards_id: 'claim',
rewards_S: 'Rewards',
rewards_B: true,
rewards_json: 'claim',
rewardSel: true,
reward2Gov: true,
send_id: 'send',
send_S: 'Send',
send_B: true,
send_json: 'send',
powup_id: 'power_up',
powup_B: true,
pow_val: '',
powdn_id: 'power_down',
powdn_B: true,
powsel_up: true,
govup_id: 'gov_up',
govup_B: true,
gov_val: '',
govsel_up: true,
govdn_id: 'gov_down',
govdn_B: true,
node: {
id: 'node_add',
opts: [{
S: 'Domain',
type: 'text',
info: 'https://no-trailing-slash.com',
json: 'domain',
val: ''
},
{
S: 'DEX Fee Vote',
type: 'number',
info: '500 = .5%',
max: 1000,
min: 0,
json: 'bidRate',
val: ''
},
{
S: 'DEX Max Vote',
type: 'number',
info: '10000 = 100%',
max: 10000,
min: 0,
json: 'dm',
val: ''
},
{
S: 'DEX Slope Vote',
type: 'number',
info: '10000 = 100%',
max: 10000,
min: 0,
json: 'ds',
val: ''
}
],
}
}
const adverts = [
'https://camo.githubusercontent.com/954558e3ca2d68e0034cae13663d9807dcce3fcf/68747470733a2f2f697066732e627573792e6f72672f697066732f516d64354b78395548366a666e5a6748724a583339744172474e6b514253376359465032357a3467467132576f50'
]
const detail = {
name: 'Decentralized Limitless User eXperiences',
symbol: TOKEN,
icon: 'https://www.dlux.io/img/dlux-hive-logo-alpha.svg',
supply:'5% Fixed Inflation, No Cap.',
wp:`https://docs.google.com/document/d/1_jHIJsX0BRa5ujX0s-CQg3UoQC2CBW4wooP2lSSh3n0/edit?usp=sharing`,
ws:`https://www.dlux.io`,
be:`https://hiveblockexplorer.com/`,
text: `DLUX is a Web3.0 technology that is focused on providing distribution of eXtended (Virtual and Augmented) Reality. It supports any browser based applications that can be statically delivered through IPFS. The DLUX Token Architecture is Proof of Stake as a layer 2 technology on the HIVE blockchain to take advantage of free transactions. With the first WYSIWYG VR Builder of any blockchain environment and the first Decentralized Exchange on the Hive Blockchain, DLUX is committed to breaking any boundaries for adoption of world changing technologies.`
}
//Aditionally on your branch, look closely at dao, this is where tokenomics happen and custom status posts are made
let config = {
username,
active,
msowner,
mspublic,
memoKey,
timeoutContinuous,
timeoutStart,
follow,
NODEDOMAIN,
hookurl,
status,
history,
dbcs,
dbmods,
typeDefs,
mirror,
bidRate,
engineCrank,
port,
pintoken,
pinurl,
clientURL,
startURL,
clients,
acm,
rta,
rtp,
override,
ipfshost,
ipfsprotocol,
ipfsport,
ipfsLinks,
starting_block,
prefix,
leader,
msaccount,
msPubMemo,
msPriMemo,
msmeta,
ben,
adverts,
delegation,
delegationWeight,
TOKEN,
precision,
tag,
mainAPI,
jsonTokenName,
mainFE,
mainRender,
mainIPFS,
mainICO,
detail,
footer,
hive_service_fee,
features,
stream,
mode,
featuresModel
};
module.exports = config;