Esempio n. 1
0
 public TransactionOutputsService(IBlockChainProvider blockChainProvider,
                                  Network network,
                                  ISpentOutputRepository spentOutputRepository, IInternalOutputRepository internalOutputRepository)
 {
     _blockChainProvider       = blockChainProvider;
     _network                  = network;
     _spentOutputRepository    = spentOutputRepository;
     _internalOutputRepository = internalOutputRepository;
 }
Esempio n. 2
0
 public WalletBalanceService(IWalletBalanceRepository balanceRepository,
                             IObservableWalletRepository observableWalletRepository,
                             IBlockChainProvider blockChainProvider,
                             OperationsConfirmationsSettings confirmationsSettings)
 {
     _balanceRepository          = balanceRepository;
     _observableWalletRepository = observableWalletRepository;
     _blockChainProvider         = blockChainProvider;
     _confirmationsSettings      = confirmationsSettings;
 }
 public OperationService(ITransactionBuilderService transactionBuilder,
                         IOperationMetaRepository operationMetaRepository,
                         ITransactionBlobStorage transactionBlobStorage, Network network, IBlockChainProvider blockChainProvider)
 {
     _transactionBuilder      = transactionBuilder;
     _operationMetaRepository = operationMetaRepository;
     _transactionBlobStorage  = transactionBlobStorage;
     _network            = network;
     _blockChainProvider = blockChainProvider;
 }
Esempio n. 4
0
 public WalletBalanceService(IWalletBalanceRepository balanceRepository,
                             IObservableWalletRepository observableWalletRepository,
                             IBlockChainProvider blockChainProvider,
                             IAssetService assetService,
                             Network network,
                             ILogFactory logFactory)
 {
     _balanceRepository          = balanceRepository;
     _observableWalletRepository = observableWalletRepository;
     _blockChainProvider         = blockChainProvider;
     _assetService = assetService;
     _network      = network;
     _log          = logFactory.CreateLog(this);
 }
 public BroadcastService(IBlockChainProvider blockChainProvider,
                         ILog log,
                         IUnconfirmedTransactionRepository unconfirmedTransactionRepository,
                         IOperationMetaRepository operationMetaRepository,
                         IOperationEventRepository operationEventRepository,
                         IObservableOperationRepository observableOperationRepository,
                         ITransactionBlobStorage transactionBlobStorage)
 {
     _blockChainProvider = blockChainProvider;
     _log = log;
     _unconfirmedTransactionRepository = unconfirmedTransactionRepository;
     _operationMetaRepository          = operationMetaRepository;
     _operationEventRepository         = operationEventRepository;
     _observableOperationRepository    = observableOperationRepository;
     _transactionBlobStorage           = transactionBlobStorage;
 }
 public UpdateObservableOperationsFunctions(IUnconfirmedTransactionRepository unconfirmedTransactionRepository,
                                            IBlockChainProvider blockChainProvider,
                                            IObservableOperationRepository observableOperationRepository,
                                            OperationsConfirmationsSettings confirmationsSettings,
                                            ILog log,
                                            IOperationMetaRepository operationMetaRepository,
                                            IOperationEventRepository operationEventRepository,
                                            IWalletBalanceService walletBalanceService)
 {
     _unconfirmedTransactionRepository = unconfirmedTransactionRepository;
     _blockChainProvider            = blockChainProvider;
     _observableOperationRepository = observableOperationRepository;
     _confirmationsSettings         = confirmationsSettings;
     _log = log;
     _operationMetaRepository  = operationMetaRepository;
     _operationEventRepository = operationEventRepository;
     _walletBalanceService     = walletBalanceService;
 }
Esempio n. 7
0
 public OperationsController(IOperationService operationService,
                             IBlockChainProvider blockChainProvider,
                             IAddressValidator addressValidator,
                             IBroadcastService broadcastService,
                             IObservableOperationService observableOperationService,
                             Network network,
                             IAssetRepository assetRepository,
                             IOperationEventRepository operationEventRepository)
 {
     _operationService           = operationService;
     _blockChainProvider         = blockChainProvider;
     _addressValidator           = addressValidator;
     _broadcastService           = broadcastService;
     _observableOperationService = observableOperationService;
     _network                  = network;
     _assetRepository          = assetRepository;
     _operationEventRepository = operationEventRepository;
 }
Esempio n. 8
0
        public UpdateBalanceFunctions(IObservableWalletRepository observableWalletRepository,
                                      OperationsConfirmationsSettings confirmationsSettings,
                                      IBlockChainProvider blockChainProvider,
                                      IWalletBalanceService walletBalanceService,
                                      BlockHeightSettings blockHeightSettings,
                                      ILastProcessedBlockRepository lastProcessedBlockRepository,
                                      HotWalletAddressSettings hotWalletAddressSettings,
                                      ILogFactory logFactory)
        {
            _observableWalletRepository   = observableWalletRepository;
            _confirmationsSettings        = confirmationsSettings;
            _blockChainProvider           = blockChainProvider;
            _walletBalanceService         = walletBalanceService;
            _blockHeightSettings          = blockHeightSettings;
            _lastProcessedBlockRepository = lastProcessedBlockRepository;
            _hotWalletAddressSettings     = hotWalletAddressSettings;
            _log = logFactory.CreateLog(this);

            _log.Info("Starting balance updating", context: blockHeightSettings);
        }
 public BroadcastService(IBlockChainProvider blockChainProvider,
                         ILogFactory logFactory,
                         IUnconfirmedTransactionRepository unconfirmedTransactionRepository,
                         IOperationMetaRepository operationMetaRepository,
                         IOperationEventRepository operationEventRepository,
                         IObservableOperationRepository observableOperationRepository,
                         ITransactionBlobStorage transactionBlobStorage,
                         ITransactionOutputsService transactionOutputsService,
                         Network network,
                         ISpentOutputRepository spentOutputRepository)
 {
     _blockChainProvider = blockChainProvider;
     _log = logFactory.CreateLog(this);
     _unconfirmedTransactionRepository = unconfirmedTransactionRepository;
     _operationMetaRepository          = operationMetaRepository;
     _operationEventRepository         = operationEventRepository;
     _observableOperationRepository    = observableOperationRepository;
     _transactionBlobStorage           = transactionBlobStorage;
     _transactionOutputsService        = transactionOutputsService;
     _network = network;
     _spentOutputRepository = spentOutputRepository;
 }
Esempio n. 10
0
 public HistoryService(IBlockChainProvider blockChainProvider)
 {
     _blockChainProvider = blockChainProvider;
 }
 public TransactionOutputsService(IBlockChainProvider blockChainProvider, ISpentOutputRepository spentOutputRepository)
 {
     _blockChainProvider    = blockChainProvider;
     _spentOutputRepository = spentOutputRepository;
 }
 public TransactionOutputsService(IBlockChainProvider blockChainProvider)
 {
     _blockChainProvider = blockChainProvider;
 }
Esempio n. 13
0
 public HistoryService(IBlockChainProvider blockChainProvider, IAssetRepository assetRepository)
 {
     _blockChainProvider = blockChainProvider;
     _assetRepository    = assetRepository;
 }
Esempio n. 14
0
 public WalletBalanceService(IWalletBalanceRepository balanceRepository, IObservableWalletRepository observableWalletRepository, IBlockChainProvider blockChainProvider)
 {
     _balanceRepository          = balanceRepository;
     _observableWalletRepository = observableWalletRepository;
     _blockChainProvider         = blockChainProvider;
 }