Commit Graph

152 Commits

Author SHA1 Message Date
Nicolas Dorier
6ea96efe68
Update NBitcoin, fix warnings on nullable (#2718) 2021-07-29 20:29:34 +09:00
Kukks
d5019f61ce Expose ExplorerClientProvider to plugins via interface 2021-07-12 14:17:25 +02:00
Dali
84ec33afb3
Update BitCore branding (#2501)
Co-authored-by: dalijolijo <dalijolijo@v220200132547106119.bestsrv.de>
2021-05-08 00:34:38 +09:00
Jaron Rosenau
e0ff03068a
add altcoin support for althash / htmlcoin (#2485)
* Switch Althash, keypath, hitbtc ticker

* add Althash

* add Althash

* switch to coingecko provider

* add Althash logo

* Fix stacking issue with rate call

* bump NBitcoin to 5.0.77

* bump NBXplorer.Client to 3.0.21
2021-04-26 11:31:00 +09:00
Jonathan Underwood
ee0fa71605
Refactor TorService (#2388)
* TorServices Refactor to make value passing easier

* Allow specifying Tor services through config

Format:

BTCPAY_TORSERVICES: "BTCPAYSERVER:URL.ONION:VIRTUALPORT;BTC-P2P:URL.ONION:VIRTUALPORT;BTC-RPC:URL.ONION:VIRTUALPORT;SOMEOTHERONIONSERVICE:URL.ONION:VIRTUALPORT"

* add tests

* Optimize Tor Services loader and ensure it is loaded as a hosted service

* Remove Task from Tor service loader

* Use options to parse Tor services

* Fix booboo

* Fix test after fixing booboo

* Adding timeout on long running CanEnumeratetorServices test

(cherry picked from commit 274b77e3175960158b803410037e2c7ff31984be)

* Renaming timeout variable to better name

* Only allow one of torrcfile or torservices

Co-authored-by: Kukks <evilkukka@gmail.com>
Co-authored-by: rockstardev <rockstardev@users.noreply.github.com>
2021-04-18 11:26:06 +09:00
Andrew Camilleri
8fd4a816a6
Allow Payjoin for wallet receive addresses (#2425)
* Allow Payjoin for wallet receive addresses

* wip

* show bip21 and additional work

* style better

* add to docs

* pr changes

* remove from state when unreserved
2021-04-13 12:26:36 +09:00
Kristaps Kaupe
3a248d7707
Fix block explorer links for signet 2021-04-03 09:19:36 +03:00
Andrew Camilleri
23236c96cb
Remove internal setters in BTCPayNetwork 2021-04-01 08:56:22 +02:00
Andrew Camilleri
cdfdad3e3d
GreenField API: Wallet API (#2246)
* GreenField: Wallet API

* more work

* wip

* rough fiunish of transaction sending api

* Allow to create tx without broadcasting and small fixes

* Refactor Wallet Receive feature ad add greenfield api for address reserve for wallet

* add wallet api client

* add docs

* fix json converter tags

* fixes and add wallet tests

* fix tests

* fix rebase

* fixes

* just pass the tests already

* ugggh

* small cleanup

* revert int support in numeric string converter and make block id as native number in json

* fix LN endpoint

* try fix flaky test

* Revert "try fix flaky test"

This reverts commit 2e0d256325.

* try fix other flaky test

* return proepr error if fee rate could not be fetched

* try fix test again

* reduce fee related logic for wallet api

* try reduce code changes for pr scope

* change auth logic for initial release of wallet api
2021-03-11 21:34:52 +09:00
Andrew Camilleri
30c7cbba96
Fix issue around new bech uppercase + vault supported flag (#2337) 2021-03-09 12:45:56 +09:00
Andrew Camilleri
808214f973
Fix Rates Test (Dash rate source switched to bitfinex) (#2324)
fixes #2323
2021-03-02 11:13:05 +09:00
Nicolas Dorier
db0854f203
Update NBitcoin, NetworkType => ChainName, signet support (#2224) 2021-01-27 14:39:38 +09:00
Andrew Camilleri
b8da6847b9
Plugins flexibility PR (#2129)
* Plugins flexibility PR

* Makes the BTCPayServerOptions.LoadArgs async to support Plugin hooks and actions
* relax the private set modifiers in the BTCPayNetwork
* Separate IPluginHookService from PluginService to reduce dependencies on DI
* fix some small bugs around image path
* Fix bug with new dbreeze migration where data dir was incorrect

* Update BTCPayServer/Plugins/PluginHookService.cs

Co-authored-by: rockstardev <5191402+rockstardev@users.noreply.github.com>

* Update BTCPayServer/Plugins/PluginHookService.cs

Co-authored-by: rockstardev <5191402+rockstardev@users.noreply.github.com>

Co-authored-by: rockstardev <5191402+rockstardev@users.noreply.github.com>
2021-01-07 14:49:53 +01:00
rockstardev
89dc379761
Removing word Bitcoin from forks to satisfy Roger (#2091)
Co-authored-by: rockstardev <rockstardev@users.noreply.github.com>
2020-12-03 06:34:38 +01:00
Andrew Camilleri
38fb64130d
Plugins: Recommended plugins and github Remote config options (#2045)
This allows external integrations ( btcpay docker fragments) to highlight specific plugins as recommended to be installed. Also moved the remote option to  a config option instead of a url query param to avoid messy situations where users could get deceived with a generated url. The dockerfiles also have an additional csproj to build and the plugin dir was renamed correctly from extensions to plugins
2020-11-05 10:21:09 +01:00
nicolas.dorier
da864f4c6c
bump nbx and nbitcoin 2020-10-24 15:27:48 +09:00
Andrew Camilleri
5979fe5eef
BTCPay Extensions Part 2 (#2001)
* BTCPay Extensions Part 2

This PR cleans up the extension system a bit in that:
 * It renames the test extension to a more uniform name
 * Allows yo uto have system extensions, which are extensions but bundled by default with the release (and cannot be removed)
 * Adds a tool to help you generate an extension package from a csproj
 * Refactors the UI extension points to a view component
 * Moves some more interfaces to the Abstractions csproj

* Rename to plugins
2020-10-21 14:02:20 +02:00
Andrew Camilleri
71894ba245
Override Block Explorer Links (#2000)
* Override Block Explorer Links

closes #1953

* load overrides after save as well

* fix js
2020-10-21 09:53:05 +02:00
Andrew Camilleri
1440e8c55d
BTCPay Server Extensions (#1925)
* BTCPay Server Extensions

![demo](https://i.imgur.com/2S00aL2.gif)

* cleanup

* fix

* Polish UI a bit,detect when docker deployment
2020-10-15 21:28:09 +09:00
Andrew Camilleri
f14ad8be58
Merge branch 'master' into MonetaryUnit 2020-09-17 11:43:31 +02:00
Kukks
2711f2cb2f Fix CI 2020-09-15 16:26:10 +02:00
XPayServer
de755ac0bb Add Ethereum & ERC20 Support
Add Tests
Add Index, XPub to payment data
Add Note on local ETH node
Fix Sync Summary and Race Condition
2020-09-09 08:19:10 +02:00
Sotiris Blad
b5b32cacfc
Merge branch 'master' into MonetaryUnit 2020-08-19 15:33:02 +03:00
Sotiris Blad
98a74a15f7
Update BTCPayServer.Common.csproj 2020-08-19 15:31:49 +03:00
nicolas.dorier
90ccf88d4b
Bump libraries and version and changelog 2020-08-16 21:47:03 +09:00
Kukks
4ace7e07c9 fix chain loader after unfiltered removed 2020-08-04 07:25:15 +02:00
Sotiris Blad
a0d70ea8a4
Merge branch 'master' into MonetaryUnit 2020-08-03 19:18:08 +03:00
Sotiris Blad
db29a31de6
rename to fix conflict 2020-08-03 19:17:15 +03:00
nicolas.dorier
2c26d55813
Missing files 2020-07-30 22:04:38 +09:00
nicolas.dorier
87f411e5f1
Exclude altcoins files from bitcoin only build 2020-07-30 22:04:13 +09:00
nicolas.dorier
4af3fa4eb2
Fix build 2020-07-30 22:00:25 +09:00
nicolas.dorier
1fb75c908b
Remove the concept of unfiltered networks 2020-07-30 11:36:02 +09:00
Nicolas Dorier
3ce16dc9a3
Merge pull request #1782 from xpayserver/btc-only
Add Bitcoin Only Build
2020-07-29 21:58:28 +09:00
nicolas.dorier
02998fff49
Add Altcoins-Release and Altcoins-Debug configurations 2020-07-29 18:55:28 +09:00
Kukks
e33200058d Generate Payment link from PaymentType 2020-07-29 09:31:47 +02:00
XPayServer
92ae1109d0 Add Bitcoin Only Build 2020-07-28 22:48:51 +02:00
Sotiris Blad
e67d2ee498
Add MonetaryUnit (MUE) support 2020-07-24 18:32:40 +03:00
Oleg Semyonov
3051724ad8 Add Argoneum 2020-07-07 07:44:45 +03:00
rockstardev
f88c02cccd Removing unused usings, readonly fields where possible 2020-06-28 22:07:48 -05:00
rockstardev
b6c7af32de Cleaning up bom from cs files 2020-06-28 21:44:35 -05:00
nicolas.dorier
51514252b6
Run dotnet format 2020-06-28 17:55:27 +09:00
gruve-p
7805e5cea4
Fix version byte for zpub (#1686) 2020-06-24 10:19:50 +09:00
Peter Williams
e751be21ea
Altcoin - Add Chaincoin (#1636)
* Altcoin - Add Chaincoin

* Image

* Altcoin - Rating CHC

* Altcoin - Chaincoin insertion

* Revert

* Fix large diff

* Unit Test revert
2020-06-22 14:41:20 +09:00
Kukks
b7c65b2ba6 Add AlwaysIncludeNonWitnessUTXO to Wallet Send 2020-06-12 13:58:55 +02:00
Kukks
587f244f1d Remove dependency on Common from Rating
replaces #1591 and #1592 , closes #1571 Replaces the Currencies.txt to a json format which includes the networks too ( there is also a test to check now) Also makes CurrencyPair not depend on network and instead use CurrencyNameTable
2020-05-31 20:54:50 +02:00
nicolas.dorier
25e6f82aa3
Refactor parameter passing in wallet functions 2020-05-25 04:55:28 +09:00
nicolas.dorier
87352f0b62
Make sure wallet support decimal fee, and allow user to select different fee rate based on expected confirmation time 2020-05-05 19:10:53 +09:00
nicolas.dorier
96c04481da
bump NBXplorer 2020-05-05 06:55:19 +09:00
Andrew Camilleri
67da6ee379
Decimal precision and filter valid transaction (#1538)
The liquid transactions list was showing all transactions to the wallet, even when it had nothing to do with the specific crypto code (e.g sending LBTC txs in USDT, LCAD in USDT, etc). This PR fixes that.

It also uses the previously introduced checkout decimal precision fix to the Wallets screen, specifically the balance amount on wallet llist and balance change on transaction list.
2020-05-04 01:04:34 +09:00
Andrew Camilleri
f410f7d4d1
Hide LN option for liquid Assets (#1512)
Was getting a bit crowded for stuff that isn't supported yet.
2020-04-27 18:15:38 +09:00
Francis Pouliot
841cf61c92
Add L-CAD support (new Liquid Asset) (#1448)
* Add Liquid CAD support

Adds the Liquid CAD asset ID from Bull Bitcoin

* Add the Liquid CAD logo

* Fix image asset

Co-authored-by: Andrew Camilleri <evilkukka@gmail.com>
2020-04-10 15:59:02 +09:00
gruve-p
2d2c5b46af
Support RBF and PayJoin for GRS (#1455) 2020-04-10 15:38:00 +09:00
Nicolas Dorier
9a54445785
Merge pull request #1439 from Kukks/monero-fix
monero fixes
2020-04-08 21:11:27 +09:00
nicolas.dorier
24691e5290
Bump NBitcoin and NBX 2020-04-08 19:34:12 +09:00
Kukks
452568e740 monero fixes 2020-04-06 16:12:48 +02:00
nicolas.dorier
fd026a9733
Refactor server-side 2020-04-05 12:02:36 +09:00
Kukks
b54a7b80e3 add tests and fix 2020-03-20 09:31:22 +01:00
Kukks
d72139c2c1 Fix liquid asset BIP21 decimal precision
The way liquid assets decimal precision works is just an ui layer. Each unit of an asset is actually 1sat.
Fixes https://github.com/Blockstream/green_android/issues/86
2020-03-19 16:00:33 +01:00
nicolas.dorier
a9bf843be0
Bump various libraries 2020-03-10 21:24:22 +09:00
Hans Looman
1a409a441d
Update POLIS related entries (#1313)
* Update Polis related info and services

* Fix Polis Rate Fetcher

* Fix Polis ratefetcher - Cryptopia is obsolete

* POLIS rate provider changes to comply with internal testing

* URL / pair alignment

* Add small doc to re-trigger testing
2020-02-13 14:44:31 +09:00
Andrew Camilleri
e058903450 Do not show assets in sync modal (#1309) 2020-01-26 19:45:52 +09:00
Andrew Camilleri
dcb3601791
Fix ETB asset id 2020-01-21 18:22:42 +01:00
Andrew Camilleri
54c7c0d696 Add currency precision based on network (#1294) 2020-01-21 22:28:13 +09:00
Andrew Camilleri
61b99f6630 Add support for ETB liquid asset (#1295) 2020-01-21 13:19:55 +09:00
Andrew Camilleri
c269dee980 Liquid changes (#1281)
Add assetid to bip21 for liquid
change liquid icons
change liquid asset name
change currency code displayed in checkout to one set in network
2020-01-16 15:01:01 +09:00
Andrew Camilleri
05223c1a5f Bump NBX (#1277) 2020-01-14 23:10:58 +09:00
nicolas.dorier
5dbdb4b399
Keep coinaverage compatibility, improve UX, hardcode feed provider supported exchanges 2020-01-13 23:37:01 +09:00
nicolas.dorier
629dfcf152
Cleanup netcore21 specific code 2020-01-12 13:30:54 +09:00
Kukks
fa916d4862 Liquid: Show limited wallet pages 2019-12-29 17:08:30 +01:00
Andrew Camilleri
4d7480db15 Liquid & Liquid Assets Support (#1118) 2019-12-24 16:20:44 +09:00
nicolas.dorier
2d932ebb21
Update to runtime .NET 2.1.14 2019-12-07 16:35:13 +09:00
Kukks
bc2a039ea2 bump nbx and make balance return decimal 2019-12-02 09:57:38 +01:00
Kukks
e31e600144 update nbx + prep bitcoin payment data ctor change 2019-12-01 15:30:56 +01:00
nicolas.dorier
27af96662f
Fix bug for Network not having a NBitcoin Network 2019-11-17 13:04:42 +09:00
nicolas.dorier
fe1df743ce
bump nbx 2019-11-16 17:22:51 +09:00
nicolas.dorier
2bfea50014
Update NBXplorer 2019-11-15 18:53:20 +09:00
nicolas.dorier
eb87d7cadc
Bump NBXplorer.Client 2019-11-13 13:51:06 +09:00
Kukks
7ce2ddb400 fix moneromoney util 2019-11-07 18:41:10 +01:00
nicolas.dorier
565cac34b0
Update NBXplorer 2019-10-23 14:56:59 +09:00
Umar Bolatov
c908301b84 Add option to show recommeded fee on checkout invoice
Address #1036
2019-10-14 10:09:26 -07:00
nicolas.dorier
8d0d80e086
Fix build 2019-10-03 17:14:07 +09:00
nicolas.dorier
d23adfbd78
Prepare BTCPayServer.Common and BTCPayServer.Rating for .netcore 3.0 2019-10-03 16:13:12 +09:00
rockstardev
56e85b68d9 Csproj cleanup, reorganizing namespaces, fixing tests 2019-10-02 22:41:53 -05:00
nicolas.dorier
8c8ef9d3ca
Rename shitcoins to altcoins 2019-09-30 20:43:15 +09:00
nicolas.dorier
fd78d02576
Moving Monero classes into BTCPayServer.Common 2019-09-30 17:58:41 +09:00
nicolas.dorier
3a0328d0be
Moving shitcoin code in shitcoin folder 2019-09-30 17:51:47 +09:00
Andrew Camilleri
d66b111121 xmr (#1044) 2019-09-30 17:32:43 +09:00
Kukks
59839a3332 make sure networks are abstracted properly 2019-09-21 16:39:44 +02:00
Andrew Camilleri
7208e63155 Excerpts from #971 (manual PR) (part1 ) (#1006)
* Excerpts from #971

Relating to selenium tests + small renamings

* fix build
2019-09-03 20:11:36 +09:00
nicolas.dorier
6ea15411b6
Update c-ligthning and some packages 2019-08-17 15:14:31 +09:00
nicolas.dorier
e3283fb29b
Bump NBitcoin and NBXplorer 2019-07-15 19:40:06 +09:00
nicolas.dorier
d14eef979c
Bump versions of package and software 2019-07-04 20:50:40 +09:00
nicolas.dorier
d1f1bc93b3
Fix version detection 2019-06-18 14:00:42 +09:00
nicolas.dorier
307c8980e0
Move Common and Version.csproj in Build folder 2019-06-17 21:42:48 +09:00
nicolas.dorier
796954c6e3
Refactor: Remove BlockExplorerLink from the payment handler 2019-06-04 09:52:06 +09:00
nicolas.dorier
8ffd182b98
Refactor: Add DeserializePaymentData at the PaymentType level 2019-06-04 09:16:18 +09:00
nicolas.dorier
8f76bc0bcb
Extract version in separate csproj to have better dockerfile caching 2019-06-02 17:33:35 +09:00
grubles
1b6eb9cab0 Update explorer to blockstream.info (#869) 2019-05-31 14:26:41 +09:00
nicolas.dorier
19bc511f39
Can update PSBT, fix the PSBT review page 2019-05-30 23:16:05 +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