diff --git a/BTCPayServer/BTCPayNetworkProvider.Bitcoinplus.cs b/BTCPayServer/BTCPayNetworkProvider.Bitcoinplus.cs new file mode 100644 index 000000000..d7b472993 --- /dev/null +++ b/BTCPayServer/BTCPayNetworkProvider.Bitcoinplus.cs @@ -0,0 +1,35 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using BTCPayServer.Services.Rates; +using NBitcoin; +using NBXplorer; + +namespace BTCPayServer +{ + public partial class BTCPayNetworkProvider + { + public void InitBitcoinplus() + { + var nbxplorerNetwork = NBXplorerNetworkProvider.GetFromCryptoCode("XBC"); + Add(new BTCPayNetwork() + { + CryptoCode = nbxplorerNetwork.CryptoCode, + DisplayName = "Bitcoinplus", + BlockExplorerLink = NetworkType == NetworkType.Mainnet ? "https://chainz.cryptoid.info/xbc/tx.dws?{0}" : "https://chainz.cryptoid.info/xbc/tx.dws?{0}", + NBitcoinNetwork = nbxplorerNetwork.NBitcoinNetwork, + NBXplorerNetwork = nbxplorerNetwork, + UriScheme = "bitcoinplus", + DefaultRateRules = new[] + { + "XBC_X = XBC_BTC * BTC_X", + "XBC_BTC = cryptopia(XBC_BTC)" + }, + CryptoImagePath = "imlegacy/bitcoinplus.png", + DefaultSettings = BTCPayDefaultSettings.GetDefaultSettings(NetworkType), + CoinType = NetworkType == NetworkType.Mainnet ? new KeyPath("65'") : new KeyPath("1'") + }); + } + } +} diff --git a/BTCPayServer/BTCPayNetworkProvider.cs b/BTCPayServer/BTCPayNetworkProvider.cs index 2eb67d333..be0c4970d 100644 --- a/BTCPayServer/BTCPayNetworkProvider.cs +++ b/BTCPayServer/BTCPayNetworkProvider.cs @@ -52,11 +52,13 @@ namespace BTCPayServer InitBitcoinGold(); InitMonacoin(); InitDash(); - // Disabled because of https://twitter.com/Cryptopia_NZ/status/1085084168852291586 - //InitPolis(); InitFeathercoin(); InitGroestlcoin(); InitViacoin(); + + // Disabled because of https://twitter.com/Cryptopia_NZ/status/1085084168852291586 + //InitPolis(); + //InitBitcoinplus(); //InitUfo(); } diff --git a/BTCPayServer/wwwroot/imlegacy/bitcoinplus.png b/BTCPayServer/wwwroot/imlegacy/bitcoinplus.png new file mode 100644 index 000000000..98ba44560 Binary files /dev/null and b/BTCPayServer/wwwroot/imlegacy/bitcoinplus.png differ diff --git a/README.md b/README.md index 12944ebbc..4de36b807 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,7 @@ In addition to Bitcoin, BTCPay supports the following cryptocurrencies: * Polis * UFO * Viacoin +* Bitcoinplus ## Documentation