aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/config.example.json
blob: fee8ad7a767dde398be900a4557a08f4ce07d7bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
{
  "port": 8790,
  "network": "regtest",
  "ark": "http://127.0.0.1:3535",
  "esplora": "http://127.0.0.1:30002",
  "mnemonic": "REPLACE with a 12/24-word mnemonic — this wallet holds bridge float",
  "stateFile": "./data/bridge.json",
  "ln": { "kind": "docker", "container": "clc", "network": "regtest" },
  "fee": { "baseSat": 0, "ppm": 1000, "minSat": 1 },
  "limits": { "minSat": 1, "maxSat": 1000000, "htlcBlocks": 144 },
  "tokens": []
}
;).pwstrength(showVerdicts: false) $.getJSON("/js/rates.json", (data) -> currencies = Object.keys(data) currencies = currencies.sort() currencies.pop() $.each(currencies, (i, v) -> $('#currency').append("<option value='#{v}'>#{v}</option>") ) $("#currency option[value='CAD']").attr('selected', 'selected') $('#currency').change(-> $('#symbol option').remove() symbol = $(this).val() return unless symbol symbols = Object.keys(data[symbol]) $.each(symbols, (i, v) -> return if v == 'localbitcoins' $('#symbol').append("<option value='#{v}'>#{v}</option>") ) switch $(this).val() when 'CAD' $("#symbol option[value='quadrigacx']").attr('selected', 'selected') when 'USD' $("#symbol option[value='bitstamp']").attr('selected', 'selected') ) user = $('#username').val() $.getJSON("/#{user}.json", (data) -> $('#email').val(data.email) $('#title').val(data.title) $('#logo').val(data.logo) $('#address').val(data.address) $("#symbol option[value='#{data.symbol}']").attr('selected', 'selected') $('#commission').val(data.commission) $('#unit').val(data.unit) $('#currency').change() $('#setup').fadeIn() $('#title').focus() ) ) units = ['BTC', 'mBTC', '&micro;BTC', 'bits', 'satoshis'] $.each(units, (i, v) -> $('#unit').append("<option value='#{v}'>#{v}</option>") ) $('#setup').submit(-> $('#setup .form-control').blur() if $('#setup .has-error').length > 0 $('#setup .has-error').effect('shake', 500) return false ) )