2018-04-10 12:07:57 +02:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using BTCPayServer.Services.Rates;
|
|
|
|
|
using NBitcoin;
|
|
|
|
|
using NBXplorer;
|
|
|
|
|
|
|
|
|
|
namespace BTCPayServer
|
|
|
|
|
{
|
|
|
|
|
public partial class BTCPayNetworkProvider
|
|
|
|
|
{
|
|
|
|
|
public void InitDogecoin()
|
|
|
|
|
{
|
|
|
|
|
var nbxplorerNetwork = NBXplorerNetworkProvider.GetFromCryptoCode("DOGE");
|
|
|
|
|
Add(new BTCPayNetwork()
|
|
|
|
|
{
|
|
|
|
|
CryptoCode = nbxplorerNetwork.CryptoCode,
|
2018-04-19 09:54:25 +02:00
|
|
|
|
BlockExplorerLink = NetworkType == NetworkType.Mainnet ? "https://dogechain.info/tx/{0}" : "https://dogechain.info/tx/{0}",
|
2018-04-10 12:07:57 +02:00
|
|
|
|
NBitcoinNetwork = nbxplorerNetwork.NBitcoinNetwork,
|
|
|
|
|
NBXplorerNetwork = nbxplorerNetwork,
|
|
|
|
|
UriScheme = "dogecoin",
|
2018-05-04 18:34:08 +02:00
|
|
|
|
DefaultRateRules = new[]
|
|
|
|
|
{
|
|
|
|
|
"DOGE_X = DOGE_BTC * BTC_X",
|
|
|
|
|
"DOGE_BTC = bittrex(DOGE_BTC)"
|
|
|
|
|
},
|
2018-04-10 12:07:57 +02:00
|
|
|
|
CryptoImagePath = "imlegacy/dogecoin.png",
|
2018-04-19 09:54:25 +02:00
|
|
|
|
DefaultSettings = BTCPayDefaultSettings.GetDefaultSettings(NetworkType),
|
|
|
|
|
CoinType = NetworkType == NetworkType.Mainnet ? new KeyPath("3'") : new KeyPath("1'")
|
2018-04-10 12:07:57 +02:00
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|