From fd7f44714faf543e618a30c1d8b32f1ddb67f54a Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Mon, 16 Jul 2018 22:35:26 +0200 Subject: [PATCH] feat(btcpayserver): add support for BTCPayServer Allow connecting to an LND instance that is behind BTCPayServer. --- app/components/Onboarding/BtcPayServer.js | 58 ++++++++++ app/components/Onboarding/BtcPayServer.scss | 58 ++++++++++ .../Onboarding/ConnectionConfirm.js | 21 ++++ .../Onboarding/ConnectionConfirm.scss | 17 +++ app/components/Onboarding/ConnectionType.js | 6 + app/components/Onboarding/ConnectionType.scss | 2 +- app/components/Onboarding/Onboarding.js | 64 ++++++++++- app/containers/Root.js | 15 ++- app/lnd/config/index.js | 22 ++-- app/lnd/lib/lightning.js | 7 +- app/lnd/lib/util.js | 34 +++--- app/package.json | 2 +- app/reducers/onboarding.js | 103 +++++++++++++++++- app/yarn.lock | 6 +- app/zap.js | 12 +- 15 files changed, 383 insertions(+), 44 deletions(-) create mode 100644 app/components/Onboarding/BtcPayServer.js create mode 100644 app/components/Onboarding/BtcPayServer.scss create mode 100644 app/components/Onboarding/ConnectionConfirm.js create mode 100644 app/components/Onboarding/ConnectionConfirm.scss diff --git a/app/components/Onboarding/BtcPayServer.js b/app/components/Onboarding/BtcPayServer.js new file mode 100644 index 00000000..3221f62a --- /dev/null +++ b/app/components/Onboarding/BtcPayServer.js @@ -0,0 +1,58 @@ +import React from 'react' +import PropTypes from 'prop-types' +import styles from './BtcPayServer.scss' + +const BtcPayServer = ({ + connectionString, + connectionStringIsValid, + setConnectionString, + startLndHostError +}) => ( +
+
+ +