mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 22:25:28 +01:00
* remove old logo * add new logo * switch name from Althash to Htmlcoin * increment version NBXplorer.Client * fix KeyPath BIP-0044, fix name https://github.com/BEPAL/slips/blob/master/slip-0044.md * revert increment version
28 lines
1.1 KiB
C#
28 lines
1.1 KiB
C#
using NBitcoin;
|
|
using NBXplorer;
|
|
|
|
namespace BTCPayServer
|
|
{
|
|
public partial class BTCPayNetworkProvider
|
|
{
|
|
public void InitAlthash()
|
|
{
|
|
var nbxplorerNetwork = NBXplorerNetworkProvider.GetFromCryptoCode("HTML");
|
|
Add(new BTCPayNetwork()
|
|
{
|
|
CryptoCode = nbxplorerNetwork.CryptoCode,
|
|
DisplayName = "Htmlcoin",
|
|
BlockExplorerLink = NetworkType == ChainName.Mainnet ? "https://explorer.htmlcoin.com/api/tx/{0}" : "https://explorer.htmlcoin.com/api/tx/{0}",
|
|
NBXplorerNetwork = nbxplorerNetwork,
|
|
DefaultRateRules = new[]
|
|
{
|
|
"HTML_X = HTML_USD",
|
|
"HTML_USD = hitbtc(HTML_USD)"
|
|
},
|
|
CryptoImagePath = "imlegacy/althash.png",
|
|
DefaultSettings = BTCPayDefaultSettings.GetDefaultSettings(NetworkType),
|
|
CoinType = NetworkType == ChainName.Mainnet ? new KeyPath("172'") : new KeyPath("1'")
|
|
});
|
|
}
|
|
}
|
|
}
|