public ContractEventDiscoveryService(IBlockchainService blockchainService,
                                      ITransactionResultQueryService transactionResultQueryService)
 {
     _blockchainService             = blockchainService;
     _transactionResultQueryService = transactionResultQueryService;
     LocalEventBus = NullLocalEventBus.Instance;
     Logger        = NullLogger <ContractEventDiscoveryService <T> > .Instance;
 }
예제 #2
0
 public LogEventListeningService(IBlockchainService blockchainService,
                                 ITransactionResultQueryService transactionResultQueryService,
                                 IServiceContainer <ILogEventHandler> eventHandlers)
 {
     _blockchainService             = blockchainService;
     _transactionResultQueryService = transactionResultQueryService;
     _eventHandlers = eventHandlers.ToLookup(p => p.GetType()).Select(coll => coll.First()).ToList();
 }
 public IrreversibleBlockRelatedEventsDiscoveryService(IBlockchainService blockchainService,
                                                       ITransactionResultQueryService transactionResultQueryService,
                                                       ISmartContractAddressService smartContractAddressService)
 {
     _blockchainService             = blockchainService;
     _transactionResultQueryService = transactionResultQueryService;
     _smartContractAddressService   = smartContractAddressService;
     LocalEventBus = NullLocalEventBus.Instance;
     Logger        = NullLogger <IrreversibleBlockRelatedEventsDiscoveryService> .Instance;
 }
 public PrimaryTokenSymbolDiscoveryService(IBlockchainService blockchainService,
                                           ITransactionResultQueryService transactionResultQueryService,
                                           ISmartContractAddressService smartContractAddressService)
 {
     _blockchainService             = blockchainService;
     _transactionResultQueryService = transactionResultQueryService;
     _smartContractAddressService   = smartContractAddressService;
     LocalEventBus = NullLocalEventBus.Instance;
     Logger        = NullLogger <PrimaryTokenSymbolDiscoveryService> .Instance;
 }
예제 #5
0
 public SmartContractExecutiveServiceTests()
 {
     _smartContractExecutiveService     = GetRequiredService <SmartContractExecutiveService>();
     _smartContractHelper               = GetRequiredService <SmartContractHelper>();
     _smartContractRegistrationProvider = GetRequiredService <ISmartContractRegistrationProvider>();
     _defaultContractZeroCodeProvider   = GetRequiredService <IDefaultContractZeroCodeProvider>();
     _smartContractExecutiveProvider    = GetRequiredService <ISmartContractExecutiveProvider>();
     _transactionResultQueryService     = GetRequiredService <ITransactionResultQueryService>();
     _kernelTestHelper = GetRequiredService <KernelTestHelper>();
 }
 public LogEventProcessorTests()
 {
     _contractDeployedLogEventProcessor = GetRequiredService <ContractDeployedLogEventProcessor>();
     _codeUpdatedLogEventProcessor      = GetRequiredService <CodeUpdatedLogEventProcessor>();
     _smartContractAddressService       = GetRequiredService <ISmartContractAddressService>();
     _smartContractExecutionHelper      = GetRequiredService <SmartContractExecutionHelper>();
     _transactionResultQueryService     = GetRequiredService <ITransactionResultQueryService>();
     _blockchainService                 = GetRequiredService <IBlockchainService>();
     _smartContractAddressProvider      = GetRequiredService <ISmartContractAddressProvider>();
     _smartContractRegistrationProvider = GetRequiredService <ISmartContractRegistrationProvider>();
 }
예제 #7
0
        public BlockChainAppService(IBlockchainService blockchainService,
                                    ISmartContractAddressService smartContractAddressService,
                                    ITransactionReadOnlyExecutionService transactionReadOnlyExecutionService,
                                    ITransactionManager transactionManager,
                                    ITransactionResultQueryService transactionResultQueryService,
                                    ITxHub txHub,
                                    IBlockchainStateManager blockchainStateManager
                                    )
        {
            _blockchainService                   = blockchainService;
            _smartContractAddressService         = smartContractAddressService;
            _transactionReadOnlyExecutionService = transactionReadOnlyExecutionService;
            _transactionManager                  = transactionManager;
            _transactionResultQueryService       = transactionResultQueryService;
            _txHub = txHub;
            _blockchainStateManager = blockchainStateManager;

            Logger        = NullLogger <BlockChainAppService> .Instance;
            LocalEventBus = NullLocalEventBus.Instance;
        }
 public TransactionResultProxyService(ITransactionPoolService transactionPoolService,
                                      ITransactionResultQueryService transactionResultQueryService)
 {
     TransactionPoolService        = transactionPoolService;
     TransactionResultQueryService = transactionResultQueryService;
 }
예제 #9
0
 public LogEventListeningService(ITransactionResultQueryService transactionResultQueryService,
                                 IServiceContainer <T> logEventProcessors)
 {
     _transactionResultQueryService = transactionResultQueryService;
     _logEventProcessors            = logEventProcessors.ToLookup(p => p.GetType()).Select(coll => coll.First()).ToList();
 }
예제 #10
0
 public TransactionResultProxyService(ITxHub txHub, ITransactionResultQueryService transactionResultQueryService)
 {
     TxHub = txHub;
     TransactionResultQueryService = transactionResultQueryService;
 }