コード例 #1
0
 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;
 }
コード例 #2
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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public OffchainCommandHandler(
     [NotNull] IOffchainRequestService offchainRequestService,
     ILogFactory logFactory
     )
 {
     _offchainRequestService = offchainRequestService ?? throw new ArgumentNullException(nameof(offchainRequestService));
     _log = logFactory.CreateLog(this);
 }
コード例 #5
0
 public ManualHubCashoutFunction(IOffchainSettingsRepository offchainSettingsRepository, ILog log, IOffchainRequestService offchainRequestService, ISlackNotificationsSender slackNotificationsSender, IWalletCredentialsRepository walletCredentialsRepository, IBitcoinApi bitcoinApi)
 {
     _offchainSettingsRepository = offchainSettingsRepository;
     _log = log;
     _offchainRequestService      = offchainRequestService;
     _slackNotificationsSender    = slackNotificationsSender;
     _walletCredentialsRepository = walletCredentialsRepository;
     _bitcoinApi = bitcoinApi;
 }
        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;
        }
コード例 #7
0
 public BroadcastCommitmentFunction(IOffchainRequestService offchainRequestService, ILog logger,
                                    IBitcoinApi bitcoinApi, IWalletCredentialsRepository walletCredentialsRepository,
                                    IOffchainSettingsRepository offchainSettingsRepository, ISlackNotificationsSender slackNotificationsSender)
 {
     _offchainRequestService = offchainRequestService;
     _bitcoinApi             = bitcoinApi;
     _logger = logger;
     _walletCredentialsRepository = walletCredentialsRepository;
     _offchainSettingsRepository  = offchainSettingsRepository;
     _slackNotificationsSender    = slackNotificationsSender;
 }
コード例 #8
0
 public TransferQueue(AppSettings.RabbitMqSettings config, ILog log,
                      IBitcoinCommandSender bitcoinCommandSender,
                      ITransferEventsRepository transferEventsRepository,
                      IWalletCredentialsRepository walletCredentialsRepository,
                      IBitCoinTransactionsRepository bitCoinTransactionsRepository, IOffchainRequestService offchainRequestService, IClientSettingsRepository clientSettingsRepository, IBitcoinTransactionService bitcoinTransactionService, IClientAccountsRepository clientAccountsRepository)
 {
     _rabbitConfig                  = config;
     _log                           = log;
     _bitcoinCommandSender          = bitcoinCommandSender;
     _transferEventsRepository      = transferEventsRepository;
     _walletCredentialsRepository   = walletCredentialsRepository;
     _bitCoinTransactionsRepository = bitCoinTransactionsRepository;
     _offchainRequestService        = offchainRequestService;
     _clientSettingsRepository      = clientSettingsRepository;
     _bitcoinTransactionService     = bitcoinTransactionService;
     _clientAccountsRepository      = clientAccountsRepository;
 }
コード例 #9
0
 public OffchainCommandHandler([NotNull] IOffchainRequestService offchainRequestService)
 {
     _offchainRequestService = offchainRequestService ?? throw new ArgumentNullException(nameof(offchainRequestService));
 }