public OffchainTransactionBuilderService(
     ITransactionBuildHelper transactionBuildHelper,
     RpcConnectionParams connectionParams,
     IMultisigService multisigService,
     IBitcoinOutputsService bitcoinOutputsService,
     IOffchainChannelRepository offchainChannelRepository,
     ISignatureVerifier signatureVerifier,
     Func <SignatureApiProviderType, ISignatureApiProvider> signatureApiProviderFactory,
     ICommitmentRepository commitmentRepository,
     IPregeneratedOutputsQueueFactory pregeneratedOutputsQueueFactory,
     IBroadcastedOutputRepository broadcastedOutputRepository,
     ILykkeTransactionBuilderService lykkeTransactionBuilderService,
     IRpcBitcoinClient rpcBitcoinClient)
 {
     _transactionBuildHelper          = transactionBuildHelper;
     _connectionParams                = connectionParams;
     _multisigService                 = multisigService;
     _bitcoinOutputsService           = bitcoinOutputsService;
     _offchainChannelRepository       = offchainChannelRepository;
     _signatureVerifier               = signatureVerifier;
     _signatureApiProvider            = signatureApiProviderFactory(SignatureApiProviderType.Exchange);
     _commitmentRepository            = commitmentRepository;
     _pregeneratedOutputsQueueFactory = pregeneratedOutputsQueueFactory;
     _broadcastedOutputRepository     = broadcastedOutputRepository;
     _lykkeTransactionBuilderService  = lykkeTransactionBuilderService;
     _rpcBitcoinClient                = rpcBitcoinClient;
 }
 public CashoutCommandHandler(
     ILykkeTransactionBuilderService builder,
     ITransactionQueueWriter transactionQueueWriter,
     ICashoutRequestRepository cashoutRequestRepository,
     CachedDataDictionary <string, IAssetSetting> assetSettingCache,
     ILog logger)
 {
     _builder = builder;
     _transactionQueueWriter   = transactionQueueWriter;
     _cashoutRequestRepository = cashoutRequestRepository;
     _assetSettingCache        = assetSettingCache;
     _logger = logger;
 }
 public TransactionBuildFunction(ILykkeTransactionBuilderService lykkeTransactionBuilderService,
                                 IAssetRepository assetRepository,
                                 Func <string, IQueueExt> queueFactory, BaseSettings settings, ILog logger, ITransactionBlobStorage transactionBlobStorage,
                                 ITransactionSignRequestRepository signRequestRepository, ICqrsEngine cqrsEngine)
 {
     _lykkeTransactionBuilderService = lykkeTransactionBuilderService;
     _assetRepository        = assetRepository;
     _queueFactory           = queueFactory;
     _settings               = settings;
     _logger                 = logger;
     _transactionBlobStorage = transactionBlobStorage;
     _signRequestRepository  = signRequestRepository;
     _cqrsEngine             = cqrsEngine;
 }
Esempio n. 4
0
        public EnqueueTransactionController(ILykkeTransactionBuilderService builder,
                                            CachedDataDictionary <string, IAssetSetting> assetSettingCache,

                                            IOffchainService offchainService,
                                            ICashoutRequestRepository cashoutRequestRepository,
                                            ITransactionQueueWriter transactionQueueWriter, CachedDataDictionary <string, IAsset> assetRepository)
        {
            _builder                  = builder;
            _assetSettingCache        = assetSettingCache;
            _offchainService          = offchainService;
            _cashoutRequestRepository = cashoutRequestRepository;
            _transactionQueueWriter   = transactionQueueWriter;
            _assetRepository          = assetRepository;
        }
Esempio n. 5
0
 public TransactionController(ILykkeTransactionBuilderService builder,
                              IAssetRepository assetRepository,
                              ISignatureApiProvider signatureApiProvider,
                              ITransactionSignRequestRepository transactionSignRequestRepository,
                              ITransactionBlobStorage transactionBlobStorage,
                              IBitcoinBroadcastService broadcastService, IBroadcastedTransactionRepository broadcastedTransactionRepository, IOffchainService offchainService)
 {
     _builder                          = builder;
     _assetRepository                  = assetRepository;
     _signatureApiProvider             = signatureApiProvider;
     _transactionSignRequestRepository = transactionSignRequestRepository;
     _transactionBlobStorage           = transactionBlobStorage;
     _broadcastService                 = broadcastService;
     _broadcastedTransactionRepository = broadcastedTransactionRepository;
     _offchainService                  = offchainService;
 }
 public MultipleCashoutFunction(ICashoutRequestRepository cashoutRequestRepository,
                                ISettingsRepository settingsRepository, IMultiCashoutRepository multiCashoutRepository,
                                ISlackNotifier slackNotifier, IBitcoinTransactionService bitcoinTransactionService,
                                ISignatureApiProvider signatureApiProvider,
                                ILykkeTransactionBuilderService lykkeTransactionBuilderService,
                                IBitcoinBroadcastService bitcoinBroadcastService,
                                ISpentOutputService spentOutputService,
                                ICqrsEngine cqrsEngine)
 {
     _cashoutRequestRepository  = cashoutRequestRepository;
     _settingsRepository        = settingsRepository;
     _multiCashoutRepository    = multiCashoutRepository;
     _slackNotifier             = slackNotifier;
     _bitcoinTransactionService = bitcoinTransactionService;
     _signatureApi = signatureApiProvider;
     _lykkeTransactionBuilderService = lykkeTransactionBuilderService;
     _bitcoinBroadcastService        = bitcoinBroadcastService;
     _spentOutputService             = spentOutputService;
     _cqrsEngine = cqrsEngine;
 }
Esempio n. 7
0
 public CashinCommandHandler(ILykkeTransactionBuilderService builder, ITransactionQueueWriter transactionQueueWriter, ILog logger)
 {
     _builder = builder;
     _transactionQueueWriter = transactionQueueWriter;
     _logger = logger;
 }