Commit Graph

528 Commits

Author SHA1 Message Date
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
898c672193
decrease number conf funding channel required for lightningd 2019-06-03 15:53:26 +09:00
nicolas.dorier
18a7bc9278
Decrease number of confirmations requires for channels of lnd in tests 2019-06-03 15:51:13 +09:00
nicolas.dorier
5441ae537a
Fix docker-entrypoint for tests 2019-06-03 15:36:50 +09:00
nicolas.dorier
a3b914d8b4
Remove code 2019-06-03 15:32:46 +09:00
nicolas.dorier
39f75d3742
Refactor test run by circleci 2019-06-03 15:32:20 +09:00
nicolas.dorier
120fce0288
fix test container 2019-06-02 17:41:34 +09:00
nicolas.dorier
aa57531ed7
fix test container 2019-06-02 17:37:44 +09:00
nicolas.dorier
4fe480ee55
Fix selenium test 2019-05-31 15:40:59 +09:00
nicolas.dorier
d70e120acc
Fix test 2019-05-31 12:17:47 +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
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
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
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
nicolas.dorier
c4d0b061c9
bump 2019-05-21 19:06:27 +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
nicolas.dorier
39157e6883
Fix tests 2019-05-20 00:06:03 +09:00
nicolas.dorier
9b6b9e6113
Fix build 2019-05-19 23:33:32 +09:00
nicolas.dorier
7aa6d1a8d7
fix test on Circle CI for selenium 2019-05-15 19:27:30 +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
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
f8fca7434c
Hack selenium again 2019-05-14 22:29:05 +09:00
nicolas.dorier
66d303c4ba
Install chrome driver on alpine 2019-05-14 19:58:28 +09:00
nicolas.dorier
186ed8beb2
Hack selenium 2019-05-14 19:27:26 +09:00
nicolas.dorier
fac546cc0b
Print sources if Selenium test fail 2019-05-14 19:19:23 +09:00
nicolas.dorier
9d2d2d0d64
Catch errors in AssertNoErrors 2019-05-14 19:13:55 +09:00
nicolas.dorier
f58043b07f
dump logs of selenium before failiing test 2019-05-14 19:09:26 +09:00
nicolas.dorier
00e24ab249
Make sure BTCPay is operational before starting tests 2019-05-14 18:35:22 +09:00
nicolas.dorier
12507b6743
Add some logs related to selenium 2019-05-14 17:34:19 +09:00
nicolas.dorier
3750842833
Show in logs where the btcpay tester is binding 2019-05-14 16:56:03 +09:00
nicolas.dorier
1dcec3e1fb
bind to all interface if inside the test container 2019-05-14 16:13:55 +09:00
nicolas.dorier
d8e1edd6d3
bump nbx in tests 2019-05-14 16:07:46 +09:00
nicolas.dorier
a1f1e90626
Make selenium work on CI 2019-05-14 16:06:51 +09:00
nicolas.dorier
522d745883
Update NBXplorer and NBitcoin 2019-05-14 16:06:43 +09:00
nicolas.dorier
8ffb81cdf3
Refactor Selenium tests to properly cleanup resources 2019-05-13 18:42:20 +09:00
nicolas.dorier
ae5254c65e
disable selenium test for a while 2019-05-13 18:14:31 +09:00
nicolas.dorier
9d53888524
fix typo 2019-05-13 18:03:41 +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
702c7f2c30
Fix tests 2019-05-13 00:35:06 +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