Tom Kirkpatrick
e8dd544bca
test(unit): test Controller.startLightningWallet
Add unit tests to verify that ZapController.startLightningWallet()
behaves as expected.
6 years ago
Jack Mallers
545285f0c3
feat(invoice): add priv routing hints for light clients
6 years ago
Jack Mallers
8548b744ec
feat(payment): add 60 second payment timeout
In this commit we introduce a 60 second timeout for LN payments. This addresses the issue of infinitely hanging LN payments and improves the UX. The UI now has a 60 second countdown where Zap will clear the payment if it is not successfully routed
6 years ago
Tom Kirkpatrick
bcb938b588
test(reducers): add activity reducer tests
6 years ago
Tom Kirkpatrick
133e34dea2
test(neutrino): basic neutrino process spawn test
6 years ago
Tom Kirkpatrick
a16fdec23b
fix(lnd): ensure graceful shutdown
Lnd doesn't currently do a graceful shutdown when a `SIGTERM` is issued.
To ensure a graceful shutdown, call `stopDaemon` on the gRPC interface
prior to terminating lnd. If a graceful shutdown is unsuccessful then
force kill the daemon.
6 years ago
Jack Mallers
59a64714d1
feat(settings): close on blur click
fix(multi-lang): switch ticker to settings store
fix(tests): pass all tests
fix(fiat): switch from usd to fiat
fix(settings): fix console errors
fix(settings): make styles consistent
fix(tests): remove unneeded mocks
fix(payform): call satoshisToFiat now
fix(network): rebase + fix network fiat amt
7 years ago
Tom Kirkpatrick
853c69468f
feat(lnd): update lnd to v0.4.2-beta-913-g26f68da5
6 years ago
Evan Kaloudis
da1a53ecc8
feat(errors): create a util for making error messages more user-friendly
6 years ago
Data Courier
818dd25012
feat(ui): integrate AmountInput into wallet UI
Use the new AmountInput component throughout the wallet.
Fix #682
7 years ago
Data Courier
d51e39f407
feat(components): add new AmountInput component
Add a new AmountInput component to render an input field for entering
bitcoin denominated amounts. Has special handling for bitcoin / sats /
bits to ensure that only valid amounts can be entered and that the
formatting looks visually correct.
7 years ago
Jack Mallers
9b837ba316
fix(channels): neutrino clients manual channels flagged private
Make sure that if a user of ours is using neutrino that we flag their
channels as private when they manually open them. Reason for this is
because light consumer clients are not expected to have high uptime.
However we cannot hardcode channels as private every time because we
do support more power users driving their remote nodes or BTCPay
Server with Zap. So we only flag channels as private if the
activeConnection is local.
6 years ago
Tom Kirkpatrick
b3044b26a7
test(reducers): add transaction reducer tests
6 years ago
Tom Kirkpatrick
e786958b55
test(electron): simplify electron mocks
6 years ago
Tom Kirkpatrick
602d03411a
test(unit): add some basic tests for Lightning class
6 years ago
Tom Kirkpatrick
1b4de6cb0c
feat(lnd): show error message if lnd exits
If lnd unexpectedly exits, show the user the last error message
reported by lnd in order to help diagnose issues.
See #674
6 years ago
Tom Kirkpatrick
2ab60892d0
test(neutrino): tests for start and stop methods
6 years ago
Tom Kirkpatrick
38c19ac618
test(lnd): add some tests for neutrino
7 years ago
Tom Kirkpatrick
56c6c59180
feat(lnd): support multiple lnd configurations
Store lnd data within the Zap datadir and prepare to be able to support
multiple lnd configurations.
7 years ago
Tom Kirkpatrick
d4c51e9e3d
test(runner): reorganise test suites
Reorganise test suite so that unit tests are cleanly separate from e2e
tests. Update tests to make better use of our custom module resolves.
7 years ago
Tom Kirkpatrick
4b98b5a1fc
chore(deps): update react packages to v16.x
Update react and related dependencies to the latest 16.x versions.
7 years ago
Tom Kirkpatrick
5681b82a3c
refactor: move helper code to lib directory
7 years ago
Tom Kirkpatrick
a989c038fc
feat(wallet): remember last wallet address
Only generate a new wallet address after the last one has been used.
Fix #519
7 years ago
Ben Woosley
dc29c80ad0
style(line length): Drop prettier line length from 120 to 100
Subjectively, this increases general readability, while the higher max-length
limit allows for longer strings and comments, etc.
7 years ago
Ben Woosley
f87236495a
style(line length): Limit prettier line length to 120 chars
150 is a bit too long
7 years ago
Tom Kirkpatrick
0c7e75eb05
perf(bundle-size): only import used react icons
The final size of renderer.prod.js is about 4.75mb. 2.35mb of this comes
from react-icons.
Update the react icon imports to import only the specific icons that we
use. This reduces the final size of renderer.prod.js by about 50%
7 years ago
Tom Kirkpatrick
0846bcb772
style(lint): lint and format all code
7 years ago
Ben Woosley
06595b1ea4
enhance(test): Drop pessimistic printing of logs that shouldn't be there
This test code is unnecessary in the common case and can be revived if the test
fails.
7 years ago
Ben Woosley
07facd5d0d
On the receive modal, label the address Testnet when appropriate
7 years ago
Ben Woosley
08fbed672f
Prefix ticker units with 't' when running on testnet
7 years ago
Ben Woosley
7d39aec678
Replace info.isTestnet with info.network
This holds network-specific information, initially the explorerUrl and the
bitcoinJsNetwork.
7 years ago
Ben Woosley
037f351b59
Drop the ModalRoot component
Given we have no active use of it, and the trend seems to be toward independent
modal components, eg. ContactModal, let's drop it.
7 years ago
Ben Woosley
7e998285f9
Drop the SuccessfulSendPayment and SuccessfulSendCoins modals
These are defunct, see the replacements:
showSuccessPayScreen and successTransactionScreen in Wallet.
7 years ago
Ben Woosley
4652c60ea7
Fix ModalRoot spec to pass
By providing required param isTestnet
7 years ago
Jack Mallers
a42b1a04e6
fix(lint/tests): fix lint/tests and remove hard coded data
7 years ago
Jack Mallers
63707b0b40
fix(lint/tests): fix lint and test errors
7 years ago
Jack Mallers
d797b18d3a
fix(lint/tests): fix lint/tests
7 years ago
Jack Mallers
0ea5cc743e
fix(lint/tests): fix lint errors and gen new snapshots
7 years ago
Jack Mallers
ff4673c6ee
fix(snapshots): create new snapshots so tests pass
7 years ago
Jack Mallers
4b35c5f1aa
fix(channelform): remove old unused reducer
7 years ago
Jack Mallers
0e98753b1e
fix(tests): new snapshots to fix tests
7 years ago
Jack Mallers
b0d5ff90c0
fix(tests): update the tests
7 years ago
Jack Mallers
357cf4e0ef
fix(lint): fix all lint errors except a few (will fix the rest after i finish the rest of the modals)
7 years ago
Jack Mallers
f0484c815c
fix(tests): new snapshots and remove nav test
7 years ago
Jack Mallers
7fa9b42278
fix(tests): fix nav test
7 years ago
Ben Woosley
4278fbacda
enhance(eslint-jest): Use the recommended eslint-plugin-jest config
Adds a few handy practices that we are currently in line with.
https://www.npmjs.com/package/eslint-plugin-jest#rules
7 years ago
Ben Woosley
acbf786c0a
fix(lints): Manually fix some trivial lints
7 years ago
Ben Woosley
4125283587
enhance(lints): Enable currenly disabled lints
7 years ago
Ben Woosley
2e5ca3da68
fix(lints): Run eslint --fix over the currently disabled lints
7 years ago
Jack Mallers
e4f10a568c
fix(tests): fix nav tests as we have new nav links
7 years ago