Ejemplo n.º 1
0
 public TradeQueue(
     AppSettings.RabbitMqSettings config,
     ILog log,
     IBitcoinCommandSender bitcoinCommandSender,
     IWalletCredentialsRepository walletCredentialsRepository,
     IBitCoinTransactionsRepository bitcoinTransactionsRepository,
     IMarketOrdersRepository marketOrdersRepository,
     IClientTradesRepository clientTradesRepository,
     IOffchainRequestService offchainRequestService,
     IOffchainOrdersRepository offchainOrdersRepository,
     IEthereumTransactionRequestRepository ethereumTransactionRequestRepository,
     ISrvEthereumHelper srvEthereumHelper,
     ICachedAssetsService assetsService,
     IBcnClientCredentialsRepository bcnClientCredentialsRepository,
     AppSettings.EthereumSettings settings,
     IEthClientEventLogs ethClientEventLogs, IBitcoinTransactionService bitcoinTransactionService, IClientAccountsRepository clientAccountsRepository)
 {
     _rabbitConfig                         = config;
     _bitcoinCommandSender                 = bitcoinCommandSender;
     _walletCredentialsRepository          = walletCredentialsRepository;
     _bitcoinTransactionsRepository        = bitcoinTransactionsRepository;
     _marketOrdersRepository               = marketOrdersRepository;
     _clientTradesRepository               = clientTradesRepository;
     _offchainRequestService               = offchainRequestService;
     _offchainOrdersRepository             = offchainOrdersRepository;
     _ethereumTransactionRequestRepository = ethereumTransactionRequestRepository;
     _srvEthereumHelper                    = srvEthereumHelper;
     _assetsService                        = assetsService;
     _bcnClientCredentialsRepository       = bcnClientCredentialsRepository;
     _settings                  = settings;
     _ethClientEventLogs        = ethClientEventLogs;
     _bitcoinTransactionService = bitcoinTransactionService;
     _clientAccountsRepository  = clientAccountsRepository;
     _log = log;
 }
 public CashInOutQueue(AppSettings.RabbitMqSettings config, ILog log,
                       IBitcoinCommandSender bitcoinCommandSender,
                       ICashOperationsRepository cashOperationsRepository,
                       IWalletCredentialsRepository walletCredentialsRepository,
                       IBitCoinTransactionsRepository bitcoinTransactionsRepository,
                       IForwardWithdrawalRepository forwardWithdrawalRepository,
                       ICachedAssetsService assetsService,
                       IOffchainRequestService offchainRequestService,
                       IClientSettingsRepository clientSettingsRepository,
                       IEthereumTransactionRequestRepository ethereumTransactionRequestRepository,
                       ISrvEthereumHelper srvEthereumHelper,
                       IBcnClientCredentialsRepository bcnClientCredentialsRepository,
                       IEthClientEventLogs ethClientEventLogs,
                       IHistoryWriter historyWriter,
                       IBitcoinTransactionService bitcoinTransactionService)
 {
     _rabbitConfig                         = config;
     _log                                  = log;
     _bitcoinCommandSender                 = bitcoinCommandSender;
     _cashOperationsRepository             = cashOperationsRepository;
     _walletCredentialsRepository          = walletCredentialsRepository;
     _bitcoinTransactionsRepository        = bitcoinTransactionsRepository;
     _forwardWithdrawalRepository          = forwardWithdrawalRepository;
     _assetsService                        = assetsService;
     _offchainRequestService               = offchainRequestService;
     _clientSettingsRepository             = clientSettingsRepository;
     _ethereumTransactionRequestRepository = ethereumTransactionRequestRepository;
     _srvEthereumHelper                    = srvEthereumHelper;
     _bcnClientCredentialsRepository       = bcnClientCredentialsRepository;
     _ethClientEventLogs                   = ethClientEventLogs;
     _bitcoinTransactionService            = bitcoinTransactionService;
     _historyWriter                        = historyWriter;
 }
 public EthereumEventsQueue(AppSettings.RabbitMqSettings config, ILog log,
                            IMatchingEngineClient matchingEngineClient,
                            ICashOperationsRepository cashOperationsRepository,
                            IClientAccountsRepository clientAccountsRepository,
                            ISrvEmailsFacade srvEmailsFacade,
                            IBcnClientCredentialsRepository bcnClientCredentialsRepository,
                            IPaymentTransactionsRepository paymentTransactionsRepository,
                            IWalletCredentialsRepository walletCredentialsRepository,
                            IClientTradesRepository clientTradesRepository,
                            IEthereumTransactionRequestRepository ethereumTransactionRequestRepository,
                            ICachedAssetsService assetsService)
 {
     _log = log;
     _matchingEngineClient                 = matchingEngineClient;
     _cashOperationsRepository             = cashOperationsRepository;
     _clientAccountsRepository             = clientAccountsRepository;
     _srvEmailsFacade                      = srvEmailsFacade;
     _bcnClientCredentialsRepository       = bcnClientCredentialsRepository;
     _paymentTransactionsRepository        = paymentTransactionsRepository;
     _walletCredentialsRepository          = walletCredentialsRepository;
     _clientTradesRepository               = clientTradesRepository;
     _ethereumTransactionRequestRepository = ethereumTransactionRequestRepository;
     _assetsService = assetsService;
     _rabbitConfig  = config;
 }
 public LimitTradeQueue(
     AppSettings.RabbitMqSettings config,
     ILog log,
     IWalletCredentialsRepository walletCredentialsRepository,
     IOffchainRequestService offchainRequestService,
     IEthereumTransactionRequestRepository ethereumTransactionRequestRepository,
     ISrvEthereumHelper srvEthereumHelper,
     ICachedAssetsService assetsService,
     IBcnClientCredentialsRepository bcnClientCredentialsRepository,
     AppSettings.EthereumSettings settings,
     IEthClientEventLogs ethClientEventLogs,
     ILimitOrdersRepository limitOrdersRepository, IClientTradesRepository clientTradesRepository, ILimitTradeEventsRepository limitTradeEventsRepository, IClientSettingsRepository clientSettingsRepository, IAppNotifications appNotifications, IClientAccountsRepository clientAccountsRepository, IOffchainOrdersRepository offchainOrdersRepository, IClientCacheRepository clientCacheRepository, IBitcoinTransactionService bitcoinTransactionService)
 {
     _rabbitConfig = config;
     _walletCredentialsRepository          = walletCredentialsRepository;
     _offchainRequestService               = offchainRequestService;
     _ethereumTransactionRequestRepository = ethereumTransactionRequestRepository;
     _srvEthereumHelper = srvEthereumHelper;
     _assetsService     = assetsService;
     _bcnClientCredentialsRepository = bcnClientCredentialsRepository;
     _settings           = settings;
     _ethClientEventLogs = ethClientEventLogs;
     _log = log;
     _limitOrdersRepository      = limitOrdersRepository;
     _clientTradesRepository     = clientTradesRepository;
     _limitTradeEventsRepository = limitTradeEventsRepository;
     _clientSettingsRepository   = clientSettingsRepository;
     _appNotifications           = appNotifications;
     _clientAccountsRepository   = clientAccountsRepository;
     _offchainOrdersRepository   = offchainOrdersRepository;
     _clientCacheRepository      = clientCacheRepository;
     _bitcoinTransactionService  = bitcoinTransactionService;
 }
Ejemplo n.º 5
0
 public EthereumCommandHandler(
     [NotNull] ILogFactory logFactory,
     [NotNull] ISrvEthereumHelper srvEthereumHelper,
     [NotNull] IAssetsServiceWithCache assetsServiceWithCache,
     [NotNull] IBcnClientCredentialsRepository bcnClientCredentialsRepository,
     [NotNull] IEthereumTransactionRequestRepository ethereumTransactionRequestRepository,
     [NotNull] ITransactionService transactionService,
     [NotNull] EthereumSettings settings,
     TimeSpan retryTimeout)
 {
     _log = logFactory.CreateLog(this);
     _srvEthereumHelper                    = srvEthereumHelper ?? throw new ArgumentNullException(nameof(srvEthereumHelper));
     _assetsServiceWithCache               = assetsServiceWithCache ?? throw new ArgumentNullException(nameof(assetsServiceWithCache));
     _bcnClientCredentialsRepository       = bcnClientCredentialsRepository ?? throw new ArgumentNullException(nameof(bcnClientCredentialsRepository));
     _ethereumTransactionRequestRepository = ethereumTransactionRequestRepository ?? throw new ArgumentNullException(nameof(ethereumTransactionRequestRepository));
     _transactionService                   = transactionService ?? throw new ArgumentNullException(nameof(transactionService));
     _settings     = settings ?? throw new ArgumentNullException(nameof(settings));
     _retryTimeout = retryTimeout;
 }
Ejemplo n.º 6
0
 public OperationHistoryProjection(
     [NotNull] ILogFactory logFactory,
     [NotNull] ITradeOperationsRepositoryClient clientTradesRepository,
     [NotNull] ICashOperationsRepositoryClient cashOperationsRepositoryClient,
     [NotNull] ITransferOperationsRepositoryClient transferEventsRepositoryClient,
     [NotNull] Core.Services.BitCoin.ITransactionService transactionService,
     [NotNull] IAssetsServiceWithCache assetsServiceWithCache,
     [NotNull] IWalletCredentialsRepository walletCredentialsRepository,
     [NotNull] ILimitTradeEventsRepositoryClient limitTradeEventsRepositoryClient,
     [NotNull] IEthereumTransactionRequestRepository ethereumTransactionRequestRepository)
 {
     _limitTradeEventsRepositoryClient = limitTradeEventsRepositoryClient;
     _log = logFactory.CreateLog(this);
     _clientTradesRepository               = clientTradesRepository ?? throw new ArgumentNullException(nameof(clientTradesRepository));
     _cashOperationsRepositoryClient       = cashOperationsRepositoryClient ?? throw new ArgumentNullException(nameof(cashOperationsRepositoryClient));
     _transferEventsRepositoryClient       = transferEventsRepositoryClient ?? throw new ArgumentNullException(nameof(transferEventsRepositoryClient));
     _transactionService                   = transactionService ?? throw new ArgumentNullException(nameof(transactionService));
     _assetsServiceWithCache               = assetsServiceWithCache ?? throw new ArgumentNullException(nameof(assetsServiceWithCache));
     _walletCredentialsRepository          = walletCredentialsRepository ?? throw new ArgumentNullException(nameof(walletCredentialsRepository));
     _ethereumTransactionRequestRepository = ethereumTransactionRequestRepository ?? throw new ArgumentNullException(nameof(ethereumTransactionRequestRepository));
 }
Ejemplo n.º 7
0
 public EthereumCoreCommandHandler(
     ILogFactory logFactory,
     IMatchingEngineClient matchingEngineClient,
     ICashOperationsRepositoryClient cashOperationsRepositoryClient,
     IClientAccountClient clientAccountClient,
     ISrvEmailsFacade srvEmailsFacade,
     IBcnClientCredentialsRepository bcnClientCredentialsRepository,
     IPaymentTransactionsRepository paymentTransactionsRepository,
     ITradeOperationsRepositoryClient clientTradesRepositoryClient,
     IEthereumTransactionRequestRepository ethereumTransactionRequestRepository,
     ITransferOperationsRepositoryClient transferEventsRepositoryClient,
     IAssetsServiceWithCache assetsServiceWithCache,
     ITransactionService transactionService,
     IAssetsService assetsService,
     IEthererumPendingActionsRepository ethererumPendingActionsRepository,
     IExchangeOperationsServiceClient exchangeOperationsServiceClient,
     IClientCommentsRepository clientCommentsRepository,
     IPersonalDataService personalDataService)
 {
     _log = logFactory.CreateLog(this);
     _matchingEngineClient           = matchingEngineClient;
     _cashOperationsRepositoryClient = cashOperationsRepositoryClient;
     _clientAccountClient            = clientAccountClient;
     _srvEmailsFacade = srvEmailsFacade;
     _bcnClientCredentialsRepository       = bcnClientCredentialsRepository;
     _paymentTransactionsRepository        = paymentTransactionsRepository;
     _clientTradesRepositoryClient         = clientTradesRepositoryClient;
     _ethereumTransactionRequestRepository = ethereumTransactionRequestRepository;
     _assetsServiceWithCache         = assetsServiceWithCache;
     _transferEventsRepositoryClient = transferEventsRepositoryClient;
     _transactionService             = transactionService;
     _assetsService = assetsService;
     _ethererumPendingActionsRepository = ethererumPendingActionsRepository;
     _exchangeOperationsServiceClient   = exchangeOperationsServiceClient;
     _clientCommentsRepository          = clientCommentsRepository;
     _personalDataService = personalDataService;
 }
Ejemplo n.º 8
0
 public TransferSaga(
     [NotNull] IEthereumTransactionRequestRepository ethereumTransactionRequestRepository)
 {
     _ethereumTransactionRequestRepository = ethereumTransactionRequestRepository ?? throw new ArgumentNullException(nameof(ethereumTransactionRequestRepository));
 }