2018-05-05 20:56:44 +02:00
|
|
|
|
using NBitcoin;
|
|
|
|
|
|
|
|
|
|
namespace BTCPayServer
|
|
|
|
|
{
|
|
|
|
|
public partial class BTCPayNetworkProvider
|
|
|
|
|
{
|
|
|
|
|
public void InitBitcoinGold()
|
|
|
|
|
{
|
|
|
|
|
var nbxplorerNetwork = NBXplorerNetworkProvider.GetFromCryptoCode("BTG");
|
|
|
|
|
Add(new BTCPayNetwork()
|
|
|
|
|
{
|
|
|
|
|
CryptoCode = nbxplorerNetwork.CryptoCode,
|
2018-07-17 06:25:28 +02:00
|
|
|
|
DisplayName = "BGold",
|
2018-05-05 20:56:44 +02:00
|
|
|
|
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)",
|
|
|
|
|
},
|
2018-07-18 06:32:44 +02:00
|
|
|
|
CryptoImagePath = "imlegacy/btg.svg",
|
2018-07-17 12:43:37 +02:00
|
|
|
|
LightningImagePath = "imlegacy/btg-lightning.svg",
|
2018-05-05 20:56:44 +02:00
|
|
|
|
DefaultSettings = BTCPayDefaultSettings.GetDefaultSettings(NetworkType),
|
|
|
|
|
CoinType = NetworkType == NetworkType.Mainnet ? new KeyPath("156'") : new KeyPath("1'")
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|