-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsettings_json.py
43 lines (42 loc) · 1.43 KB
/
settings_json.py
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
import json
from nowallet.exchange_rate import CURRENCIES
def settings_json(coin="BTC"):
return json.dumps(
[
{
"type": "bool",
"title": "RBF",
"desc": "Use opt in replace by fee?",
"section": "nowallet",
"key": "rbf"
}, {
"type": "options",
"title": "Coin Units",
"desc": "Preferred Bitcoin denomination",
"section": "nowallet",
"key": "units",
"options": [coin, "m{}".format(coin), "u{}".format(coin)]
}, {
"type": "options",
"title": "Currency",
"desc": "Fiat currency for exchange rates",
"section": "nowallet",
"key": "currency",
"options": CURRENCIES
}, {
"type": "options",
"title": "Block Explorer",
"desc": "Preferred block explorer",
"section": "nowallet",
"key": "explorer",
"options": ["blockcypher", "smartbit"]
}, {
"type": "options",
"title": "Price Provider",
"desc": "Preferred price provider",
"section": "nowallet",
"key": "price_api",
"options": ["BitcoinAverage", "CryptoCompare"]
}
]
)