mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 18:11:36 +01:00
36 lines
1.4 KiB
C#
36 lines
1.4 KiB
C#
using NBitcoin;
|
|
|
|
namespace BTCPayServer
|
|
{
|
|
public partial class BTCPayNetworkProvider
|
|
{
|
|
public void InitDash()
|
|
{
|
|
//not needed: NBitcoin.Altcoins.Dash.Instance.EnsureRegistered();
|
|
var nbxplorerNetwork = NBXplorerNetworkProvider.GetFromCryptoCode("DASH");
|
|
Add(new BTCPayNetwork()
|
|
{
|
|
CryptoCode = nbxplorerNetwork.CryptoCode,
|
|
DisplayName = "Dash",
|
|
BlockExplorerLink = NetworkType == NetworkType.Mainnet
|
|
? "https://insight.dash.org/insight/tx/{0}"
|
|
: "https://testnet-insight.dashevo.org/insight/tx/{0}",
|
|
NBitcoinNetwork = nbxplorerNetwork.NBitcoinNetwork,
|
|
NBXplorerNetwork = nbxplorerNetwork,
|
|
UriScheme = "dash",
|
|
DefaultRateRules = new[]
|
|
{
|
|
"DASH_X = DASH_BTC * BTC_X",
|
|
"DASH_BTC = bittrex(DASH_BTC)"
|
|
},
|
|
CryptoImagePath = "imlegacy/dash.png",
|
|
DefaultSettings = BTCPayDefaultSettings.GetDefaultSettings(NetworkType),
|
|
//https://github.com/satoshilabs/slips/blob/master/slip-0044.md
|
|
CoinType = NetworkType == NetworkType.Mainnet ? new KeyPath("5'")
|
|
: new KeyPath("1'"),
|
|
MinFee = Money.Satoshis(1m)
|
|
});
|
|
}
|
|
}
|
|
}
|