mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
* Switch Althash, keypath, hitbtc ticker * add Althash * add Althash * switch to coingecko provider * add Althash logo * Fix stacking issue with rate call * bump NBitcoin to 5.0.77 * bump NBXplorer.Client to 3.0.21
29 lines
1.1 KiB
C#
29 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 = "Althash",
|
|
BlockExplorerLink = NetworkType == ChainName.Mainnet ? "https://explorer.htmlcoin.com/api/tx/{0}" : "https://explorer.htmlcoin.com/api/tx/{0}",
|
|
NBXplorerNetwork = nbxplorerNetwork,
|
|
UriScheme = "htmlcoin",
|
|
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("88'") : new KeyPath("1'")
|
|
});
|
|
}
|
|
}
|
|
}
|