-
Notifications
You must be signed in to change notification settings - Fork 18
/
config.js
254 lines (241 loc) · 8.09 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
248
249
250
251
252
253
254
require('dotenv').config();
const ENV = process.env;
const username = ENV.account || 'regardspk';
const active = ENV.active || '';
const follow = ENV.follow || 'regardspk';
const msowner = ENV.msowner || '';
const mspublic = ENV.mspublic || '';
const memoKey = ENV.memo || '';
const hookurl = ENV.discordwebhook || '';
const NODEDOMAIN = ENV.domain || 'https://spktoken.dlux.io' //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 || '';
const snapcs = ENV.SNAPBASE_URL || "http://65.108.66.120:8002"; // get a public facing snapshot server
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 || "QmWh6F8DKyDjRxkvgrh89Ssjh9zoNtm8UYS3CztppiWFHj"; //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 || "infura-ipfs.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/",
"https://ipfs1.alloyxuast.tk/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 || 500 // your vote for the dex fee 500 = 0.500% Max 1000
//HIVE CONFIGS
var startURL = ENV.STARTURL || "https://api.hive.blog/";
var clientURL = ENV.APIURL || "https://api.hive.blog/";
const clients = ENV.clients ? ENV.clients.split(" ") : [
"https://api.deathwing.me/",
//"https://api.c0ff33a.uk/",
"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 = 62313601; //from what block does your token start
const prefix = 'spkcc_' //Community token name for Custom Json IDs
const TOKEN = 'LARYNX' //Token name
const precision = 3 //precision of token
const tag = 'spk' //the fe.com/<tag>/@<leader>/<permlink>
const jsonTokenName = 'larynx' //what customJSON in Escrows and sends is looking for
const leader = 'regardspk' //Default account to pull state from, will post token
const ben = '' //Account where comment benifits trigger token action
const delegation = '' //account people can delegate to for rewards
const delegationWeight = 1000 //when to trigger community rewards with bens
const msaccount = 'spk-cc' //account controlled by community leaders
const msPubMemo = 'STM5GNM3jpjWh7Msts5Z37eM9UPfGwTMU7Ksats3RdKeRaP5SveR9'
const msPriMemo = '5KDZ9fzihXJbiLqUCMU2Z2xU8VKb9hCggyRPZP37aprD2kVKiuL'
const msmeta = ''
const mainAPI = 'spktoken.dlux.io' //leaders API probably
const mainRender = '' //data and render server
const mainFE = '3speak.tv' //frontend for content
const mainIPFS = 'ipfs.3speak.tv' //IPFS service
const mainICO = '' //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: false, //proof of brain
delegate: false, //delegation
daily: true,
liquidity: false, //liquidity
ico: false, //ico
dex: true, //dex
nft: false, //nfts
state: true, //api dumps
claimdrop: true, //claim drops
inflation: false //inflation
}
const featuresModel = {
claim_id: 'claim',
claim_S: 'Airdrop',
claim_B: true,
claim_json: 'drop',
rewards_id: 'shares_claim',
rewards_S: 'Rewards',
rewards_B: true,
rewards_json: 'claim',
rewardSel: false,
reward2Gov: false,
send_id: 'send',
send_S: 'Send',
send_B: true,
send_json: 'send',
powup_id: 'power_up',
powup_B: false,
pow_val: '',
powdn_id: 'power_down',
powdn_B: false,
powsel_up: false,
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: ''
},
{
S: 'DAO Claim Vote',
type: 'number',
info: '1500 = 15%',
max: 10000,
min: 0,
json: 'dv',
val: ''
}
],
}
}
const adverts = [
'https://camo.githubusercontent.com/954558e3ca2d68e0034cae13663d9807dcce3fcf/68747470733a2f2f697066732e627573792e6f72672f697066732f516d64354b78395548366a666e5a6748724a583339744172474e6b514253376359465032357a3467467132576f50'
]
const detail = {
name: 'Larynx Miner Token',
symbol: 'LARYNX',
icon: 'https://www.dlux.io/img/dlux-hive-logo-alpha.svg',
supply:'Hive 1:1 Airdrop',
wp:`https://docs.google.com/document/d/1_jHIJsX0BRa5ujX0s-CQg3UoQC2CBW4wooP2lSSh3n0/edit?usp=sharing`,
ws:`https://www.dlux.io`,
be:`https://hiveblockexplorer.com/`,
text: `Larynx is a token that is used to mine SPK.`
}
//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,
follow,
NODEDOMAIN,
hookurl,
status,
history,
dbcs,
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,
snapcs,
stream,
mode,
featuresModel,
timeoutStart,
timeoutContinuous,
};
module.exports = config;