diff --git a/Plugins/BTCPayServer.Plugins.NIP05/Zapper.cs b/Plugins/BTCPayServer.Plugins.NIP05/Zapper.cs index 02af984..a7143bf 100644 --- a/Plugins/BTCPayServer.Plugins.NIP05/Zapper.cs +++ b/Plugins/BTCPayServer.Plugins.NIP05/Zapper.cs @@ -154,7 +154,7 @@ public class Zapper : IHostedService { if (arg.EventCode != InvoiceEventCode.Completed && arg.EventCode != InvoiceEventCode.MarkedCompleted) return; - var pm = arg.Invoice.GetPaymentMethod(new PaymentMethodId("BTC", PaymentTypes.LNURLPay)); + var pm = arg.Invoice.GetPaymentMethod(new PaymentMethodId("BTC", LNURLPayPaymentType.Instance)); if (pm is null) { return; diff --git a/Plugins/BTCPayServer.Plugins.Prism/SatBreaker.cs b/Plugins/BTCPayServer.Plugins.Prism/SatBreaker.cs index 16ae532..7af602b 100644 --- a/Plugins/BTCPayServer.Plugins.Prism/SatBreaker.cs +++ b/Plugins/BTCPayServer.Plugins.Prism/SatBreaker.cs @@ -115,7 +115,7 @@ namespace BTCPayServer.Plugins.Prism var store = await _storeRepository.FindStore(payout.StoreDataId); var network = _btcPayNetworkProvider.GetNetwork("BTC"); - var id = new PaymentMethodId("BTC", PaymentTypes.LightningLike); + var id = new PaymentMethodId("BTC", LightningPaymentType.Instance); var existing = store.GetSupportedPaymentMethods(_btcPayNetworkProvider) .OfType() .FirstOrDefault(d => d.PaymentId == id); @@ -286,7 +286,7 @@ namespace BTCPayServer.Plugins.Prism new[] {InvoiceEventCode.Completed, InvoiceEventCode.MarkedCompleted}.Contains( invoiceEvent.EventCode)) { - var pm = invoiceEvent.Invoice.GetPaymentMethod(new PaymentMethodId("BTC", PaymentTypes.LNURLPay)); + var pm = invoiceEvent.Invoice.GetPaymentMethod(new PaymentMethodId("BTC", LNURLPayPaymentType.Instance)); var pmd = pm?.GetPaymentMethodDetails() as LNURLPayPaymentMethodDetails; if (string.IsNullOrEmpty(pmd?.ConsumedLightningAddress)) { @@ -363,7 +363,7 @@ namespace BTCPayServer.Plugins.Prism Destination = new LNURLPayClaimDestinaton(destination), PreApprove = true, StoreId = storeId, - PaymentMethodId = new PaymentMethodId("BTC", PaymentTypes.LightningLike), + PaymentMethodId = new PaymentMethodId("BTC", LightningPaymentType.Instance), Value = Money.Satoshis(payoutAmount).ToDecimal(MoneyUnit.BTC), }); if (payout.Result == ClaimRequest.ClaimResult.Ok) diff --git a/Plugins/BTCPayServer.Plugins.Wabisabi/BTCPayWallet.cs b/Plugins/BTCPayServer.Plugins.Wabisabi/BTCPayWallet.cs index 4387826..469b08e 100644 --- a/Plugins/BTCPayServer.Plugins.Wabisabi/BTCPayWallet.cs +++ b/Plugins/BTCPayServer.Plugins.Wabisabi/BTCPayWallet.cs @@ -633,7 +633,7 @@ public async Task> GetNextDestinationsAsync(int count, })).Select(async data => { - var claim = await _bitcoinLikePayoutHandler.ParseClaimDestination(new PaymentMethodId("BTC", PaymentTypes.BTCLike), + var claim = await _bitcoinLikePayoutHandler.ParseClaimDestination(new PaymentMethodId("BTC", BitcoinPaymentType.Instance), data.Destination, CancellationToken.None); if (!string.IsNullOrEmpty(claim.error) || claim.destination is not IBitcoinLikeClaimDestination bitcoinLikeClaimDestination ) diff --git a/Plugins/BTCPayServer.Plugins.Wabisabi/Views/Shared/Wabisabi/CoinjoinHistoryTable.cshtml b/Plugins/BTCPayServer.Plugins.Wabisabi/Views/Shared/Wabisabi/CoinjoinHistoryTable.cshtml index 7f30439..f363cdd 100644 --- a/Plugins/BTCPayServer.Plugins.Wabisabi/Views/Shared/Wabisabi/CoinjoinHistoryTable.cshtml +++ b/Plugins/BTCPayServer.Plugins.Wabisabi/Views/Shared/Wabisabi/CoinjoinHistoryTable.cshtml @@ -18,7 +18,7 @@ var op = OutPoint.Parse(coin.Outpoint); - + @coin.Outpoint @@ -68,7 +68,7 @@ @cjData.CoordinatorName - + @cjData.Transaction diff --git a/Plugins/BTCPayServer.Plugins.Wabisabi/WabisabiPlugin.cs b/Plugins/BTCPayServer.Plugins.Wabisabi/WabisabiPlugin.cs index dd538cd..9723c31 100644 --- a/Plugins/BTCPayServer.Plugins.Wabisabi/WabisabiPlugin.cs +++ b/Plugins/BTCPayServer.Plugins.Wabisabi/WabisabiPlugin.cs @@ -105,7 +105,7 @@ public class WabisabiPlugin : BaseBTCPayServerPlugin // // public IEnumerable GetSupportedPaymentMethods() // { - // return new[] {new PaymentMethodId("BTC", PaymentTypes.BTCLike)}; + // return new[] {new PaymentMethodId("BTC", BitcoinPaymentType.Instance)}; // } // // public Task ConstructProcessor(PayoutProcessorData settings)