mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-18 08:04:26 +01:00
improve and add docs
This commit is contained in:
@@ -99,8 +99,7 @@ public class WalletProvider : PeriodicRunner,IWalletProvider
|
||||
var keychain = new BTCPayKeyChain(explorerClient, derivationStrategy, masterKey, accountKey);
|
||||
|
||||
|
||||
var smartifier = new Smartifier(_serviceProvider.GetRequiredService<WalletRepository>(),explorerClient, derivationStrategy, _btcPayServerClientFactory, name,
|
||||
CoinOnPropertyChanged);
|
||||
var smartifier = new Smartifier(_serviceProvider.GetRequiredService<WalletRepository>(),explorerClient, derivationStrategy, name, UtxoLocker);
|
||||
|
||||
return (IWallet)new BTCPayWallet(
|
||||
_serviceProvider.GetRequiredService<WalletRepository>(),
|
||||
@@ -112,7 +111,8 @@ public class WalletProvider : PeriodicRunner,IWalletProvider
|
||||
pm, derivationStrategy, explorerClient, keychain,
|
||||
_btcPayServerClientFactory, name, wabisabiStoreSettings, UtxoLocker,
|
||||
_loggerFactory, smartifier,
|
||||
_serviceProvider.GetRequiredService<StoreRepository>(), BannedCoins);
|
||||
_serviceProvider.GetRequiredService<StoreRepository>(), BannedCoins,
|
||||
_eventAggregator);
|
||||
|
||||
});
|
||||
|
||||
@@ -276,15 +276,9 @@ public class WalletProvider : PeriodicRunner,IWalletProvider
|
||||
}, cancellationToken);
|
||||
_subscription = _eventAggregator.SubscribeAsync<WalletChangedEvent>(@event =>
|
||||
Check(@event.WalletId.StoreId, cancellationToken));
|
||||
_subscription2 = _eventAggregator.SubscribeAsync<NewTransactionEvent>(HandleNewTransaction);
|
||||
return base.StartAsync(cancellationToken);
|
||||
}
|
||||
|
||||
private Task HandleNewTransaction(NewTransactionEvent arg)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override Task StopAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
_subscription?.Dispose();
|
||||
|
||||
Reference in New Issue
Block a user