mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
30 lines
1.2 KiB
C#
30 lines
1.2 KiB
C#
|
using NBitcoin;
|
|||
|
|
|||
|
namespace BTCPayServer
|
|||
|
{
|
|||
|
public partial class BTCPayNetworkProvider
|
|||
|
{
|
|||
|
public void InitBitcoinGold()
|
|||
|
{
|
|||
|
var nbxplorerNetwork = NBXplorerNetworkProvider.GetFromCryptoCode("BTG");
|
|||
|
Add(new BTCPayNetwork()
|
|||
|
{
|
|||
|
CryptoCode = nbxplorerNetwork.CryptoCode,
|
|||
|
BlockExplorerLink = NetworkType == NetworkType.Mainnet ? "https://explorer.bitcoingold.org/insight/tx/{0}/" : "https://test-explorer.bitcoingold.org/insight/tx/{0}",
|
|||
|
NBitcoinNetwork = nbxplorerNetwork.NBitcoinNetwork,
|
|||
|
NBXplorerNetwork = nbxplorerNetwork,
|
|||
|
UriScheme = "bitcoingold",
|
|||
|
DefaultRateRules = new[]
|
|||
|
{
|
|||
|
"BTG_X = BTG_BTC * BTC_X",
|
|||
|
"BTG_BTC = bitfinex(BTG_BTC)",
|
|||
|
},
|
|||
|
CryptoImagePath = "imlegacy/btg-symbol.svg",
|
|||
|
LightningImagePath = "imlegacy/btg-symbol.svg",
|
|||
|
DefaultSettings = BTCPayDefaultSettings.GetDefaultSettings(NetworkType),
|
|||
|
CoinType = NetworkType == NetworkType.Mainnet ? new KeyPath("156'") : new KeyPath("1'")
|
|||
|
});
|
|||
|
}
|
|||
|
}
|
|||
|
}
|