GreenField: Generate Store OnChain Wallet (#2708)

* GreenField: Generate Store OnChain Wallet

* Greenfield: Do not generate wallet if already configured
This commit is contained in:
Andrew Camilleri
2021-07-27 16:53:44 +02:00
committed by GitHub
parent 80483ba76f
commit c59798e9c4
12 changed files with 505 additions and 12 deletions

View File

@@ -1,3 +1,5 @@
using NBitcoin;
namespace BTCPayServer.Client.Models
{
public class OnChainPaymentMethodData : OnChainPaymentMethodBaseData
@@ -17,9 +19,11 @@ namespace BTCPayServer.Client.Models
}
public OnChainPaymentMethodData(string cryptoCode, string derivationScheme, bool enabled)
public OnChainPaymentMethodData(string cryptoCode, string derivationScheme, bool enabled, string label, RootedKeyPath accountKeyPath)
{
Enabled = enabled;
Label = label;
AccountKeyPath = accountKeyPath;
CryptoCode = cryptoCode;
DerivationScheme = derivationScheme;
}