2020-04-17 01:46:45 +02:00
|
|
|
using NBitcoin;
|
|
|
|
|
|
|
|
namespace BTCPayServer
|
|
|
|
{
|
|
|
|
public partial class BTCPayNetworkProvider
|
|
|
|
{
|
|
|
|
public void InitArgoneum()
|
|
|
|
{
|
|
|
|
var nbxplorerNetwork = NBXplorerNetworkProvider.GetFromCryptoCode("AGM");
|
|
|
|
Add(new BTCPayNetwork()
|
|
|
|
{
|
|
|
|
CryptoCode = nbxplorerNetwork.CryptoCode,
|
|
|
|
DisplayName = "Argoneum",
|
2021-01-27 06:39:38 +01:00
|
|
|
BlockExplorerLink = NetworkType == ChainName.Mainnet
|
2020-04-17 01:46:45 +02:00
|
|
|
? "https://chainz.cryptoid.info/agm/tx.dws?{0}"
|
|
|
|
: "https://chainz.cryptoid.info/agm-test/tx.dws?{0}",
|
|
|
|
NBXplorerNetwork = nbxplorerNetwork,
|
|
|
|
UriScheme = "argoneum",
|
|
|
|
DefaultRateRules = new[]
|
|
|
|
{
|
|
|
|
"AGM_X = AGM_BTC * BTC_X",
|
|
|
|
"AGM_BTC = argoneum(AGM_BTC)"
|
|
|
|
},
|
|
|
|
CryptoImagePath = "imlegacy/argoneum.png",
|
|
|
|
DefaultSettings = BTCPayDefaultSettings.GetDefaultSettings(NetworkType),
|
2021-01-27 06:39:38 +01:00
|
|
|
CoinType = NetworkType == ChainName.Mainnet ? new KeyPath("421'")
|
2020-04-17 01:46:45 +02:00
|
|
|
: new KeyPath("1'")
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|