示例#1
0
 public ConsensusReaderFactory(ITransactionReadOnlyExecutionService transactionReadOnlyExecutionService,
                               ISmartContractAddressService smartContractAddressService, IConsensusReaderContextService contextService)
 {
     _transactionReadOnlyExecutionService = transactionReadOnlyExecutionService;
     _smartContractAddressService         = smartContractAddressService;
     _contextService = contextService;
 }
 public AEDPoSInformationProvider(
     IContractReaderFactory <AEDPoSContractContainer.AEDPoSContractStub> contractReaderFactory,
     IConsensusReaderContextService consensusReaderContextService)
 {
     _contractReaderFactory         = contractReaderFactory;
     _consensusReaderContextService = consensusReaderContextService;
 }
示例#3
0
        public MethodStubFactory(ITransactionReadOnlyExecutionService transactionReadOnlyExecutionService,
                                 ISmartContractAddressService smartContractAddressService, IChainContext chainContext,
                                 IConsensusReaderContextService contextService)
        {
            _transactionReadOnlyExecutionService = transactionReadOnlyExecutionService;
            _smartContractAddressService         = smartContractAddressService;
            _chainContext   = chainContext;
            _contextService = contextService;

            FromAddress = AsyncHelper.RunSync(() => _contextService.GetAccountAsync());
        }
        public ConsensusService(IConsensusScheduler consensusScheduler,
                                IContractReaderFactory <ConsensusContractContainer.ConsensusContractStub> contractReaderFactory,
                                ITriggerInformationProvider triggerInformationProvider,
                                IBlockTimeProvider blockTimeProvider, IConsensusReaderContextService consensusReaderContextService)
        {
            _contractReaderFactory         = contractReaderFactory;
            _triggerInformationProvider    = triggerInformationProvider;
            _blockTimeProvider             = blockTimeProvider;
            _consensusReaderContextService = consensusReaderContextService;
            _consensusScheduler            = consensusScheduler;

            Logger        = NullLogger <ConsensusService> .Instance;
            LocalEventBus = NullLocalEventBus.Instance;
        }