Commit Graph

2208 Commits

Author SHA1 Message Date
Kukks
fcf1b679e6 Show Model errors on login/register
Invalid logins and registrations were not showing any messages
2019-06-04 14:37:13 +02:00
nicolas.dorier
bea08e5cfd
Refactor: Remove uneeded dependencies to PaymentMethodHandlerDictionary 2019-06-04 10:17:26 +09:00
nicolas.dorier
01787e2662
Refactor: Remove PrepareInvoiceDTO 2019-06-04 10:11:52 +09:00
nicolas.dorier
ac76220349
Move GetTransactionLink to PaymentType 2019-06-04 09:56:18 +09:00
nicolas.dorier
796954c6e3
Refactor: Remove BlockExplorerLink from the payment handler 2019-06-04 09:52:06 +09:00
nicolas.dorier
292c188182
Fix build errors 2019-06-04 09:40:36 +09:00
nicolas.dorier
1f7097ef89
Refactor: Move DeserializeSupportedPaymentMethod to PaymentType 2019-06-04 09:33:42 +09:00
nicolas.dorier
b97e083017
Refactor: Move DeserializePaymentMethodDetails to PaymentType 2019-06-04 09:22:46 +09:00
nicolas.dorier
8ffd182b98
Refactor: Add DeserializePaymentData at the PaymentType level 2019-06-04 09:16:18 +09:00
nicolas.dorier
1e77546251
Refactoring, make PaymentType a class instead of enum 2019-06-04 08:59:01 +09:00
nicolas.dorier
8711960e74
Removing DeserializePaymentMethodDetails from IPaymentMethodHandler 2019-06-04 01:55:07 +09:00
nicolas.dorier
8e2bcef824
The list of payment method should not depends on configuration of the users 2019-06-04 01:40:23 +09:00
nicolas.dorier
864bcbb675
Move back GetCryptoPaymentData logic inside PaymentEntity 2019-06-04 01:24:15 +09:00
nicolas.dorier
0b257b98f5
Move back ToPrettyString() in PaymentMethodId to fix crash if a payment method as been disabled 2019-06-04 01:06:03 +09:00
Nicolas Dorier
daab68d0b8
Merge pull request #877 from btcpayserver/feature/new-register
New register form
2019-06-03 21:02:25 +09:00
nicolas.dorier
ab0511aa1d
Make is admin checkbox inline 2019-06-03 21:01:48 +09:00
nicolas.dorier
621533e050
New register form 2019-06-03 20:47:18 +09:00
nicolas.dorier
dc334d230a
New login windows 2019-06-03 20:36:07 +09:00
nicolas.dorier
b848595378
Add missing command lines 2019-06-03 17:34:10 +09:00
nicolas.dorier
ae4b2ab1fd
Fix #875 2019-06-03 16:46:35 +09:00
nicolas.dorier
3b57e2684e
Add NotPaid_ExtraTransaction 2019-06-03 15:56:25 +09:00
nicolas.dorier
6782e82972
Update translations 2019-06-02 18:13:04 +09:00
nicolas.dorier
8f76bc0bcb
Extract version in separate csproj to have better dockerfile caching 2019-06-02 17:33:35 +09:00
nicolas.dorier
78ca26cf78
bump 2019-06-02 16:53:36 +09:00
nicolas.dorier
0c5c6233c7
Add bisq as supporting P2P service 2019-06-02 16:30:44 +09:00
Kukks
0f58f6da36 fix cryptoimage 2019-05-31 08:00:32 +02:00
rockstardev
dcaf0463a7 Displaying notification for extra transaction if paidPartial 2019-05-31 07:48:42 +02:00
rockstardev
5c6643270b Bugfixing path to crypto image
Will need to move all these paths to absolute, rather than relative
2019-05-31 07:48:42 +02:00
rockstardev
7b337bde49 Restoring table border styling done by KayBeSee 2019-05-31 07:48:42 +02:00
Andrew Camilleri
7056aae301 Do not show custom amount field in cart when not enabled (#873)
fixes #872
2019-05-31 14:29:16 +09:00
nicolas.dorier
80e23beda9
Update TwentyTwenty 2019-05-31 14:16:17 +09:00
nicolas.dorier
c877937fdf
Show the inputs of the PSBT in the review screen 2019-05-31 00:23:23 +09:00
nicolas.dorier
8379b07de0
Use a redirect for update 2019-05-31 00:00:20 +09:00
nicolas.dorier
c8c33245b8
Revert table changes from #821 2019-05-30 23:42:56 +09:00
nicolas.dorier
0faf2fe83e
Fix buttons in PSBT 2019-05-30 23:36:01 +09:00
nicolas.dorier
19bc511f39
Can update PSBT, fix the PSBT review page 2019-05-30 23:16:05 +09:00
Andrew Camilleri
916323bb3b [WIP] Further abstractions to Payment Handlers (#867)
* mark items to abstract


wip


wip


wip


wip


wip


wip


wip


cleanup


parse other types


compile and fix tests


fix bug 


fix warnings


fix rebase error


reduce payment method handler passings


more cleanup


switch tests to Fast mode 


fix obsolete warning


remove argument requirement 


rebase fixes


remove overcomplicated code


better parsing


remove dependency on environement


remove async

* fixes and simplification

* simplify

* clean up even more

* replace nuglify dependency

* remove extra space

* Fix tests

* fix booboo

* missing setter

* change url resolver

* reduce payment method handlers

* wrap payment method handlers in a custom type

* fix tests

* make invoice controller UI selectlist population cleaner

* make store controller use payment handler dictionary

* fix ln flag

* fix store controller test

* remove null checks on payment handlers

* remove unused imports

* BitcoinSpecificBtcPayNetwork - abstract BTCPayNetwork

* some type fixes

* fix tests

* simplify fetching handler in invoice controller

* rename network base and bitcoin classes

* abstract serializer to network level

* fix serializer when network not provided

* fix serializer when network not provided

* fix serializer when network not provided

* Abstract more payment type specific logic to handlers

* fix merge issue

* small fixes

* make use of repository instead of direct context usage

* reduce redundant code

* sanity check

* test fixes
2019-05-30 16:02:52 +09:00
nicolas.dorier
0e568e2af5
Make sure that only the log directory can be read on /server/logs 2019-05-30 11:46:09 +09:00
nicolas.dorier
dde841383a
Don't throw exception if derivation scheme is not found 2019-05-30 11:24:43 +09:00
Andrew Camilleri
81dae7d350 BTCPay Abstractions: Move PaymentMethod specific logic to their handlers (#850) 2019-05-29 23:33:31 +09:00
Andrew Camilleri
d3e3c31b0c Btcpay abstract BTCPayNetwork -- Alternative PR to #865 (#868)
* BitcoinSpecificBtcPayNetwork - abstract BTCPayNetwork

* some type fixes

* fix tests

* simplify fetching handler in invoice controller

* rename network base and bitcoin classes

* abstract serializer to network level

* fix serializer when network not provided

* fix serializer when network not provided

* fix serializer when network not provided

* try fixes for isolating pull request
2019-05-29 18:43:50 +09:00
Kevin Mulcrone
90852fe951 updated styles on user server page (#821)
* updated styles on user server page

* moved files out of bootstrap.css

* removed old css classes from initial commit

* move css changes to site.css

* add missing }
2019-05-28 21:40:10 +09:00
rockstardev
112f9c4241 Adding invoice back to pending to track confirmations if less than max 2019-05-25 17:30:27 -05:00
rockstardev
b300404bc7 Extending invoice monitoring if max confirmation count not reached 2019-05-25 17:20:17 -05:00
nicolas.dorier
19161b52f5
Fiat denomination box disappeared from the wallet (fix #860) 2019-05-25 22:23:32 +09:00
nicolas.dorier
429170520e
Make sure fingerprint/hdpath are passed down to AddDerivationScheme.
Close ledger popup on account selection.

Add additional info after pairing
2019-05-25 12:53:03 +09:00
Andrew Camilleri
5571413a78 Put Ledger Wallet pairing in a popup, prepare code for Trezor pairing (#836)
* Allowing for POS to be displayed at website root

* Switching to asp attributes for form post action

* Applying default formatting rules on HTML

* The destination pays mining fees => Subtract fees from amount

* small cleanup (#851)

* Part2: Openiddict: Init OpenIddict & Database Migration & Auth Policies (#567)

* Part 1: OpenIddict - Minor Changes & Config prep

* Part 1: OpenIddict - Minor Changes & Config prep

* Part2: Openiddict: Init OpenIddict & Database Migration & Auth Policies

* pr changes

* pr changes

* fix merge

* pr fixes

* remove config for openid -- no need for it for now

* fix compile

* fix compile #2

* remove extra ns using

* Update Startup.cs

* compile

* adjust settings a bit

* remove duplicate

* remove external login provider placeholder html

* remove unused directives

* regenerate db snapshot model

* Remove dynamic policy

* Provide Pretty descriptions for payment methods from their handlers (#852)

* small cleanup

* Provide Pretty descriptions for payment methods from their handlers

* remove PrettyMethod()

* integration with trezor

* rough load xpub from trezor

* update deriv scheme trezor

* move ledger import to dialog

* add import from hw wallet dropdown

* Support temporary links for local file system provider (#848)

* wip

* Support temporary links for local file system provider

* pass base url to file services

* fix test

* do not crash on errors with local filesystem

* remove console

* fix paranthesis

* work on trezor.net integration

* pushed non compiling sign wallet code

* comment out wallet code

* abstract ledger ws in add deriv

* Auto stash before merge of "trezor" and "btcpayserver/master"

* final add changes

* cleanup

* improve connectivity and fix e2e tests

* fix selenium

* add experimental warning for trezor

* move import button to right and convert to text link

* switch to defer and async scripts in add deriv scheme

* make defer not async

* more elaborate import trezor dialog

* Fix small issues

* hide trezor for now
2019-05-25 11:45:36 +09:00
Nicolas Dorier
512ee16620
Refactor invoice entity to not have to inject the NetworkProvider (#858) 2019-05-24 22:22:38 +09:00
Nicolas Dorier
15dc0d60db
Split projects (#857) 2019-05-24 18:42:22 +09:00
Andrew Camilleri
d86cc9192e Support temporary links for local file system provider (#848)
* wip

* Support temporary links for local file system provider

* pass base url to file services

* fix test

* do not crash on errors with local filesystem

* remove console

* fix paranthesis
2019-05-24 15:44:23 +09:00
Andrew Camilleri
25b08b21fa Provide Pretty descriptions for payment methods from their handlers (#852)
* small cleanup

* Provide Pretty descriptions for payment methods from their handlers

* remove PrettyMethod()
2019-05-24 15:38:47 +09:00
Andrew Camilleri
ef9c2e8af1 Part2: Openiddict: Init OpenIddict & Database Migration & Auth Policies (#567)
* Part 1: OpenIddict - Minor Changes & Config prep

* Part 1: OpenIddict - Minor Changes & Config prep

* Part2: Openiddict: Init OpenIddict & Database Migration & Auth Policies

* pr changes

* pr changes

* fix merge

* pr fixes

* remove config for openid -- no need for it for now

* fix compile

* fix compile #2

* remove extra ns using

* Update Startup.cs

* compile

* adjust settings a bit

* remove duplicate

* remove external login provider placeholder html

* remove unused directives

* regenerate db snapshot model

* Remove dynamic policy
2019-05-24 15:17:02 +09:00
Andrew Camilleri
9bee48c601 small cleanup (#851) 2019-05-24 15:11:38 +09:00
Rockstar Developer
de1c2b0150 Allowing for POS to be displayed at website root (#853)
* Allowing for POS to be displayed at website root

* Switching to asp attributes for form post action

* Applying default formatting rules on HTML
2019-05-24 15:07:09 +09:00
nicolas.dorier
5a73358bca
The destination pays mining fees => Subtract fees from amount 2019-05-24 14:28:09 +09:00
nicolas.dorier
c4d0b061c9
bump 2019-05-21 19:06:27 +09:00
nicolas.dorier
3bada5d443
Fix multi send substract fees 2019-05-21 19:04:39 +09:00
nicolas.dorier
06a35787aa
Make WalletSend match exactly the design of before without additional destination 2019-05-21 18:44:49 +09:00
Andrew Camilleri
88c931ec13 Make wallet able to send to multiple destinations (#847)
* Make wallet able to send to multiple destinations

* fix tests

* update e2e tests

* fix e2e part 2

* make headless again

* pr changes

* make wallet look exactly as old one when only 1 dest
2019-05-21 17:10:07 +09:00
Andrew Camilleri
3d436c3b0e Add Eclair to connection string examples (#846)
* Add Eclair to connection string examples

* bump LN nuget
2019-05-20 10:13:11 +09:00
Rockstar Developer
b4bb44d3e6 Adding Paid filter, invoice confirmed/paid/complete (#849) 2019-05-20 10:02:57 +09:00
nicolas.dorier
39157e6883
Fix tests 2019-05-20 00:06:03 +09:00
nicolas.dorier
87df34e064
Can actually upload PSBT file in PSBT Combine and PSBT view.
Validate transaction before allowing any broadcast and show errors nicely.
2019-05-19 23:27:18 +09:00
nicolas.dorier
55a48ff84a
Add some notice in sign with seed 2019-05-17 14:42:28 +09:00
nicolas.dorier
aed98f16bb
Show fee rate in transaction detail review 2019-05-16 12:56:06 +09:00
nicolas.dorier
2926865c1b
bump 2019-05-15 22:57:14 +09:00
Rockstar Developer
20fb7fc188 Fixing bug induced with server converting UTC times to server local (#835) 2019-05-15 22:02:39 +09:00
Andrew Camilleri
461462eafc fix file timezone and isDownload for local files temp urls (#837)
closes #834
2019-05-15 22:02:03 +09:00
nicolas.dorier
d914fe2f48
Make sure that the accountkey can sign a transaction 2019-05-15 19:00:26 +09:00
nicolas.dorier
e100edce24
Add selenium test for the manual seed signing 2019-05-15 16:00:03 +09:00
nicolas.dorier
a68915d6cf
WalletPSBTReady show the summary of the transaction, signing with the seed respect the keypath of the wallet settings 2019-05-15 15:00:09 +09:00
nicolas.dorier
210d680b21
nameofify 2019-05-15 01:07:46 +09:00
nicolas.dorier
8dc4acdc34
Make sure people does not use launchsettings by mistake 2019-05-15 01:06:26 +09:00
Andrew Camilleri
eb54a18fcd Wallet & PSBT: Sign with seed or key (#840)
* Allow signing a PSBT with an extkey/wif or mnemonic seed

* reword things

* small text
2019-05-15 01:03:48 +09:00
Andrew Camilleri
cf436e11ae Part 1: OpenIddict - Minor Changes & Config prep (#566)
* Part 1: OpenIddict - Minor Changes & Config prep

* add missing nuget

* pr changes

* pr fixes

* remove config for openid -- no need for it for now

* remove unused extension

* Add tests

* use pay tester http client

* check redirecturl in tests
2019-05-15 00:46:43 +09:00
nicolas.dorier
e22b7f74c7
Increase test coverage of selenium 2019-05-14 23:33:46 +09:00
nicolas.dorier
522d745883
Update NBXplorer and NBitcoin 2019-05-14 16:06:43 +09:00
nicolas.dorier
cd6dd78759
Click around in selenium, and do not forget to run the selenium tests on circleCI 2019-05-13 17:59:15 +09:00
nicolas.dorier
27fd49e61c
Add --allow-admin-registration, useful for tests 2019-05-13 17:00:58 +09:00
nicolas.dorier
d1556eb6cd
bump 2019-05-13 08:55:26 +09:00
nicolas.dorier
a7edbfe5e9
Remove useless code 2019-05-13 08:23:24 +09:00
nicolas.dorier
663b5beac1
remove useless code 2019-05-13 08:22:29 +09:00
nicolas.dorier
7e164d2ec3
make sure we don't sign same input twice 2019-05-13 08:21:54 +09:00
nicolas.dorier
f9fb0bb477
Simplify logic in LedgerHardwareWalletSerivce by using NBitcoin helper methods. 2019-05-13 08:18:12 +09:00
nicolas.dorier
8b348ade75
Can select the signing key in WalletSettings 2019-05-13 00:30:28 +09:00
nicolas.dorier
bf37f44795
Add Wallet settings menu, do not rebase keypaths when create the PSBT 2019-05-13 00:13:55 +09:00
britttttk
698033b0cf Selenium Chrome Tests 2019-05-12 18:49:28 +09:00
nicolas.dorier
10496363f5
Change button style on WalletPSBTReadyView 2019-05-12 16:19:27 +09:00
nicolas.dorier
14647d5778
minor improvement to UI of PSBT 2019-05-12 15:16:40 +09:00
nicolas.dorier
560dde3396
bump 2019-05-12 14:58:43 +09:00
rockstardev
7f9c2439c4 Custom date range filtering modal 2019-05-12 14:56:13 +09:00
rockstardev
6de5d0bce8 Unifying datetime styles across admin 2019-05-12 14:56:13 +09:00
rockstardev
c705a11aa7 Fixing merge bug with css file 2019-05-12 14:56:13 +09:00
rockstardev
45a196b407 Non-minified version of moment, adding required ref, fixing old ones 2019-05-12 14:56:13 +09:00
rockstardev
07cb6adb69 Extracting datetime flatpickr for use throught website 2019-05-12 14:56:13 +09:00
rockstardev
5358f81ce0 Dropdown for often used filterings 2019-05-12 14:56:13 +09:00
rockstardev
5b7988be79 Fixing display of long BOLT11 strings 2019-05-12 14:56:13 +09:00
rockstardev
e6c794d68f Moving update of confirmation count to InvoiceWatcher 2019-05-12 14:56:13 +09:00
rockstardev
de73fedd1b Check indicator after status change 2019-05-12 14:56:13 +09:00
nicolas.dorier
2719849a54
bump 2019-05-12 14:51:57 +09:00
nicolas.dorier
3011fecf0f
Add tests for PSBT 2019-05-12 14:51:24 +09:00
nicolas.dorier
6da0a9a201
Can combine PSBT 2019-05-12 13:13:52 +09:00
nicolas.dorier
572fe3eacb
Moveonly: Move all PSBT stuff in separate file 2019-05-12 11:13:04 +09:00
nicolas.dorier
ff82f15246
Always rebase keys before signing, refacotring some code 2019-05-12 11:07:41 +09:00
nicolas.dorier
b214e3f6df
bump minimum version of ledger wallet 2019-05-12 01:35:13 +09:00
nicolas.dorier
cb9130fdf9
Can broadcast PSBT, can decide to export something signed by the ledger via PSBT 2019-05-12 00:05:30 +09:00
nicolas.dorier
925dc869a2
Add wasabi wallet to the wallet list supporting P2P connections 2019-05-11 22:25:10 +09:00
nicolas.dorier
5f1aa619cd
Can sign and export arbitrary PSBT 2019-05-11 20:26:31 +09:00
nicolas.dorier
541c748ecb
WalletSendLedger and LedgerConnection only depends on PSBT 2019-05-11 20:02:32 +09:00
nicolas.dorier
e853bddbc8
Add utility tool to decode PSBT 2019-05-11 00:29:29 +09:00
nicolas.dorier
79d26b5d95
Push rebase keypath and min fee logic down nbxplorer 2019-05-10 19:30:10 +09:00
nicolas.dorier
840f52a75b
Fix build 2019-05-10 14:36:57 +09:00
britttttk
f955302c74 remove CF modal text 2019-05-10 11:35:51 +09:00
nicolas.dorier
95e7d3dfc4
Don't scan 49' or 84' if not segwit 2019-05-10 10:55:10 +09:00
nicolas.dorier
75f2749b19
Decouple HardwareWalletService into two classes: LedgerHardwareWalletService and HardwareWalletService 2019-05-10 10:48:30 +09:00
nicolas.dorier
01e5b319d1
Save the fingerprint of the root of LedgerWallet, and use it. Simplify HardwareWallet 2019-05-10 01:05:37 +09:00
nicolas.dorier
e504163bc7
Add NonAction to CreatePSBT 2019-05-09 19:34:45 +09:00
nicolas.dorier
aba3f7d6bd
bump 2019-05-09 19:21:03 +09:00
nicolas.dorier
8d74023d30
update translation 2019-05-09 19:20:36 +09:00
nicolas.dorier
602625fc17
Fix tests 2019-05-09 19:14:01 +09:00
nicolas.dorier
bbeb2d5009
Refactor ElectrumMapping with proper enum 2019-05-09 19:05:08 +09:00
nicolas.dorier
51faa39636
Add some tests to check that AccountKeyPath and RootFingerprint are taken into account during PSBT creation 2019-05-09 18:58:14 +09:00
nicolas.dorier
ba9928831e
Fix tests 2019-05-09 18:11:39 +09:00
nicolas.dorier
2b6bd3d751
Assume ElectrumMapping of BTC if not specified 2019-05-09 17:51:46 +09:00
Kukks
6ee10fe98b add grs 2019-05-09 17:16:17 +09:00
Kukks
a567c19759 conditionally select electrum mapping based on network 2019-05-09 17:16:17 +09:00
Kukks
bb3a087d39 Move ElectrumMapping to BtcPayNetwork 2019-05-09 17:16:17 +09:00
nicolas.dorier
5a92fe736f
Fix: Uploading coldcard in derivation scheme would forget to remember some data 2019-05-09 16:11:09 +09:00
Kukks
88390402a4 reorder buttons 2019-05-09 12:48:11 +09:00
Kukks
538eb66672 Allow import of coldcard wallet 2019-05-09 12:48:11 +09:00
nicolas.dorier
0b6dfe0fd3
Fix DerivationSchemeSettings.ToPrettyString() 2019-05-09 01:07:05 +09:00
nicolas.dorier
d5579ef2b5
Do not serialize PaymentId for DerivationSchemeSettings 2019-05-09 01:06:03 +09:00
nicolas.dorier
836c3a5b3a
Make sure we don't confuse user between derivation scheme of coldcard or btcpay 2019-05-09 00:55:49 +09:00
nicolas.dorier
f2da64adad
Add parsing of cold card wallet 2019-05-09 00:55:48 +09:00
nicolas.dorier
e5704abfb3
Fix migration from old version to new version of WalletKeyPathRoots 2019-05-09 00:55:48 +09:00
nicolas.dorier
3bf4eea1fe
Improve error handling for export psbt 2019-05-09 00:55:47 +09:00
nicolas.dorier
aa23222339
CreatePSBT should always rebase the PSBT 2019-05-09 00:55:46 +09:00
nicolas.dorier
68c1670c70
Show pretty wallet string in Update Store 2019-05-09 00:55:45 +09:00
nicolas.dorier
914eaaaa51
Refactor DerivationStrategy to DerivationSchemeSettings 2019-05-09 00:55:44 +09:00
nicolas.dorier
5831ba2143
bump 2019-05-09 00:23:52 +09:00
Kukks
c167a24f09 use older version of lib until it supports linux better 2019-05-08 20:17:17 +09:00
Kukks
a539d27c62 fix exception handling 2019-05-08 20:17:17 +09:00
nicolas.dorier
d7fc079376
RBF on by default, can disable it in Wallet Send /advanced settings. 2019-05-08 15:24:20 +09:00
nicolas.dorier
3a05f7e294
PSBT export support in send from wallet screen 2019-05-08 14:40:16 +09:00
nicolas.dorier
03713f9bd8
Add PSBT support in the send screen 2019-05-08 14:39:37 +09:00
nicolas.dorier
2a145f4350
Replace noob button in wallet send by an advanced settings accordion 2019-05-08 12:34:33 +09:00
nicolas.dorier
d049da696c
Fix exception thrown if user does not exist on login 2019-05-08 12:34:13 +09:00
nicolas.dorier
926250a967
Remove warnings 2019-05-07 23:34:31 +09:00
Kukks
139b588795 fix coinswitch...yet again 2019-05-07 23:23:29 +09:00
nicolas.dorier
909f18f9c7
Update language 2019-05-07 18:02:14 +09:00