public MonitoringTransferContracts(IBaseSettings settings,
                                    IErcInterfaceService ercInterfaceService,
                                    ITransferContractRepository transferContractsRepository,
                                    ILog logger,
                                    IPaymentService paymentService,
                                    IUserPaymentRepository userPaymentRepository,
                                    TransferContractService transferContractService,
                                    IUserTransferWalletRepository userTransferWalletRepository,
                                    ITransferContractTransactionService transferContractTransactionService,
                                    IEthereumTransactionService ethereumTransactionService,
                                    ITransferContractUserAssignmentQueueService transferContractUserAssignmentQueueService,
                                    IUserAssignmentFailRepository userAssignmentFailRepository,
                                    IQueueFactory queueFactory,
                                    ISlackNotifier slackNotifier
                                    )
 {
     _util = new AddressUtil();
     _ethereumTransactionService = ethereumTransactionService;
     _ercInterfaceService        = ercInterfaceService;
     _settings = settings;
     _transferContractsRepository = transferContractsRepository;
     _logger                                     = logger;
     _paymentService                             = paymentService;
     _userPaymentRepository                      = userPaymentRepository;
     _transferContractService                    = transferContractService;
     _userTransferWalletRepository               = userTransferWalletRepository;
     _transferContractTransactionService         = transferContractTransactionService;
     _transferContractUserAssignmentQueueService = transferContractUserAssignmentQueueService;
     _userAssignmentFailRepository               = userAssignmentFailRepository;
     _queueUserAssignment                        = queueFactory.Build(Constants.TransferContractUserAssignmentQueueName);
     _slackNotifier                              = slackNotifier;
 }
예제 #2
0
 public TransferContractUserAssignmentJob(IBaseSettings settings,
     ILog logger,
     ITransferContractUserAssignmentQueueService transferContractUserAssignmentQueueService,
     ICoinRepository coinRepository,
     ITransferContractService transferContractService
     )
 {
     _transferContractService = transferContractService;
     _settings = settings;
     _logger = logger;
     _transferContractUserAssignmentQueueService = transferContractUserAssignmentQueueService;
     _coinRepository = coinRepository;
 }
예제 #3
0
 public TransferContractService(IContractService contractService,
                                ITransferContractRepository transferContractRepository,
                                ICoinRepository coinRepository,
                                IBaseSettings settings,
                                ITransferContractQueueServiceFactory transferContractQueueServiceFactory,
                                ITransferContractUserAssignmentQueueService transferContractUserAssignmentQueueService,
                                IPaymentService paymentService,
                                Web3 web3,
                                IErcInterfaceService ercInterfaceService
                                )
 {
     _paymentService                             = paymentService;
     _web3                                       = web3;
     _coinRepository                             = coinRepository;
     _contractService                            = contractService;
     _transferContractRepository                 = transferContractRepository;
     _settings                                   = settings;
     _transferContractQueueServiceFactory        = transferContractQueueServiceFactory;
     _transferContractUserAssignmentQueueService = transferContractUserAssignmentQueueService;
     _ercInterfaceService                        = ercInterfaceService;
 }