public SymbolListToPayTxFeeUpdatedLogEventProcessor(ISmartContractAddressService smartContractAddressService,
                                                     ITransactionSizeFeeSymbolsProvider transactionSizeFeeSymbolsProvider)
 {
     _smartContractAddressService       = smartContractAddressService;
     _transactionSizeFeeSymbolsProvider = transactionSizeFeeSymbolsProvider;
     Logger = NullLogger <SymbolListToPayTxFeeUpdatedLogEventProcessor> .Instance;
 }
 public CrossChainIndexingDataProposedLogEventProcessor(ISmartContractAddressService smartContractAddressService,
                                                        ICrossChainIndexingDataValidationService crossChainIndexingDataValidationService, IProposalService proposalService)
 {
     _smartContractAddressService             = smartContractAddressService;
     _crossChainIndexingDataValidationService = crossChainIndexingDataValidationService;
     _proposalService = proposalService;
 }
 public ConstrainedAEDPoSTransactionValidationProvider(ISmartContractAddressService smartContractAddressService,
                                                       ISystemTransactionMethodNameListProvider coreTransactionMethodNameListProvider)
 {
     _coreTransactionMethodNameListProvider = coreTransactionMethodNameListProvider;
     _consensusContractAddress =
         smartContractAddressService.GetAddressByContractName(ConsensusSmartContractAddressNameProvider.Name);
 }
Example #4
0
 public BlockTransactionLimitChangedLogEventProcessor(ISmartContractAddressService smartContractAddressService,
                                                      IBlockTransactionLimitProvider blockTransactionLimitProvider)
 {
     _smartContractAddressService   = smartContractAddressService;
     _blockTransactionLimitProvider = blockTransactionLimitProvider;
     Logger = NullLogger <BlockTransactionLimitChangedLogEventProcessor> .Instance;
 }
Example #5
0
 public ResourceTokenChargedLogEventProcessor(ISmartContractAddressService smartContractAddressService,
                                              ITotalResourceTokensMapsProvider totalTotalResourceTokensMapsProvider)
 {
     _smartContractAddressService          = smartContractAddressService;
     _totalTotalResourceTokensMapsProvider = totalTotalResourceTokensMapsProvider;
     Logger = NullLogger <ResourceTokenChargedLogEventProcessor> .Instance;
 }
Example #6
0
 public ConsensusReaderFactory(ITransactionReadOnlyExecutionService transactionReadOnlyExecutionService,
                               ISmartContractAddressService smartContractAddressService, IConsensusReaderContextService contextService)
 {
     _transactionReadOnlyExecutionService = transactionReadOnlyExecutionService;
     _smartContractAddressService         = smartContractAddressService;
     _contextService = contextService;
 }
 public ConsensusReaderContextService(IBlockTimeProvider blockTimeProvider, IAccountService accountService,
                                      ISmartContractAddressService smartContractAddressService)
 {
     _blockTimeProvider           = blockTimeProvider;
     _accountService              = accountService;
     _smartContractAddressService = smartContractAddressService;
 }
        public ConstrainedAEDPoSTransactionValidationProvider(ISmartContractAddressService smartContractAddressService)
        {
            _consensusContractAddress =
                smartContractAddressService.GetAddressByContractName(ConsensusSmartContractAddressNameProvider.Name);

            Logger = NullLogger <ConstrainedAEDPoSTransactionValidationProvider> .Instance;
        }
Example #9
0
 public CodeCheckRequiredLogEventProcessor(ISmartContractAddressService smartContractAddressService,
                                           ICodeCheckService codeCheckService, IProposalService proposalService)
 {
     _smartContractAddressService = smartContractAddressService;
     _codeCheckService            = codeCheckService;
     _proposalService             = proposalService;
 }
Example #10
0
 public TokenContractMethodStubFactory(ITransactionReadOnlyExecutionService transactionReadOnlyExecutionService,
                                       ISmartContractAddressService smartContractAddressService, IChainContext chainContext)
 {
     _transactionReadOnlyExecutionService = transactionReadOnlyExecutionService;
     _smartContractAddressService         = smartContractAddressService;
     _chainContext = chainContext;
 }
 public TransactionFeeChargedLogEventProcessor(ISmartContractAddressService smartContractAddressService,
                                               ITotalTransactionFeesMapProvider totalTransactionFeesMapProvider)
 {
     _smartContractAddressService     = smartContractAddressService;
     _totalTransactionFeesMapProvider = totalTransactionFeesMapProvider;
     Logger = NullLogger <TransactionFeeChargedLogEventProcessor> .Instance;
 }
Example #12
0
        public CodeCheckRequiredLogEventHandler(ISmartContractAddressService smartContractAddressService,
                                                ICodeCheckService codeCheckService)
        {
            _smartContractAddressService = smartContractAddressService;

            _codeCheckService = codeCheckService;
        }
Example #13
0
 public SymbolListToPayTxFeeUpdatedEventHandler(ISmartContractAddressService smartContractAddressService,
                                                ISymbolListToPayTxFeeService symbolListToPayTxFeeService)
 {
     _smartContractAddressService = smartContractAddressService;
     _symbolListToPayTxFeeService = symbolListToPayTxFeeService;
     Logger = NullLogger <SymbolListToPayTxFeeUpdatedEventHandler> .Instance;
 }
Example #14
0
 public CrossChainValidationProviderTest()
 {
     _crossChainBlockValidationProvider = GetRequiredService <IBlockValidationProvider>();
     _crossChainTestHelper        = GetRequiredService <CrossChainTestHelper>();
     _kernelTestHelper            = GetRequiredService <KernelTestHelper>();
     _smartContractAddressService = GetRequiredService <ISmartContractAddressService>();
 }
 public SmartContractService(
     ISmartContractRunnerContainer smartContractRunnerContainer,
     ISmartContractAddressService smartContractAddressService)
 {
     _smartContractRunnerContainer = smartContractRunnerContainer;
     _smartContractAddressService  = smartContractAddressService;
 }
Example #16
0
 public SecretSharingInformationLogEventProcessor(
     ISmartContractAddressService smartContractAddressService,
     ISecretSharingService secretSharingService)
 {
     _smartContractAddressService = smartContractAddressService;
     _secretSharingService        = secretSharingService;
 }
Example #17
0
        public OSTestHelper(IOsBlockchainNodeContextService osBlockchainNodeContextService,
                            IAccountService accountService,
                            IMinerService minerService,
                            IBlockchainService blockchainService,
                            ITxHub txHub,
                            ISmartContractAddressService smartContractAddressService,
                            IBlockAttachService blockAttachService,
                            IStaticChainInformationProvider staticChainInformationProvider,
                            ITransactionResultService transactionResultService,
                            IOptionsSnapshot <ChainOptions> chainOptions)
        {
            _chainOptions = chainOptions.Value;
            _osBlockchainNodeContextService = osBlockchainNodeContextService;
            _accountService              = accountService;
            _minerService                = minerService;
            _blockchainService           = blockchainService;
            _smartContractAddressService = smartContractAddressService;
            _blockAttachService          = blockAttachService;
            _txHub = txHub;
            _staticChainInformationProvider = staticChainInformationProvider;
            _transactionResultService       = transactionResultService;

            BestBranchBlockList     = new List <Block>();
            ForkBranchBlockList     = new List <Block>();
            UnlinkedBranchBlockList = new List <Block>();
        }
Example #18
0
 public BlockMiningService(IServiceProvider serviceProvider)
 {
     RegisterAssemblyResolveEvent();
     _contractTesterFactory       = serviceProvider.GetRequiredService <IContractTesterFactory>();
     _smartContractAddressService = serviceProvider.GetRequiredService <ISmartContractAddressService>();
     _testDataProvider            = serviceProvider.GetRequiredService <ITestDataProvider>();
 }
Example #19
0
 public AEDPoSReaderFactory(ITransactionReadOnlyExecutionService transactionReadOnlyExecutionService,
                            ISmartContractAddressService smartContractAddressService, IBlockTimeProvider blockTimeProvider)
 {
     _transactionReadOnlyExecutionService = transactionReadOnlyExecutionService;
     _smartContractAddressService         = smartContractAddressService;
     _blockTimeProvider = blockTimeProvider;
 }
Example #20
0
 public CrossChainIndexingTransactionGeneratorTest()
 {
     _crossChainIndexingTransactionGenerator = GetRequiredService <ISystemTransactionGenerator>();
     _smartContractAddressService            = GetRequiredService <ISmartContractAddressService>();
     _crossChainTestHelper = GetRequiredService <CrossChainTestHelper>();
     _blockStateSetManger  = GetRequiredService <IBlockStateSetManger>();
 }
 public BlockTransactionLimitChangedLogEventHandler(IBlockTransactionLimitProvider blockTransactionLimitProvider,
                                                    ISmartContractAddressService smartContractAddressService)
 {
     _blockTransactionLimitProvider = blockTransactionLimitProvider;
     _smartContractAddressService   = smartContractAddressService;
     Logger = NullLogger <BlockTransactionLimitChangedLogEventHandler> .Instance;
 }
 public ResourceConsumptionPreExecutionPlugin(ISmartContractAddressService smartContractAddressService,
                                              IContractReaderFactory <TokenContractImplContainer.TokenContractImplStub> contractReaderFactory) :
     base("acs8")
 {
     _smartContractAddressService = smartContractAddressService;
     _contractReaderFactory       = contractReaderFactory;
 }
Example #23
0
 public MethodStubFactory(ITransactionReadOnlyExecutionService transactionReadOnlyExecutionService,
                          ISmartContractAddressService smartContractAddressService, IChainContext chainContext, Address sender)
 {
     _transactionReadOnlyExecutionService = transactionReadOnlyExecutionService;
     _smartContractAddressService         = smartContractAddressService;
     _chainContext = chainContext;
     FromAddress   = sender ?? Address.FromBytes(new byte[] { }.ComputeHash());
 }
        public CodeUpdatedLogEventHandler(ISmartContractAddressService smartContractAddressService,
                                          ISmartContractRegistrationService smartContractRegistrationService)
        {
            _smartContractAddressService      = smartContractAddressService;
            _smartContractRegistrationService = smartContractRegistrationService;

            Logger = NullLogger <CodeUpdatedLogEventHandler> .Instance;
        }
 public TransactionFeeCalculatorCoefficientUpdatedLogEventProcessor(
     ISmartContractAddressService smartContractAddressService,
     ICalculateFunctionProvider calculateFunctionProvider)
 {
     _smartContractAddressService = smartContractAddressService;
     _calculateFunctionProvider   = calculateFunctionProvider;
     Logger = NullLogger <TransactionFeeCalculatorCoefficientUpdatedLogEventProcessor> .Instance;
 }
Example #26
0
 public CrossChainIndexingTransactionGeneratorTest()
 {
     _crossChainIndexingTransactionGenerator = GetRequiredService <ISystemTransactionGenerator>();
     _crossChainIndexingDataService          = GetRequiredService <ICrossChainIndexingDataService>();
     _smartContractAddressService            = GetRequiredService <ISmartContractAddressService>();
     _kernelTestHelper     = GetRequiredService <KernelTestHelper>();
     _crossChainTestHelper = GetRequiredService <CrossChainTestHelper>();
 }
Example #27
0
 public ConfigurationService(IEnumerable <IConfigurationProcessor> configurationProcessors,
                             IContractReaderFactory <ConfigurationContainer.ConfigurationStub> contractReaderFactory,
                             ISmartContractAddressService smartContractAddressService)
 {
     _contractReaderFactory       = contractReaderFactory;
     _smartContractAddressService = smartContractAddressService;
     _configurationProcessors     = configurationProcessors.ToList();
 }
 public ProposalService(IProposalProvider proposalProvider,
                        ISmartContractAddressService smartContractAddressService,
                        IContractReaderFactory <ParliamentContractContainer.ParliamentContractStub> contractReaderFactory)
 {
     _proposalProvider            = proposalProvider;
     _smartContractAddressService = smartContractAddressService;
     _contractReaderFactory       = contractReaderFactory;
 }
Example #29
0
 public CrossChainIndexingDataValidationService(IBlockCacheEntityConsumer blockCacheEntityConsumer,
                                                IContractReaderFactory <CrossChainContractImplContainer.CrossChainContractImplStub> contractReaderFactory,
                                                ISmartContractAddressService smartContractAddressService)
 {
     _blockCacheEntityConsumer    = blockCacheEntityConsumer;
     _contractReaderFactory       = contractReaderFactory;
     _smartContractAddressService = smartContractAddressService;
 }
Example #30
0
 public ChainStatusAppService(ISmartContractAddressService smartContractAddressService,
                              IBlockchainService blockchainService,
                              IObjectMapper <ChainApplicationWebAppAElfModule> objectMapper)
 {
     _smartContractAddressService = smartContractAddressService;
     _blockchainService           = blockchainService;
     _objectMapper = objectMapper;
 }