2018-11-03 05:42:17 +01:00
|
|
|
using NBitcoin;
|
|
|
|
using NBXplorer;
|
|
|
|
|
|
|
|
namespace BTCPayServer
|
|
|
|
{
|
|
|
|
public partial class BTCPayNetworkProvider
|
|
|
|
{
|
|
|
|
public void InitBitcore()
|
|
|
|
{
|
|
|
|
var nbxplorerNetwork = NBXplorerNetworkProvider.GetFromCryptoCode("BTX");
|
|
|
|
Add(new BTCPayNetwork()
|
|
|
|
{
|
|
|
|
CryptoCode = nbxplorerNetwork.CryptoCode,
|
2021-05-07 17:34:38 +02:00
|
|
|
DisplayName = "BitCore",
|
|
|
|
BlockExplorerLink = NetworkType == ChainName.Mainnet ? "https://explorer.bitcore.cc/tx/{0}" : "https://explorer.bitcore.cc/tx/{0}",
|
2018-11-03 05:42:17 +01:00
|
|
|
NBXplorerNetwork = nbxplorerNetwork,
|
|
|
|
UriScheme = "bitcore",
|
|
|
|
DefaultRateRules = new[]
|
|
|
|
{
|
|
|
|
"BTX_X = BTX_BTC * BTC_X",
|
2019-01-16 23:04:24 +01:00
|
|
|
"BTX_BTC = hitbtc(BTX_BTC)"
|
2018-11-03 05:42:17 +01:00
|
|
|
},
|
|
|
|
CryptoImagePath = "imlegacy/bitcore.svg",
|
|
|
|
LightningImagePath = "imlegacy/bitcore-lightning.svg",
|
|
|
|
DefaultSettings = BTCPayDefaultSettings.GetDefaultSettings(NetworkType),
|
2021-01-27 06:39:38 +01:00
|
|
|
CoinType = NetworkType == ChainName.Mainnet ? new KeyPath("160'") : new KeyPath("1'")
|
2018-11-03 05:42:17 +01:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|