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;
 }
 public OffchainRequestService(IOffchainRequestRepository offchainRequestRepository, IOffchainTransferRepository offchainTransferRepository, IClientSettingsRepository clientSettingsRepository, IClientAccountsRepository clientAccountsRepository, IAppNotifications appNotifications)
 {
     _offchainRequestRepository  = offchainRequestRepository;
     _offchainTransferRepository = offchainTransferRepository;
     _clientSettingsRepository   = clientSettingsRepository;
     _clientAccountsRepository   = clientAccountsRepository;
     _appNotifications           = appNotifications;
 }
示例#3
0
 public NotificationSenderBase(
     IAppNotifications appNotifications,
     IClientAccountService clientAccountService,
     IAssetsCache assetsCache)
 {
     _appNotifications     = appNotifications;
     _clientAccountService = clientAccountService;
     _assetsCache          = assetsCache;
 }
        public OffchainTransactionFinalizeFunction(
            IBitCoinTransactionsRepository bitCoinTransactionsRepository,
            ILog log,
            ICashOperationsRepository cashOperationsRepository,
            IExchangeOperationsService exchangeOperationsService,
            SrvSlackNotifications srvSlackNotifications,
            ICashOutAttemptRepository cashOutAttemptRepository,
            ISrvEmailsFacade srvEmailsFacade,
            IClientTradesRepository clientTradesRepository,
            IClientAccountsRepository clientAccountsRepository,
            IPersonalDataService personalDataService,
            IOffchainTransferRepository offchainTransferRepository,
            IChronoBankService chronoBankService,
            ISrvSolarCoinHelper srvSolarCoinHelper,
            ITransferEventsRepository transferEventsRepository,
            IQuantaService quantaService,
            IOffchainRequestService offchainRequestService,
            IWalletCredentialsRepository walletCredentialsRepository,
            IBitcoinApiClient bitcoinApiClient,
            IOffchainRequestRepository offchainRequestRepository,
            CachedDataDictionary <string, IAssetSetting> assetSettings,
            IMarginDataServiceResolver marginDataServiceResolver,
            IMarginTradingPaymentLogRepository marginTradingPaymentLog,
            IPaymentTransactionsRepository paymentTransactionsRepository,
            IAppNotifications appNotifications,
            ICachedAssetsService assetsService, IBitcoinTransactionService bitcoinTransactionService)
        {
            _bitCoinTransactionsRepository = bitCoinTransactionsRepository;
            _log = log;
            _cashOperationsRepository   = cashOperationsRepository;
            _exchangeOperationsService  = exchangeOperationsService;
            _srvSlackNotifications      = srvSlackNotifications;
            _cashOutAttemptRepository   = cashOutAttemptRepository;
            _srvEmailsFacade            = srvEmailsFacade;
            _clientTradesRepository     = clientTradesRepository;
            _clientAccountsRepository   = clientAccountsRepository;
            _personalDataService        = personalDataService;
            _offchainTransferRepository = offchainTransferRepository;
            _chronoBankService          = chronoBankService;
            _srvSolarCoinHelper         = srvSolarCoinHelper;
            _transferEventsRepository   = transferEventsRepository;
            _quantaService               = quantaService;
            _offchainRequestService      = offchainRequestService;
            _walletCredentialsRepository = walletCredentialsRepository;
            _bitcoinApiClient            = bitcoinApiClient;
            _offchainRequestRepository   = offchainRequestRepository;
            _assetSettings               = assetSettings;

            _marginDataServiceResolver     = marginDataServiceResolver;
            _marginTradingPaymentLog       = marginTradingPaymentLog;
            _paymentTransactionsRepository = paymentTransactionsRepository;
            _appNotifications          = appNotifications;
            _assetsService             = assetsService;
            _bitcoinTransactionService = bitcoinTransactionService;
        }
示例#5
0
 public ClientSignRequestHandler(IUnsignedTransactionsRepository unsignedTransactionsRepository, IBitCoinTransactionsRepository bitCoinTransactionsRepository,
                                 ILog log, AppSettings.ClientSignRequestHandlerSettings settings, ISignedMultisigTransactionsSender signedMultisigTransactionsSender,
                                 IAppNotifications appNotifications, IClientAccountsRepository clientAccountsRepository)
 {
     _unsignedTransactionsRepository = unsignedTransactionsRepository;
     _bitCoinTransactionsRepository  = bitCoinTransactionsRepository;
     _log      = log;
     _settings = settings;
     _signedMultisigTransactionsSender = signedMultisigTransactionsSender;
     _appNotifications         = appNotifications;
     _clientAccountsRepository = clientAccountsRepository;
 }
示例#6
0
 public MarginCallConsumer(IThreadSwitcher threadSwitcher,
                           IAppNotifications appNotifications,
                           IEmailService emailService,
                           IClientAccountService clientAccountService,
                           IMarginTradingOperationsLogService operationsLogService,
                           IRabbitMqNotifyService rabbitMqNotifyService,
                           IDateService dateService,
                           IAssetsCache assetsCache)
     : base(appNotifications, clientAccountService, assetsCache)
 {
     _threadSwitcher        = threadSwitcher;
     _emailService          = emailService;
     _clientAccountService  = clientAccountService;
     _operationsLogService  = operationsLogService;
     _rabbitMqNotifyService = rabbitMqNotifyService;
     _dateService           = dateService;
 }
示例#7
0
 public OrderStateConsumer(IThreadSwitcher threadSwitcher,
                           IClientNotifyService clientNotifyService,
                           IAccountsCacheService accountsCacheService,
                           IAppNotifications appNotifications,
                           IClientAccountService clientAccountService,
                           AccountManager accountManager,
                           IRabbitMqNotifyService rabbitMqNotifyService,
                           IAssetsCache assetsCache)
     : base(appNotifications,
            clientAccountService,
            assetsCache)
 {
     _threadSwitcher        = threadSwitcher;
     _clientNotifyService   = clientNotifyService;
     _accountsCacheService  = accountsCacheService;
     _accountManager        = accountManager;
     _rabbitMqNotifyService = rabbitMqNotifyService;
 }
 public NotificationsHandler([NotNull] IAppNotifications appNotifications)
 {
     _appNotifications = appNotifications ?? throw new ArgumentNullException(nameof(appNotifications));
 }