mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
Merge pull request #1768 from sotblad/MonetaryUnit
Add MonetaryUnit (MUE) support
This commit is contained in:
commit
40bfc9b368
@ -0,0 +1,29 @@
|
|||||||
|
using NBitcoin;
|
||||||
|
using NBXplorer;
|
||||||
|
|
||||||
|
namespace BTCPayServer
|
||||||
|
{
|
||||||
|
public partial class BTCPayNetworkProvider
|
||||||
|
{
|
||||||
|
public void InitMonetaryUnit()
|
||||||
|
{
|
||||||
|
var nbxplorerNetwork = NBXplorerNetworkProvider.GetFromCryptoCode("MUE");
|
||||||
|
Add(new BTCPayNetwork()
|
||||||
|
{
|
||||||
|
CryptoCode = nbxplorerNetwork.CryptoCode,
|
||||||
|
DisplayName = "MonetaryUnit",
|
||||||
|
BlockExplorerLink = NetworkType == NetworkType.Mainnet ? "https://explorer.monetaryunit.org/#/MUE/mainnet/tx/{0}" : "https://explorer.monetaryunit.org/#/MUE/mainnet/tx/{0}",
|
||||||
|
NBXplorerNetwork = nbxplorerNetwork,
|
||||||
|
UriScheme = "monetaryunit",
|
||||||
|
DefaultRateRules = new[]
|
||||||
|
{
|
||||||
|
"MUE_X = MUE_BTC * BTC_X",
|
||||||
|
"MUE_BTC = bittrex(MUE_BTC)"
|
||||||
|
},
|
||||||
|
CryptoImagePath = "imlegacy/monetaryunit.png",
|
||||||
|
DefaultSettings = BTCPayDefaultSettings.GetDefaultSettings(NetworkType),
|
||||||
|
CoinType = NetworkType == NetworkType.Mainnet ? new KeyPath("31'") : new KeyPath("1'")
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -58,6 +58,7 @@ namespace BTCPayServer
|
|||||||
InitPolis();
|
InitPolis();
|
||||||
InitChaincoin();
|
InitChaincoin();
|
||||||
// InitArgoneum();//their rate source is down 9/15/20.
|
// InitArgoneum();//their rate source is down 9/15/20.
|
||||||
|
InitMonetaryUnit();
|
||||||
InitEthereum();
|
InitEthereum();
|
||||||
InitERC20();
|
InitERC20();
|
||||||
|
|
||||||
@ -132,4 +133,4 @@ namespace BTCPayServer
|
|||||||
return network as T;
|
return network as T;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
||||||
<PackageReference Include="NBXplorer.Client" Version="3.0.17" />
|
<PackageReference Include="NBXplorer.Client" Version="3.0.18" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup Condition="'$(Altcoins)' != 'true'">
|
<ItemGroup Condition="'$(Altcoins)' != 'true'">
|
||||||
<Compile Remove="Altcoins\**\*.cs"></Compile>
|
<Compile Remove="Altcoins\**\*.cs"></Compile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
@ -1280,6 +1280,13 @@
|
|||||||
"symbol":null,
|
"symbol":null,
|
||||||
"crypto":true
|
"crypto":true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name":"MonetaryUnit",
|
||||||
|
"code":"MUE",
|
||||||
|
"divisibility":8,
|
||||||
|
"symbol":null,
|
||||||
|
"crypto":true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name":"Satoshis",
|
"name":"Satoshis",
|
||||||
"code":"SATS",
|
"code":"SATS",
|
||||||
|
BIN
BTCPayServer/wwwroot/imlegacy/monetaryunit.png
Normal file
BIN
BTCPayServer/wwwroot/imlegacy/monetaryunit.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
Loading…
Reference in New Issue
Block a user