Exemple #1
0
 public RetrieveClientCommandHandler(
     IChaosKitty chaosKitty,
     IBlockchainWalletsClient walletsClient)
 {
     _chaosKitty    = chaosKitty;
     _walletsClient = walletsClient;
 }
 public AddressExtensionService(
     IBlockchainWalletsClient blockchainWalletsClient,
     IDistributedCache distributedCache,
     TimeSpan cacheTime)
 {
     _cacheTime = cacheTime;
     _blockchainWalletsClient = blockchainWalletsClient;
     _distributedCache        = distributedCache;
 }
Exemple #3
0
 public EnrollToMatchingEngineCommandsHandler(
     IChaosKitty chaosKitty,
     ILogFactory logFactory,
     IBlockchainWalletsClient walletsClient,
     IMatchingEngineCallsDeduplicationRepository deduplicationRepository,
     IMatchingEngineClient meClient)
 {
     _chaosKitty = chaosKitty ?? throw new ArgumentNullException(nameof(chaosKitty));
     _log        = logFactory.CreateLog(this);
     _deduplicationRepository = deduplicationRepository ?? throw new ArgumentNullException(nameof(deduplicationRepository));
     _meClient = meClient ?? throw new ArgumentNullException(nameof(meClient));
 }
Exemple #4
0
 public EnrollToMatchingEngineCommandsHandler(
     IChaosKitty chaosKitty,
     ILogFactory logFactory,
     IBlockchainWalletsClient walletsClient,
     IMatchingEngineCallsDeduplicationRepository deduplicationRepository,
     IMatchingEngineClient meClient)
 {
     _chaosKitty              = chaosKitty;
     _log                     = logFactory.CreateLog(this);
     _walletsClient           = walletsClient;
     _deduplicationRepository = deduplicationRepository;
     _meClient                = meClient;
 }
Exemple #5
0
 public WithdrawalsController(
     ILog log,
     IAssetsHelper assetsHelper,
     IBlockchainWalletsClient blockchainWalletsClient,
     IBlockchainCashoutPreconditionsCheckClient blockchainCashoutPreconditionsCheckClient,
     IFeeCalculatorClient feeCalculatorClient,
     IRequestContext requestContext)
 {
     _log                     = log;
     _assetsHelper            = assetsHelper;
     _blockchainWalletsClient = blockchainWalletsClient;
     _blockchainCashoutPreconditionsCheckClient = blockchainCashoutPreconditionsCheckClient;
     _feeCalculatorClient = feeCalculatorClient;
     _requestContext      = requestContext;
 }
 public ValidationService(IBlockchainApiClientProvider blockchainApiClientProvider,
                          IAssetsServiceWithCache assetsService,
                          IBlockchainSettingsProvider blockchainSettingsProvider,
                          IBlockchainWalletsClient blockchainWalletsClient,
                          IBlackListService blackListService,
                          AddressExtensionService addressExtensionService,
                          IBlockchainWalletsCacheService blockchainWalletsCacheService)
 {
     _blockchainApiClientProvider = blockchainApiClientProvider;
     _assetsService = assetsService;
     _blockchainSettingsProvider    = blockchainSettingsProvider;
     _blackListService              = blackListService;
     _blockchainWalletsClient       = blockchainWalletsClient;
     _addressExtensionService       = addressExtensionService;
     _blockchainWalletsCacheService = blockchainWalletsCacheService;
 }
Exemple #7
0
 public AcceptCashoutCommandsHandler(
     IChaosKitty chaosKitty,
     ICashoutsBatchRepository cashoutsBatchRepository,
     IClosedBatchedCashoutRepository closedBatchedCashoutRepository,
     IActiveCashoutsBatchIdRepository activeCashoutsBatchIdRepository,
     IBlockchainConfigurationsProvider blockchainConfigurationProvider,
     IBlockchainWalletsClient walletsClient,
     CqrsSettings cqrsSettings,
     bool disableDirectCrossClientCashouts)
 {
     _chaosKitty = chaosKitty;
     _cashoutsBatchRepository         = cashoutsBatchRepository;
     _closedBatchedCashoutRepository  = closedBatchedCashoutRepository;
     _activeCashoutsBatchIdRepository = activeCashoutsBatchIdRepository;
     _blockchainConfigurationProvider = blockchainConfigurationProvider ?? throw new ArgumentNullException(nameof(blockchainConfigurationProvider));
     _walletsClient = walletsClient ?? throw new ArgumentNullException(nameof(walletsClient));
     _cqrsSettings  = cqrsSettings;
     _disableDirectCrossClientCashouts = disableDirectCrossClientCashouts;
 }
Exemple #8
0
 public WithdrawalsController(
     ILog log,
     IAssetsHelper assetsHelper,
     IBlockchainWalletsClient blockchainWalletsClient,
     IBlockchainCashoutPreconditionsCheckClient blockchainCashoutPreconditionsCheckClient,
     IFeeCalculatorClient feeCalculatorClient,
     IPersonalDataService personalDataService,
     BlockedWithdawalSettings blockedWithdawalSettings,
     IRequestContext requestContext,
     ISiriusWalletsService siriusWalletsService
     )
 {
     _log                     = log;
     _assetsHelper            = assetsHelper;
     _blockchainWalletsClient = blockchainWalletsClient;
     _blockchainCashoutPreconditionsCheckClient = blockchainCashoutPreconditionsCheckClient;
     _feeCalculatorClient      = feeCalculatorClient;
     _personalDataService      = personalDataService;
     _blockedWithdawalSettings = blockedWithdawalSettings;
     _requestContext           = requestContext;
     _siriusWalletsService     = siriusWalletsService;
 }
Exemple #9
0
        public DepositsController(
            IPaymentSystemClient paymentSystemService,
            Link4PayService.Link4PayServiceClient link4PayServiceClient,
            IFeeCalculatorClient feeCalculatorClient,
            IAssetsHelper assetsHelper,
            IBlockchainWalletsClient blockchainWalletsClient,
            IClientDialogsClient clientDialogsClient,
            ISwiftCredentialsClient swiftCredentialsClient,
            IKycStatusService kycStatusService,
            IPersonalDataService personalDataService,
            ILimitationsServiceClient limitationsServiceClient,
            IClientAccountClient clientAccountClient,
            IRequestContext requestContext,
            ISrvBlockchainHelper srvBlockchainHelper,
            ISiriusWalletsService siriusWalletsService)
        {
            _paymentSystemService     = paymentSystemService;
            _link4PayServiceClient    = link4PayServiceClient;
            _feeCalculatorClient      = feeCalculatorClient;
            _assetsHelper             = assetsHelper;
            _blockchainWalletsClient  = blockchainWalletsClient;
            _clientDialogsClient      = clientDialogsClient;
            _swiftCredentialsClient   = swiftCredentialsClient;
            _kycStatusService         = kycStatusService;
            _personalDataService      = personalDataService;
            _limitationsServiceClient = limitationsServiceClient;
            _clientAccountClient      = clientAccountClient;
            _requestContext           = requestContext;
            _srvBlockchainHelper      = srvBlockchainHelper;
            _siriusWalletsService     = siriusWalletsService;

            _coloredAssetIds = new[]
            {
                LykkeConstants.LykkeAssetId,
                LykkeConstants.LykkeForwardAssetId,
                LykkeConstants.HcpAssetId
            }.ToHashSet();
        }