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
|
const dbOptions = require("./config.json")[process.env.NODE_ENV || "development"];
let lnurl;
try {
lnurl = require("./lnurl");
} catch(e) {
l.warn("lnurl config not found");
}
const btcasset = "5ac9f65c0efcc4775e0baec4ec03abdde22473cd3cf33c0419ca290e0751b225";
const cadasset = "e749f7326d0ba155ec1d878e23458bc3f740a38bf91bbce955945ee10d6ab523";
const usdtasset = "4dddd1d0d0beeaee17df7722b512906cc5bc660c81225083b72b05820ecd3d91";
module.exports = {
lnurl,
clientVersion: "x11111xx11xx11x11x11111111xx1111111xx111",
vapid: {
url: "https://coinos.io/",
publicKey:
"xxxxxx111xxxx1xxx111xxxxxxxxxxxxxxxxx_x-xxx1xxx1xxxxxxxx1xxxxxxxxx1x1xxxxxxxx1xxx1xxxxx",
privateKey: "1xxx1x1xxxxx1xxx1x-xx_xxxx1xxxxx1x1xxx1x1x1"
},
dbOptions,
ipstack: "2e1805258268b4992ebac06e20fc1865", // optional, set default currency based on IP
jwt: '2ad260b2202ad557b205ba17c7d8d62c69ffc95021b6147597c32eb30e3cf899',
port: 3119,
facebook: {
appToken: '290368338052652|WorpE7Brn61TTKUOQUyy1T8cKvc',
specialFriend: '10102176487832944',
},
bitcoin: {
masterkey: 'tprv8ZgxMBicQKsPfBhnpvyFH3PxL7sWhT3bVzk4WE77QRoARn2xxzisfQph34Vv25RnJ5kpoDZunJvy7dSGSSRBkTDkqqVH12W8ikKtWfyj1zw', // get from bitcoin-cli dumpwallet "walletfile"
username: "user",
password: "password",
network: "regtest",
port: 18443,
zmqrawblock: "tcp://127.0.0.1:18506",
zmqrawtx: "tcp://127.0.0.1:18507"
},
liquid: {
masterkey: 'tprv8ZgxMBicQKsPe2qXQ8U9qMQKGE5M3qTKbacCG5nrjsBYCB4AbNeRiJR2rPm86S7UoVLd9ubEmHSVtnZqSrJc76BzKrkhuiPYReNWiFzWWVR', // get from elements-cli dumpwallet "walletfile"
blindkey: '0e66557c1dfa0c7daa371314ffd763979d3f7c5db69380e5c15ea72b85453c2e',
wallet: "coinos",
username: "user",
password: "password",
network: "regtest",
port: 18882,
zmqrawblock: "tcp://127.0.0.1:18602",
zmqrawtx: "tcp://127.0.0.1:18603",
btcasset: "b2e15d0d7a0c94e4e2ce0fe6e8691b9e451377f6e46e8045a86f7c4b5d4f0f23", // find with elements-cli dumpassetlabels
},
lna: {
server: 'localhost:10001',
tls: '/home/user/.lnd.testa/tls.cert',
macaroon: '/home/user/.lnd.testa/data/chain/bitcoin/testnet/admin.macaroon',
},
maker: [ // special account with username "maker" places orders on the exchange
{
c1: btcasset,
c2: cadasset,
currency: "CAD".
amount: 0.001,
askMultiplier: 1.01,
bidMultiplier: 0.99,
},
{
c1: btcasset,
c2: usdtasset,
currency: 'USD',
amount: 0.001,
askMultiplier: 1.01,
bidMultiplier: 0.99,
}
],
}
|