Example #1
0
 public TransferService(
     ITransferRepository transferRepository,
     IBlockchainClientProvider blockchainClientProvider)
 {
     _transferRepository       = transferRepository ?? throw new ArgumentNullException(nameof(transferRepository));
     _blockchainClientProvider = blockchainClientProvider ?? throw new ArgumentNullException(nameof(blockchainClientProvider));
 }
Example #2
0
 public BlockchainAddressValidator(
     [NotNull] IBlockchainClientProvider blockchainClientProvider,
     [NotNull] ILogFactory logFactory)
 {
     _blockchainClientProvider = blockchainClientProvider;
     _log = logFactory.CreateLog(this);
 }
 public WalletBalanceValidator(
     [NotNull] IAssetSettingsService assetSettingsService,
     [NotNull] IBlockchainClientProvider blockchainClientProvider,
     [NotNull] ILykkeAssetsResolver lykkeAssetsResolver)
 {
     _assetSettingsService     = assetSettingsService ?? throw new ArgumentNullException(nameof(assetSettingsService));
     _blockchainClientProvider = blockchainClientProvider ?? throw new ArgumentNullException(nameof(blockchainClientProvider));
     _lykkeAssetsResolver      = lykkeAssetsResolver ?? throw new ArgumentNullException(nameof(lykkeAssetsResolver));
 }
 public TransferService(
     [NotNull] ITransferRepository transferRepository,
     [NotNull] IBlockchainClientProvider blockchainClientProvider,
     [NotNull] IAssetSettingsService assetSettingsService,
     [NotNull] ILykkeAssetsResolver lykkeAssetsResolver)
 {
     _transferRepository       = transferRepository ?? throw new ArgumentNullException(nameof(transferRepository));
     _blockchainClientProvider = blockchainClientProvider ?? throw new ArgumentNullException(nameof(blockchainClientProvider));
     _assetSettingsService     = assetSettingsService ?? throw new ArgumentNullException(nameof(assetSettingsService));
     _lykkeAssetsResolver      = lykkeAssetsResolver ?? throw new ArgumentNullException(nameof(lykkeAssetsResolver));
 }
Example #5
0
 public MerchantWalletService(
     [NotNull] IMerchantWalletRespository merchantWalletRespository,
     [NotNull] IAssetSettingsService assetSettingsService,
     [NotNull] IBlockchainClientProvider blockchainClientProvider,
     [NotNull] ILogFactory logFactory,
     [NotNull] IAssetsLocalCache assetsLocalCache)
 {
     _merchantWalletRespository = merchantWalletRespository ??
                                  throw new ArgumentNullException(nameof(merchantWalletRespository));
     _assetSettingsService =
         assetSettingsService ?? throw new ArgumentNullException(nameof(assetSettingsService));
     _blockchainClientProvider = blockchainClientProvider ??
                                 throw new ArgumentNullException(nameof(blockchainClientProvider));
     _assetsLocalCache = assetsLocalCache ?? throw new ArgumentNullException(nameof(assetsLocalCache));
     _log = logFactory.CreateLog(this);
 }
Example #6
0
 public WalletManager(
     IVirtualWalletService virtualWalletService,
     IList <BlockchainWalletAllocationPolicy> walletAllocationSettings,
     IBcnWalletUsageService bcnWalletUsageService,
     IWalletEventsPublisher walletEventsPublisher,
     IBlockchainClientProvider blockchainClientProvider,
     ITransactionsService transactionsService,
     ILog log)
 {
     _virtualWalletService     = virtualWalletService;
     _walletAllocationSettings = walletAllocationSettings;
     _bcnWalletUsageService    = bcnWalletUsageService;
     _walletEventsPublisher    = walletEventsPublisher;
     _blockchainClientProvider = blockchainClientProvider;
     _transactionsService      = transactionsService;
     _log = log;
 }
Example #7
0
 public WalletManager(
     [NotNull] IVirtualWalletService virtualWalletService,
     [NotNull] IList <BlockchainWalletAllocationPolicy> walletAllocationSettings,
     [NotNull] IBcnWalletUsageService bcnWalletUsageService,
     [NotNull] IWalletEventsPublisher walletEventsPublisher,
     [NotNull] IBlockchainClientProvider blockchainClientProvider,
     [NotNull] ITransactionsService transactionsService,
     [NotNull] IAssetSettingsService assetSettingsService,
     [NotNull] ILogFactory logFactory)
 {
     _virtualWalletService     = virtualWalletService ?? throw new ArgumentNullException(nameof(virtualWalletService));
     _walletAllocationSettings = walletAllocationSettings ?? throw new ArgumentNullException(nameof(walletAllocationSettings));
     _bcnWalletUsageService    = bcnWalletUsageService ?? throw new ArgumentNullException(nameof(bcnWalletUsageService));
     _walletEventsPublisher    = walletEventsPublisher ?? throw new ArgumentNullException(nameof(walletEventsPublisher));
     _blockchainClientProvider = blockchainClientProvider ?? throw new ArgumentNullException(nameof(blockchainClientProvider));
     _transactionsService      = transactionsService ?? throw new ArgumentNullException(nameof(transactionsService));
     _assetSettingsService     = assetSettingsService ?? throw new ArgumentNullException(nameof(assetSettingsService));
     _log = logFactory.CreateLog(this);
 }
Example #8
0
 public BlockchainAddressValidator(IBlockchainClientProvider blockchainClientProvider, ILog log)
 {
     _blockchainClientProvider = blockchainClientProvider;
     _log = log;
 }