2021-04-25 19:31:00 -07:00
|
|
|
using NBitcoin;
|
|
|
|
using NBXplorer;
|
|
|
|
|
|
|
|
namespace BTCPayServer
|
|
|
|
{
|
|
|
|
public partial class BTCPayNetworkProvider
|
|
|
|
{
|
|
|
|
public void InitAlthash()
|
|
|
|
{
|
|
|
|
var nbxplorerNetwork = NBXplorerNetworkProvider.GetFromCryptoCode("HTML");
|
|
|
|
Add(new BTCPayNetwork()
|
|
|
|
{
|
|
|
|
CryptoCode = nbxplorerNetwork.CryptoCode,
|
2022-04-13 21:18:12 -07:00
|
|
|
DisplayName = "Htmlcoin",
|
2021-04-25 19:31:00 -07:00
|
|
|
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),
|
2022-04-13 21:18:12 -07:00
|
|
|
CoinType = NetworkType == ChainName.Mainnet ? new KeyPath("172'") : new KeyPath("1'")
|
2021-04-25 19:31:00 -07:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|