Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Adding lncli access to Settings tab #104

Open
wants to merge 373 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
373 commits
Select commit Hold shift + click to select a range
f119df9
Fetch Witness Address
casesandberg Feb 23, 2017
91d6c10
Generate Payment Request
casesandberg Feb 23, 2017
2ed61b6
Add Schema and Single Type to `redux-grpc-middleware`
casesandberg Feb 23, 2017
6dc1808
Hook Transactions Up
casesandberg Feb 23, 2017
46d149f
Hook Up Sidebar
casesandberg Feb 23, 2017
c672cb8
Rearrange Build Scripts
casesandberg Feb 24, 2017
04ac355
Initialize `lightning-currency`
casesandberg Feb 24, 2017
3b9e34d
Add Back in React to Root
casesandberg Mar 5, 2017
409b81e
Change to Hosted Eslint
casesandberg Mar 5, 2017
46f6470
Remove Nav?
casesandberg Mar 5, 2017
513dea3
Update Install Instructions
casesandberg Mar 5, 2017
b9959aa
Add Common Errors to Readme
casesandberg Mar 5, 2017
dd880f0
GRPC Fix
casesandberg Mar 7, 2017
35ccee2
Add Empty Transactions
casesandberg Mar 8, 2017
c110c74
Add Copied to Clipboard Notification
casesandberg Mar 8, 2017
fc6b2d0
Add Notification When Copying Bitcoin Address
casesandberg Mar 8, 2017
d095b73
Remove Currency Selector For Now
casesandberg Mar 8, 2017
d24d1e7
Have Core Export Reducer and Selectors
casesandberg Mar 8, 2017
6aecc7a
Init Pay Reducer
casesandberg Mar 8, 2017
54239f0
Check Payment Request Scaffolding
casesandberg Mar 8, 2017
6c6c91b
Wire Up Channels
casesandberg Mar 8, 2017
0569fdb
Empty Channels
casesandberg Mar 8, 2017
dbb834d
Update Copy
casesandberg Mar 8, 2017
730a837
Create Channel Link
casesandberg Mar 8, 2017
3bd43e6
Add Create Channel Page
casesandberg Mar 8, 2017
654cec1
Create Channel Actions
casesandberg Mar 8, 2017
294c45f
New New Autocomplete Bug?
casesandberg Mar 8, 2017
dd5c667
Update LND!
casesandberg Mar 8, 2017
084e230
Make Payment
casesandberg Mar 8, 2017
38a5bde
Hook Up Wallet
casesandberg Mar 8, 2017
6fd454e
Fetch Balances on Page Load
casesandberg Mar 8, 2017
c706273
Add Back Transaction Status #whoops
casesandberg Mar 9, 2017
1f98a6a
Init Settings Page
casesandberg Mar 9, 2017
9b8133b
Put Back Settings Page
casesandberg Mar 9, 2017
f4ad591
Add QR Popup
casesandberg Mar 9, 2017
f01e8d3
Remove Legacy Files
casesandberg Mar 9, 2017
0f8c136
Eslint Fixes
casesandberg Mar 9, 2017
6c4f08f
Check Account every 20 seconds
casesandberg Mar 14, 2017
73635a3
Add Back Transactions and Invoices Streams
casesandberg Mar 14, 2017
2268ed3
Close Channel
casesandberg Mar 14, 2017
0dfc3ce
Subscribe Payments
casesandberg Mar 16, 2017
31c0d20
Cleanup Old Files
casesandberg Mar 16, 2017
3d465da
Remove Primitive TrafficLights
casesandberg Mar 16, 2017
351d2e9
<App /> to stateless
casesandberg Mar 16, 2017
3fabc1d
Update Router Deps
casesandberg Mar 16, 2017
de0677c
Update LND Binary
casesandberg Mar 16, 2017
af83a8e
Transactions and Wallet Is In Satoshi Now
casesandberg Mar 16, 2017
394c077
Add Syncing Animation
casesandberg Mar 16, 2017
7d1e459
Add Traffic Light Padding
casesandberg Mar 16, 2017
39b90d3
Add Back Satoshi Conversion for Account
casesandberg Mar 16, 2017
92d93ed
Pointer Nav Footer Account to Accounts Page
casesandberg Mar 16, 2017
bf38d15
Update Drag Settings
casesandberg Mar 16, 2017
879c1c0
Disable Selection of Non-Essential Items
casesandberg Mar 16, 2017
18436a0
Fix Package Script
casesandberg Mar 16, 2017
fc07f48
Comment Out `sendPayment`
casesandberg Mar 16, 2017
e0d8345
Streams Notifications Update
casesandberg Mar 16, 2017
f2a66c4
Streams for Send Payment
casesandberg Mar 17, 2017
e6baf61
Close Channel Stream Call
casesandberg Mar 17, 2017
d05f8a0
Transactions Errors
casesandberg Mar 17, 2017
5164d10
Add `txindex` to btcd
casesandberg Mar 17, 2017
45f71ab
Create Channel Stream
casesandberg Mar 17, 2017
29daf54
Close Channel
casesandberg Mar 17, 2017
f92bf6f
Make `listPayments` call
casesandberg Mar 17, 2017
b0b59d0
Fetch Channels on Poll
casesandberg Mar 17, 2017
d4b1120
Fetch Channels on Lightning Payment Recieved
casesandberg Mar 17, 2017
2eb9a5b
Fix Accounts Header Flex Issue
casesandberg Mar 17, 2017
643bad6
Fetch Pending Channels
casesandberg Mar 17, 2017
1e33e8a
Add Active to Channels
casesandberg Mar 17, 2017
1ee875b
Close Channel Icon on Hover
casesandberg Mar 17, 2017
de529c2
Errors and Success on Opening Channel
casesandberg Mar 17, 2017
c1619ad
Pending Channel Greyed Out
casesandberg Mar 17, 2017
21782d3
Change Opening Channel Message
casesandberg Mar 17, 2017
b8ec44c
Infinte Scrolling Logs
casesandberg Mar 17, 2017
ef3b717
Kill Running Processes On App Quit
casesandberg Mar 17, 2017
f1b070e
Fill Out Amount on PaymentRequest when Making Payment
casesandberg Mar 17, 2017
a6863c9
`Catch` a Bunch of Errors
casesandberg Mar 17, 2017
31b8cdb
Remove Subscribe Payments
casesandberg Mar 17, 2017
4844970
Fetch Account on New Transactions & Invoices
casesandberg Mar 17, 2017
37275f8
Remove Unnecessary Catches
casesandberg Mar 17, 2017
fc6dc42
Release All Callbacks on App Reload
casesandberg Mar 17, 2017
a6fbcd0
Catch Transaction Errors
casesandberg Mar 17, 2017
3c5cd3c
Dedupe by Channel Point
casesandberg Mar 18, 2017
d817ff2
Active Label
casesandberg Mar 18, 2017
e0b3f3b
Add `minimizeOnClose`
casesandberg Mar 21, 2017
07e11c6
Don't Kill Child Processes
casesandberg Mar 21, 2017
378b18a
Change CreateChannel Label
casesandberg Mar 21, 2017
4bb5a25
Fetch Channel on Invoice Complete
casesandberg Mar 21, 2017
8340fde
Add Pending Channel ID As Pending
casesandberg Mar 21, 2017
1b9ef37
Make InfiniteScroll to Handle Height
casesandberg Mar 21, 2017
aa405de
Catch If Window Doesn't Exist
casesandberg Mar 21, 2017
c18a31f
Catch GRPC Calls
casesandberg Mar 21, 2017
e86e358
Fix Spawn Process Path
casesandberg Mar 21, 2017
d94c4d1
Fix Error Messages
casesandberg Mar 21, 2017
afc35e6
Stop Devtools on Load in Dev
casesandberg Mar 22, 2017
23ae83a
Build Working
casesandberg Mar 22, 2017
0cdd548
Fix CWD Paths For Packaged App
casesandberg Mar 22, 2017
b0e0bd4
Package Electron All from Root
casesandberg Mar 22, 2017
3c0fee4
Package All!
casesandberg Mar 22, 2017
02e863b
Fix Infinite Scroll Height
casesandberg Mar 22, 2017
36eb9d0
Finalize Packaging for Prod
casesandberg Mar 22, 2017
beb5356
Remove Minding Address in Prod
casesandberg Mar 22, 2017
2b9218f
Add Remote Debugging for Electron in Prod
casesandberg Mar 22, 2017
1e50a19
Make Vendor File in Prod
casesandberg Mar 22, 2017
9c464ef
Make LND Call in Electron not Webpack
casesandberg Mar 22, 2017
83e2b50
Fill UI on Failures
casesandberg Mar 23, 2017
423d0ff
Add Already Running Log
casesandberg Mar 23, 2017
d003819
Remove Process Details from Log
casesandberg Mar 23, 2017
0f1f08d
Add Deadline to Calls
casesandberg Mar 23, 2017
cf9db5d
Change Deadline to 30 seconds
casesandberg Mar 23, 2017
00b22d0
Kill Processes on App Quit
casesandberg Mar 23, 2017
91f2e65
Call Reducer Error on Catch
casesandberg Mar 23, 2017
97379ea
Add Loading Icons
casesandberg Mar 23, 2017
52c9fab
Get Icon to Work?
casesandberg Mar 23, 2017
b3820da
Add 9997 to Readme
casesandberg Mar 24, 2017
457c3ef
Add Icons
casesandberg Mar 27, 2017
8b5ce69
Update `rpc.proto`
casesandberg Apr 11, 2017
8c2a737
Update Binaries and Move into Darwin
casesandberg Apr 11, 2017
f4143c8
Add Platform Path for Binaries
casesandberg Apr 11, 2017
79f01d2
Delete then Build
casesandberg Apr 11, 2017
c6e2579
Simplify Start Pack Command
casesandberg Apr 11, 2017
5dd2569
Add Platform to Bin Path
casesandberg Apr 11, 2017
563f7a0
Add Entire Error Message on Start Pack
casesandberg Apr 11, 2017
c93e125
Catch Main Process Errors?
casesandberg Apr 18, 2017
c467c83
Add New Binaries + Windows EXE
casesandberg Apr 18, 2017
b414c8c
Add Asset
casesandberg Apr 19, 2017
583f000
Change Logging
casesandberg Apr 20, 2017
cb1ed5c
Add Prod Menu
casesandberg Apr 20, 2017
7858cf9
Add Select All
casesandberg Apr 20, 2017
3775866
Change Debug Level
casesandberg Apr 21, 2017
3c943be
Fix Loading Icon Import
casesandberg Apr 21, 2017
51c22c7
Try Catch on `execFile` processes
casesandberg Apr 21, 2017
69acb52
Get Recent 500 logs
casesandberg Apr 21, 2017
5906795
String Errors
casesandberg Apr 21, 2017
764526e
Only Apply Menu on Prod
casesandberg Apr 21, 2017
cc8e674
Check If Server is Running Before Making GRPC Calls
casesandberg Apr 21, 2017
6f01a54
Start Streams when Server is Running
casesandberg Apr 21, 2017
83e67c1
Reorder Sent Flags Assignment to Stop Duplicates
casesandberg Apr 21, 2017
047fe57
Show Syncing when Server is Loading Up
casesandberg Apr 21, 2017
1ffc39b
Batch Running Process Logs
casesandberg Apr 21, 2017
65cb329
Send Request Action before Rejecting If not Ready
casesandberg Apr 21, 2017
4a306b8
Fetch Channels on Payment Sent
casesandberg Apr 22, 2017
07a4f7d
Check for Peer to Determine Force on Close Channel
casesandberg Apr 22, 2017
483da9f
Add Push to Router
casesandberg Apr 22, 2017
186914c
Revert Close Channel to Just add Force True
casesandberg Apr 22, 2017
0d37100
Add CID Label
casesandberg Apr 22, 2017
b4ec153
Fix Pending Channels Populate
casesandberg Apr 22, 2017
fb89b7e
Only Force if No Peer
casesandberg Apr 24, 2017
a991ad5
Fetch Account Immediately After Server Starts
casesandberg Apr 24, 2017
e64297e
Fetch Account on Payment Success
casesandberg Apr 24, 2017
052801a
Don't Show Close on Pending Channels
casesandberg Apr 24, 2017
11d1925
Remove Extra Catch Stopping On-Chain Payments
casesandberg Apr 24, 2017
69743f4
Only Add CID Labels to channels with ids
casesandberg Apr 25, 2017
3e194ac
Spelling Fixes
casesandberg Apr 25, 2017
d7d603d
Keep Newer Channel Information
casesandberg Apr 25, 2017
9af2fc7
Remove Extra Balance Zero
casesandberg Apr 25, 2017
90c3b8f
Resolve `createChannel`
casesandberg May 1, 2017
2260f18
Put Channel in Closing Status
casesandberg May 1, 2017
abf540b
Update RPC and Binaries
casesandberg May 5, 2017
30db5e5
Update Binary Flags
casesandberg May 5, 2017
808db3d
Update Channel Status Styling
casesandberg May 5, 2017
e96362c
Fetch Account and Channels on Server Startup
casesandberg May 5, 2017
ce7e29a
Add Limbo Balance to Wallet
casesandberg May 5, 2017
8f3df38
On Send Logs if There are Logs
casesandberg May 5, 2017
f70dea3
Separate Out Pending Channels for Clashing
casesandberg May 9, 2017
2879c39
Add `parseFloat` to fix floating-point multiplication bug
casesandberg May 15, 2017
4ce085e
Updated Github Logo
casesandberg May 15, 2017
42d57a2
Add Linux Distro
casesandberg May 15, 2017
8069ede
Merge pull request #2 from lightninglabs/update-rpc
casesandberg May 16, 2017
c3fb9f8
Merge branch 'master' into fix-floating-point
casesandberg May 16, 2017
d1b2c6e
Update Channels on Payment
casesandberg May 16, 2017
0886ce5
Add Production Logs
casesandberg May 16, 2017
f350d2a
Merge pull request #3 from lightninglabs/fix-floating-point
casesandberg May 16, 2017
6ec9727
Move Desktop to Apps
casesandberg May 16, 2017
5b0c9c6
Fix Desktop Pathing
casesandberg May 16, 2017
fb06a8f
Change Startup Message
casesandberg May 16, 2017
a7e1585
Update Bin Path
casesandberg May 16, 2017
147b1e2
Cleanup Args
casesandberg May 16, 2017
98f7c13
Merge pull request #4 from lightninglabs/apps-dir
casesandberg May 25, 2017
5f2d3f6
Updated to lnd commit b1205e71ecb46, updated protos and RPC calls acc…
bryanvu Aug 3, 2017
a009a40
Updated to lnd alpha 0.3, added TLS support
bryanvu Aug 28, 2017
f394dc1
pay: refresh the account page, and bottom toolbar on payment success
Roasbeef Sep 13, 2017
90811bd
pay: correct check for payment error on payment attempt
Roasbeef Sep 13, 2017
f2affab
pay: pass in a proper error to rejectError
Roasbeef Sep 13, 2017
7d1d7e8
pay: properly execute the resolveSuccess callback on payment success
Roasbeef Sep 13, 2017
ea1975a
pay: slightly modify copy for diff between on-chain vs off-chain
Roasbeef Sep 13, 2017
7f1df9c
common: change accounts on toolbar to channels
Roasbeef Sep 13, 2017
4b88699
accounts: modify copy for description of channels
Roasbeef Sep 13, 2017
8627cfa
Cross-platform bugfixes
bryanvu Sep 21, 2017
f9749a0
lnd: updated to commit 6253419, connect to lightning.computer
bryanvu Oct 4, 2017
67f2d89
logs: switched from childprocess.execFile() to cp.spawn()
bryanvu Oct 8, 2017
f4ef319
icons: switched to official lightning labs logo
bryanvu Oct 9, 2017
e8c6f38
lnd: updated to commit f20cb89
bryanvu Oct 11, 2017
05599ed
README: correct link to github repo
Roasbeef Oct 12, 2017
812d067
README: update with description
Roasbeef Oct 12, 2017
4903a07
add GPLv3 license
Roasbeef Oct 12, 2017
72cb414
README: removed step to run npm install
willpiers Oct 15, 2017
454c390
Fetch Balance when Fetching Accounts
casesandberg Oct 18, 2017
273f39f
lnd: update to lnd commit d89491
bryanvu Oct 19, 2017
e8368c0
bump version to 0.1.1-alpha
Roasbeef Oct 19, 2017
01d6100
README: updated readme to remove lnd build and to add package-electron
bryanvu Oct 20, 2017
dfb6d11
doc: created issue template
bryanvu Oct 20, 2017
653e4f6
Fix spacing
thejourneydude Oct 20, 2017
cd2e8f3
Remove unnecessary commented-out code
thejourneydude Oct 20, 2017
9dd194f
Fix ESLint rules
thejourneydude Oct 20, 2017
f77ee63
Allowed displaying complete TxID, note with word-wrap and PubKey in w…
hokkaidosuneku Oct 18, 2017
7f4e037
Added commas to amounts on Wallet, transactionslist and channellist a…
hokkaidosuneku Oct 19, 2017
1de8afa
Prevent wrapping of currency unit to the next line and fix flex on Wa…
hokkaidosuneku Oct 23, 2017
b04c660
Added right-click context menu with copy and select all for payreques…
hokkaidosuneku Oct 21, 2017
4f1781c
Add paste option for pasting wallet address and amount in Pay screen
hokkaidosuneku Oct 21, 2017
178ee56
Added paste context menu for create channel form
hokkaidosuneku Oct 22, 2017
7e6cd14
Fix race condition between start-electron and start-webpack scripts
thejourneydude Oct 24, 2017
ac5d5ac
Remove mention of bug fix
thejourneydude Oct 24, 2017
11b65a0
Revert "Remove mention of bug fix"
bryanvu Oct 25, 2017
daf0393
Revert "Fix race condition between start-electron and start-webpack s…
bryanvu Oct 25, 2017
4663b07
auth: add support for macaroons
bryanvu Oct 26, 2017
9b88755
dev: remove configuration for dev mode, use local lnd.conf
bryanvu Oct 27, 2017
94ea734
readme: removed section headers in lnd.conf
bryanvu Oct 28, 2017
55f77b2
Disable node integration
bryanvu Nov 3, 2017
604d057
Revert "auth: add support for macaroons"
bryanvu Nov 6, 2017
7f32aa5
Updated to lnd commit 0ec22cc
bryanvu Nov 3, 2017
14006e1
Added --nowalletencryption flag
bryanvu Nov 3, 2017
09cfb38
lnd: update lnd to commit 5dbf508
bryanvu Nov 7, 2017
93aff7f
update version to 0.1.2
Roasbeef Nov 6, 2017
0abe34f
Fixed log height and width adjustment on resize of screen in settings…
hokkaidosuneku Nov 12, 2017
acbbff9
auth: add support for macaroons
bryanvu Oct 26, 2017
691f0bc
lnd: update to commit c0b8c29
bryanvu Nov 30, 2017
48cef0f
update version to 0.1.3
Roasbeef Nov 30, 2017
7acd1aa
lnd: update to commit 4d6cd2e
bryanvu Dec 1, 2017
53021e6
bump version to 0.1.3.1
Roasbeef Dec 1, 2017
16a5e8c
package: modify latest version to comply with npm's semantic version
Roasbeef Dec 3, 2017
14fda1c
Adding subdependencies and Terminal component
diofeher Dec 8, 2017
ad8c88a
Adding Terminal component
diofeher Dec 8, 2017
1b27e0e
Removing react-bash and reworking the UI
diofeher Dec 11, 2017
cf9d19f
Getting feedback after sending the lncli command
diofeher Dec 12, 2017
e27d592
add qrcode to payment request
yate Dec 10, 2017
74babef
revert package.json files
yate Dec 10, 2017
e41074a
remove console.log
yate Dec 10, 2017
f3f5dc8
replace lightning:// with lightning:
yate Dec 10, 2017
669b9df
make qr images sharper
yate Dec 11, 2017
729a279
payreq: replace 'lightning://' with 'lightning' on payment requests'
bryanvu Dec 22, 2017
40191cb
Adding the ability to pass arguments in npm start to lnd command
diofeher Dec 13, 2017
76aefc7
Updating README
diofeher Dec 13, 2017
1244e71
Removing unnecessary code
diofeher Dec 13, 2017
a2de63d
Removing console.log
diofeher Dec 13, 2017
327e486
Disable amount field for invoice payment requests
bulenttastan Dec 18, 2017
302dea0
Master merge
diofeher Dec 25, 2017
00d0348
Reverting package.json
diofeher Dec 25, 2017
7f12291
More cleanup
diofeher Dec 25, 2017
f1af933
Packaging lncli with electron by default
diofeher Jan 18, 2018
ba5be37
Bundling lncli together with ln app
diofeher Jan 19, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
dist
release
main.js
main.js.map
43 changes: 2 additions & 41 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,45 +1,6 @@
var IGNORE = 0
var WARN = 1
var ERROR = 2

var ALWAYS = 'always'
var NEVER = 'never'
var OFF = 'off'

module.exports = {
extends: 'airbnb',
parser: 'babel-eslint',
env: {
browser: true,
node: true
},
extends: '@case/eslint-config',
rules: {
'react/jsx-curly-spacing': [ERROR, ALWAYS, { spacing: { objectLiterals: NEVER }}],
"react/jsx-filename-extension": [IGNORE],
'react/prop-types': [IGNORE],
'template-curly-spacing': [ERROR, ALWAYS],
'strict': [IGNORE],
'no-unused-expressions': IGNORE,
'no-unused-vars': [ERROR, { 'vars': 'local' }],
'arrow-body-style': [IGNORE, ALWAYS],
'camelcase': [ERROR],
'constructor-super': ERROR,
'quote-props': [ERROR, 'consistent'],
'no-underscore-dangle': [WARN],
'semi': [ERROR, NEVER],
'import/no-unresolved': [ERROR],
'new-cap': [IGNORE],
'jsx-a11y/no-static-element-interactions': [IGNORE],
'import/no-named-as-default': [IGNORE],
'import/no-extraneous-dependencies': [IGNORE],
'react/require-extension': OFF
},
'settings': {
'import/core-modules': [
'electron',
'redux-grpc-middlware',
'lightning-notifications',
'lightning-store',
]
'import/imports-first': 0,
}
}
9 changes: 9 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Description

### Steps to reproduce the behavior

### Expected behavior

### Actual behavior

### Screenshot and/or logs if applicable
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
node_modules

# App packaged
*package-lock.json
dist
release
main.js
Expand Down
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

81 changes: 81 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
## Lightning Desktop App

This repo houses a cross-platform Lightning desktop app powered by
[`lnd`](https://github.com/lightningnetwork/lnd/). The application is under
active development and currently only operates on the Bitcoin testnet chain.

<img src="screenshot.png">

### Developing Locally


First start by pulling down the git repo:
```
git clone https://github.com/lightninglabs/lightning-app.git
```

Then go inside the project folder and run the following commands (grab a coffee, this might take a while):
```
cd lightning-app
npm run setup
```

### Development Mode

You can run the app in development mode in lieu of using the packaged app:
```
npm start
```

You can pass extra arguments to be passed to lnd daemon (note the extra --):
```
npm run start -- --peerport=10019 --rpcport=10017 --datadir=test_lnd --logdir=test_lnd
```

In development mode, the app will look for an lnd.conf in the default location for your platform. See [`lnd.conf` details](https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md#creating-an-lndconf-optional). A typical lnd.conf for running on simnet will look like the following:

```
debuglevel=debug
bitcoin.active=1
bitcoin.simnet=1
bitcoin.rpcuser=lnd
bitcoin.rpcpass=lnd
```

Running in development mode can allow you to run in full node mode instead of the default neutrino mode, and will also allow you to run in simnet node for testing.

Note that in order to run in simnet node, you will have also had to separately install and configure the [roasbeef fork of `btcd`](https://github.com/roasbeef/btcd). Additional instructions for running simnet can be found [here](https://gist.github.com/davecgh/2992ed85d41307e794f6).

Also note that if you have installed and built [`lnd`](https://github.com/lightningnetwork/lnd) separately, if an instance is running when the app starts, the app will connect to the already running instance rather than attempt to start a new one.

If you want your lnd.conf to replicate the configuration used by the packaged app, you can use the following:

```
debuglevel=info
bitcoin.active=1
bitcoin.testnet=1
neutrino.active=1
neutrino.connect=btcd0.lightning.computer:18333
autopilot.active=1
```

### Building the Packaged App

To build the packaged version of the app for your current platform, run:
```
npm run package-electron
```

The packaged app will then be available in the lightning-app/release directory. The packaged version of the app will run on Bitcoin testnet. To debug a packaged app, go to localhost:9997 in your browser.

### Errors

If the window doesn't load after running `npm start`: try clicking on dev tools window and hitting `cmd-r` to refresh the window.

### Logs
Logs are written to the following locations:

* **Linux:** `~/.config/Lightning/log.log`
* **OSX:** `~/Library/Logs/Lightning/log.log`
* **Windows:** `%USERPROFILE%\AppData\Roaming\Lightning\log.log`

75 changes: 75 additions & 0 deletions apps/desktop/app.dev.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!DOCTYPE html>

<title>Lightning</title>
<meta charset="utf-8">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<style> html { font-size: 62.5%; background-color: #272429; } </style>

<div id="root">
<div style="display: flex; justify-content: center; align-items: center; position: absolute; top: 0; right: 0; bottom: 0; left: 0;">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" width=100px xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 350 350" style="enable-background:new 0 0 350 350;" xml:space="preserve">
<style type="text/css">
.st0{fill:url(#XMLID_3_);}
.st1{opacity:0.43;fill:url(#XMLID_4_);}
.st2{fill:#431E9A;}
.st3{fill:url(#XMLID_5_);}
.st4{fill:url(#XMLID_6_);}
.st5{fill:url(#XMLID_7_);}
</style>
<g id="XMLID_253_">
<linearGradient id="XMLID_3_" gradientUnits="userSpaceOnUse" x1="120.3777" y1="213.5417" x2="258.8321" y2="115.8684">
<stop offset="8.888889e-03" style="stop-color:#6BC7B2"/>
<stop offset="0.5022" style="stop-color:#3A8AFF"/>
<stop offset="1" style="stop-color:#4B0D91"/>
</linearGradient>
<path id="XMLID_279_" class="st0" d="M246.7,153.9L246.7,153.9c-1.6-1-3.4-1.6-5.3-1.6H177h-53.5l-0.5,0.6c0,0-19.5,24.1-21.5,27.4
c-0.7,1.2-2.7,2.4-2.7,7.5c0,1.2,0.6,2.3,0.6,3.4v0c2,3.5,5.2,6,9.4,6h64.4h54.1c1-1,19.5-24.1,21.4-27.2c0.7-1.2,2.6-2.8,2.6-7.9
C251.2,158.8,249.4,155.7,246.7,153.9z"/>
<linearGradient id="XMLID_4_" gradientUnits="userSpaceOnUse" x1="429.8382" y1="-121.3731" x2="-89.1705" y2="493.3751">
<stop offset="8.888889e-03" style="stop-color:#6BC7B2"/>
<stop offset="0.5022" style="stop-color:#3A8AFF"/>
<stop offset="1" style="stop-color:#4B0D91"/>
</linearGradient>
<path id="XMLID_126_" class="st1" d="M108.7,197.3h64.4h54.1c1-1,19.5-24.1,21.4-27.2c0.7-1.2,2.6-2.8,2.6-7.9
c0-3.3-1.8-6.4-4.6-8.2L99.6,191.2C101,194.7,104.5,197.3,108.7,197.3z"/>
<g id="XMLID_123_">
<g>
<path id="XMLID_18_" class="st2" d="M173.1,197.3l-48.2,127.5l102.3-127.5c0,0,0-0.1,0.1-0.1h-27.7H173.1z"/>
<path id="XMLID_17_" class="st2" d="M108.7,197.3h64.4h54.1c1-1,19.5-24.1,21.4-27.2c0.7-1.2,2.6-2.8,2.6-7.9
c0-3.3-1.8-6.4-4.6-8.2L99.6,191.2C101,194.7,104.5,197.3,108.7,197.3z"/>
</g>
</g>
<g id="XMLID_69_">
<linearGradient id="XMLID_5_" gradientUnits="userSpaceOnUse" x1="106.8188" y1="177.8085" x2="187.8188" y2="101.3085">
<stop offset="8.888889e-03" style="stop-color:#6BC7B2"/>
<stop offset="0.5022" style="stop-color:#3A8AFF"/>
<stop offset="1" style="stop-color:#4B0D91"/>
</linearGradient>
<polygon id="XMLID_129_" class="st3" points="225.2,25.2 123.5,152.3 149.6,152.3 177,152.3 "/>
<linearGradient id="XMLID_6_" gradientUnits="userSpaceOnUse" x1="131.3774" y1="203.8118" x2="212.3774" y2="127.3118">
<stop offset="8.888889e-03" style="stop-color:#6BC7B2"/>
<stop offset="0.5022" style="stop-color:#3A8AFF"/>
<stop offset="1" style="stop-color:#4B0D91"/>
</linearGradient>
<path id="XMLID_128_" class="st4" d="M241.4,152.3H177h-53.5l-0.5,0.6c0,0-19.5,24.1-21.5,27.4c-0.7,1.2-2.6,2.4-2.6,7.5
c0,1.2,0.2,2.3,0.7,3.4l147.1-37.3C245.2,152.9,243.4,152.3,241.4,152.3z"/>
<g id="XMLID_120_">
<polygon id="XMLID_122_" class="st2" points="149.6,152.3 225.2,25.2 177,152.3 "/>
<linearGradient id="XMLID_7_" gradientUnits="userSpaceOnUse" x1="168.2478" y1="242.851" x2="249.2478" y2="166.351">
<stop offset="8.888889e-03" style="stop-color:#6BC7B2"/>
<stop offset="0.5022" style="stop-color:#3A8AFF"/>
<stop offset="1" style="stop-color:#4B0D91"/>
</linearGradient>
<polygon id="XMLID_121_" class="st5" points="199.5,197.3 124.9,324.8 173.1,197.3 "/>
</g>
</g>
</g>
</svg>
</div>
</div>

<script src="http://localhost:4152/dist/vendor.js"></script>
<script src="http://localhost:4152/dist/bundle.js"></script>
75 changes: 75 additions & 0 deletions apps/desktop/app.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<!DOCTYPE html>

<title>Lightning</title>
<meta charset="utf-8">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<style> html { font-size: 62.5%; background-color: #272429; } </style>

<div id="root">
<div style="display: flex; justify-content: center; align-items: center; position: absolute; top: 0; right: 0; bottom: 0; left: 0;">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" width=100px xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 350 350" style="enable-background:new 0 0 350 350;" xml:space="preserve">
<style type="text/css">
.st0{fill:url(#XMLID_3_);}
.st1{opacity:0.43;fill:url(#XMLID_4_);}
.st2{fill:#431E9A;}
.st3{fill:url(#XMLID_5_);}
.st4{fill:url(#XMLID_6_);}
.st5{fill:url(#XMLID_7_);}
</style>
<g id="XMLID_253_">
<linearGradient id="XMLID_3_" gradientUnits="userSpaceOnUse" x1="120.3777" y1="213.5417" x2="258.8321" y2="115.8684">
<stop offset="8.888889e-03" style="stop-color:#6BC7B2"/>
<stop offset="0.5022" style="stop-color:#3A8AFF"/>
<stop offset="1" style="stop-color:#4B0D91"/>
</linearGradient>
<path id="XMLID_279_" class="st0" d="M246.7,153.9L246.7,153.9c-1.6-1-3.4-1.6-5.3-1.6H177h-53.5l-0.5,0.6c0,0-19.5,24.1-21.5,27.4
c-0.7,1.2-2.7,2.4-2.7,7.5c0,1.2,0.6,2.3,0.6,3.4v0c2,3.5,5.2,6,9.4,6h64.4h54.1c1-1,19.5-24.1,21.4-27.2c0.7-1.2,2.6-2.8,2.6-7.9
C251.2,158.8,249.4,155.7,246.7,153.9z"/>
<linearGradient id="XMLID_4_" gradientUnits="userSpaceOnUse" x1="429.8382" y1="-121.3731" x2="-89.1705" y2="493.3751">
<stop offset="8.888889e-03" style="stop-color:#6BC7B2"/>
<stop offset="0.5022" style="stop-color:#3A8AFF"/>
<stop offset="1" style="stop-color:#4B0D91"/>
</linearGradient>
<path id="XMLID_126_" class="st1" d="M108.7,197.3h64.4h54.1c1-1,19.5-24.1,21.4-27.2c0.7-1.2,2.6-2.8,2.6-7.9
c0-3.3-1.8-6.4-4.6-8.2L99.6,191.2C101,194.7,104.5,197.3,108.7,197.3z"/>
<g id="XMLID_123_">
<g>
<path id="XMLID_18_" class="st2" d="M173.1,197.3l-48.2,127.5l102.3-127.5c0,0,0-0.1,0.1-0.1h-27.7H173.1z"/>
<path id="XMLID_17_" class="st2" d="M108.7,197.3h64.4h54.1c1-1,19.5-24.1,21.4-27.2c0.7-1.2,2.6-2.8,2.6-7.9
c0-3.3-1.8-6.4-4.6-8.2L99.6,191.2C101,194.7,104.5,197.3,108.7,197.3z"/>
</g>
</g>
<g id="XMLID_69_">
<linearGradient id="XMLID_5_" gradientUnits="userSpaceOnUse" x1="106.8188" y1="177.8085" x2="187.8188" y2="101.3085">
<stop offset="8.888889e-03" style="stop-color:#6BC7B2"/>
<stop offset="0.5022" style="stop-color:#3A8AFF"/>
<stop offset="1" style="stop-color:#4B0D91"/>
</linearGradient>
<polygon id="XMLID_129_" class="st3" points="225.2,25.2 123.5,152.3 149.6,152.3 177,152.3 "/>
<linearGradient id="XMLID_6_" gradientUnits="userSpaceOnUse" x1="131.3774" y1="203.8118" x2="212.3774" y2="127.3118">
<stop offset="8.888889e-03" style="stop-color:#6BC7B2"/>
<stop offset="0.5022" style="stop-color:#3A8AFF"/>
<stop offset="1" style="stop-color:#4B0D91"/>
</linearGradient>
<path id="XMLID_128_" class="st4" d="M241.4,152.3H177h-53.5l-0.5,0.6c0,0-19.5,24.1-21.5,27.4c-0.7,1.2-2.6,2.4-2.6,7.5
c0,1.2,0.2,2.3,0.7,3.4l147.1-37.3C245.2,152.9,243.4,152.3,241.4,152.3z"/>
<g id="XMLID_120_">
<polygon id="XMLID_122_" class="st2" points="149.6,152.3 225.2,25.2 177,152.3 "/>
<linearGradient id="XMLID_7_" gradientUnits="userSpaceOnUse" x1="168.2478" y1="242.851" x2="249.2478" y2="166.351">
<stop offset="8.888889e-03" style="stop-color:#6BC7B2"/>
<stop offset="0.5022" style="stop-color:#3A8AFF"/>
<stop offset="1" style="stop-color:#4B0D91"/>
</linearGradient>
<polygon id="XMLID_121_" class="st5" points="199.5,197.3 124.9,324.8 173.1,197.3 "/>
</g>
</g>
</g>
</svg>
</div>
</div>

<script src="dist/vendor.js"></script>
<script src="dist/bundle.js"></script>
Binary file added apps/desktop/assets/ln-desktop.sketch
Binary file not shown.
22 changes: 22 additions & 0 deletions apps/desktop/assets/ln-logo
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
How to use this icon:

Step 1: Copy the icon to the clipboard
a) Click on this file from the Finder
b) Choose 'Get Info' from the 'File' menu.
c) In the info window that pops up, click on the icon
d) Choose 'Copy' from the 'Edit' menu.
e) Close the info window

Step 2: Paste the icon to the desired item
a) Go to the item in the Finder that you want a custom icon
b) Click the item (file, folder, disk, etc)
b) Choose 'Get Info' from the 'File' menu.
c) In the info window that pops up, click on the icon
d) Choose 'Paste' from the 'Edit' menu.
e) Close the info window

Step 3:
Enjoy your newly customized icon!

For more thorough directions, see Apple's website at:
http://www.apple.com/support/mac101/customize/6/
Binary file added apps/desktop/assets/ln-logo.icns
Binary file not shown.
Binary file added apps/desktop/assets/ln-logo.ico
Binary file not shown.
Binary file added apps/desktop/assets/ln-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/desktop/assets/ln-logo.sketch
Binary file not shown.
Binary file added apps/desktop/bin/darwin/lncli
Binary file not shown.
Binary file added apps/desktop/bin/darwin/lnd
Binary file not shown.
Binary file added apps/desktop/bin/linux/lnd
Binary file not shown.
Binary file added apps/desktop/bin/win32/lnd.exe
Binary file not shown.
22 changes: 22 additions & 0 deletions apps/desktop/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { ConnectedRouter } from 'react-router-redux'
import 'normalize.css'
import { configureStore, history } from 'lightning-store'
import { App } from 'lightning-app'
import { remote } from 'electron'

// Release the callbacks on app startup
remote.getCurrentWindow().removeAllListeners()

const store = configureStore()

render(
<Provider store={ store }>
<ConnectedRouter history={ history }>
<App dispatch={ store.dispatch } />
</ConnectedRouter>
</Provider>,
document.getElementById('root'),
)
Loading