mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
commit
b9e5b0d56e
4 changed files with 58 additions and 0 deletions
34
BTCPayServer/BTCPayNetworkProvider.Viacoin.cs
Normal file
34
BTCPayServer/BTCPayNetworkProvider.Viacoin.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
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 InitViacoin()
|
||||
{
|
||||
var nbxplorerNetwork = NBXplorerNetworkProvider.GetFromCryptoCode("VIA");
|
||||
Add(new BTCPayNetwork()
|
||||
{
|
||||
CryptoCode = nbxplorerNetwork.CryptoCode,
|
||||
BlockExplorerLink = NetworkType == NetworkType.Mainnet ? "https://explorer.viacoin.org/tx/{0}" : "https://explorer.viacoin.org/tx/{0}",
|
||||
NBitcoinNetwork = nbxplorerNetwork.NBitcoinNetwork,
|
||||
NBXplorerNetwork = nbxplorerNetwork,
|
||||
UriScheme = "viacoin",
|
||||
DefaultRateRules = new[]
|
||||
{
|
||||
"VIA_X = VIA_BTC * BTC_X",
|
||||
"VIA_BTC = bittrex(VIA_BTC)"
|
||||
},
|
||||
CryptoImagePath = "imlegacy/viacoin.png",
|
||||
DefaultSettings = BTCPayDefaultSettings.GetDefaultSettings(NetworkType),
|
||||
CoinType = NetworkType == NetworkType.Mainnet ? new KeyPath("14'") : new KeyPath("1'")
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
|
@ -53,6 +53,7 @@ namespace BTCPayServer
|
|||
InitPolis();
|
||||
InitFeathercoin();
|
||||
InitGroestlcoin();
|
||||
InitViacoin();
|
||||
//InitUfo();
|
||||
}
|
||||
|
||||
|
|
BIN
BTCPayServer/wwwroot/imlegacy/viacoin.png
Normal file
BIN
BTCPayServer/wwwroot/imlegacy/viacoin.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
23
BTCPayServer/wwwroot/imlegacy/viacoin.svg
Normal file
23
BTCPayServer/wwwroot/imlegacy/viacoin.svg
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 22.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 144 144" style="enable-background:new 0 0 144 144;" xml:space="preserve">
|
||||
<g>
|
||||
<path d="M68.7,0c2.1,0,4.2,0,6.3,0c0.1,0,0.2,0.1,0.3,0.1c2.4,0.2,5,0.3,7.4,0.7c7.5,1,14.5,3.3,21.3,6.7
|
||||
c7.6,3.8,14.3,8.8,20.1,14.9c7.3,7.6,12.6,16.5,16,26.4c2.4,7,3.7,14.3,3.8,21.8c0,0.1,0,0.2,0.1,0.3c0,0.7,0,1.4,0,2.1
|
||||
c0,0.1-0.1,0.2-0.1,0.3c0,3.8-0.5,7.6-1.2,11.4c-1.3,7.1-3.6,14.1-6.9,20.5c-4.7,9-11,16.6-18.9,22.9
|
||||
c-11.5,9.2-24.6,14.4-39.2,15.6c-5.5,0.5-11,0.2-16.5-0.6c-8.1-1.2-15.7-3.6-22.8-7.4c-14.2-7.5-24.8-18.6-31.7-33.1
|
||||
c-3.9-8.2-6.1-16.9-6.7-26.1c0-0.7-0.1-1.3-0.1-2c0-1.8,0-3.7,0-5.5c0-0.1,0.1-0.2,0.1-0.5c0.2-2.7,0.5-5.3,0.8-7.8
|
||||
c1.2-7.7,3.6-15.1,7.1-22c3.7-7,8.4-13.4,14.2-18.9c8-7.6,17.3-13.1,27.8-16.6C55.6,1.6,61.2,0.5,67,0.1C67.4,0.1,68.1,0.1,68.7,0z
|
||||
M94.5,69.2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.3-5.2-12.5c3.5,0,6.9,0,10.4,0C76.3,83,74.5,87,72.6,91.2z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.1 KiB |
Loading…
Add table
Reference in a new issue