public BlockExecutionResultProcessingServiceTests() { _blockExecutionResultProcessingService = GetRequiredService <IBlockExecutionResultProcessingService>(); _blockchainService = GetRequiredService <IBlockchainService>(); _kernelTestHelper = GetRequiredService <KernelTestHelper>(); _chainManager = GetRequiredService <IChainManager>(); _chainBlockLinkService = GetRequiredService <IChainBlockLinkService>(); }
public BlockExecutionResultProcessingService(IBlockchainService blockchainService, IChainBlockLinkService chainBlockLinkService) { _blockchainService = blockchainService; _chainBlockLinkService = chainBlockLinkService; LocalEventBus = NullLocalEventBus.Instance; Logger = NullLogger <BlockExecutionResultProcessingService> .Instance; }
public TransactionSizeFeeUnitProvider(ITokenContractReaderFactory tokenStTokenContractReaderFactory, IBlockchainService blockchainService, IChainBlockLinkService chainBlockLinkService) { _tokenStTokenContractReaderFactory = tokenStTokenContractReaderFactory; _blockchainService = blockchainService; _chainBlockLinkService = chainBlockLinkService; Logger = NullLogger <TransactionSizeFeeUnitProvider> .Instance; }
public WriteCalculateCostStrategy(ITokenContractReaderFactory tokenStTokenContractReaderFactory, IBlockchainService blockchainService, IChainBlockLinkService chainBlockLinkService, ICalculateFunctionCacheProvider functionCacheProvider) { CalculateAlgorithmService = new CalculateAlgorithmService(tokenStTokenContractReaderFactory, blockchainService, chainBlockLinkService, functionCacheProvider); CalculateAlgorithmService.CalculateAlgorithmContext.CalculateFeeTypeEnum = (int)FeeTypeEnum.Write; }
public SymbolListToPayTxFeeService(ISymbolListToPayTxFeeCacheProvider cacheProvider, IChainBlockLinkService chainBlockLinkService, ITokenContractReaderFactory tokenStTokenContractReaderFactory, IBlockchainService blockchainService) { _cacheProvider = cacheProvider; _chainBlockLinkService = chainBlockLinkService; _tokenStTokenContractReaderFactory = tokenStTokenContractReaderFactory; _blockchainService = blockchainService; Logger = new NullLogger <SymbolListToPayTxFeeService>(); }
public BlockTransactionLimitProvider(ISmartContractAddressService smartContractAddressService, ITransactionReadOnlyExecutionService transactionReadOnlyExecutionService, IBlockchainService blockchainService, IChainBlockLinkService chainBlockLinkService) { _transactionReadOnlyExecutionService = transactionReadOnlyExecutionService; _blockchainService = blockchainService; _smartContractAddressService = smartContractAddressService; _chainBlockLinkService = chainBlockLinkService; Logger = NullLogger <BlockTransactionLimitProvider> .Instance; }
public CalculateAlgorithmService(ITokenContractReaderFactory tokenStTokenContractReaderFactory, IBlockchainService blockchainService, IChainBlockLinkService chainBlockLinkService, ICalculateFunctionCacheProvider cacheCacheProvider) { _tokenStTokenContractReaderFactory = tokenStTokenContractReaderFactory; _blockchainService = blockchainService; _chainBlockLinkService = chainBlockLinkService; _cacheCacheProvider = cacheCacheProvider; Logger = new NullLogger <CalculateAlgorithmService>(); }
public BlockAttachService(IBlockchainService blockchainService, IBlockchainExecutingService blockchainExecutingService, IChainBlockLinkService chainBlockLinkService, IBlockExecutionResultProcessingService blockExecutionResultProcessingService) { _blockchainService = blockchainService; _blockchainExecutingService = blockchainExecutingService; _chainBlockLinkService = chainBlockLinkService; _blockExecutionResultProcessingService = blockExecutionResultProcessingService; Logger = NullLogger <BlockAttachService> .Instance; }
public SmartContractExecutiveProvider(IDeployedContractAddressProvider deployedContractAddressProvider, IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, ISmartContractRunnerContainer smartContractRunnerContainer, IHostSmartContractBridgeContextService hostSmartContractBridgeContextService, IChainBlockLinkService chainBlockLinkService, IBlockchainService blockchainService) { _deployedContractAddressProvider = deployedContractAddressProvider; _defaultContractZeroCodeProvider = defaultContractZeroCodeProvider; _smartContractRunnerContainer = smartContractRunnerContainer; _hostSmartContractBridgeContextService = hostSmartContractBridgeContextService; _chainBlockLinkService = chainBlockLinkService; _blockchainService = blockchainService; }
public NewIrreversibleBlockFoundEventHandler(ITaskQueueManager taskQueueManager, IBlockchainStateService blockchainStateService, IBlockchainService blockchainService, ITransactionBlockIndexService transactionBlockIndexService, IForkCacheService forkCacheService, IChainBlockLinkService chainBlockLinkService) { _taskQueueManager = taskQueueManager; _blockchainStateService = blockchainStateService; _blockchainService = blockchainService; _transactionBlockIndexService = transactionBlockIndexService; _forkCacheService = forkCacheService; _chainBlockLinkService = chainBlockLinkService; Logger = NullLogger <NewIrreversibleBlockFoundEventHandler> .Instance; }
public NewIrreversibleBlockFoundEventHandler(ITaskQueueManager taskQueueManager, IBlockchainStateService blockchainStateService, IBlockchainService blockchainService, ITransactionBlockIndexService transactionBlockIndexService, IChainBlockLinkService chainBlockLinkService, ISmartContractExecutiveService smartContractExecutiveService) { _taskQueueManager = taskQueueManager; _blockchainStateService = blockchainStateService; _blockchainService = blockchainService; _transactionBlockIndexService = transactionBlockIndexService; _chainBlockLinkService = chainBlockLinkService; _smartContractExecutiveService = smartContractExecutiveService; Logger = NullLogger <NewIrreversibleBlockFoundEventHandler> .Instance; LocalEventBus = NullLocalEventBus.Instance; }
public TestingSmartContractExecutiveService(IDeployedContractAddressProvider deployedContractAddressProvider, IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, ISmartContractRunnerContainer smartContractRunnerContainer, IHostSmartContractBridgeContextService hostSmartContractBridgeContextService, IChainBlockLinkService chainBlockLinkService, IBlockchainService blockchainService, ISmartContractCodeHistoryService smartContractCodeHistoryService, ISmartContractRegistrationCacheProvider smartContractRegistrationCacheProvider, ISmartContractExecutiveProvider smartContractExecutiveProvider) : base(deployedContractAddressProvider, defaultContractZeroCodeProvider, smartContractRunnerContainer, hostSmartContractBridgeContextService, chainBlockLinkService, blockchainService, smartContractCodeHistoryService, smartContractRegistrationCacheProvider, smartContractExecutiveProvider) { }
public SmartContractExecutiveService(IDeployedContractAddressProvider deployedContractAddressProvider, IDefaultContractZeroCodeProvider defaultContractZeroCodeProvider, ISmartContractRunnerContainer smartContractRunnerContainer, IHostSmartContractBridgeContextService hostSmartContractBridgeContextService, IChainBlockLinkService chainBlockLinkService, IBlockchainService blockchainService, ISmartContractCodeHistoryService smartContractCodeHistoryService, ISmartContractRegistrationCacheProvider smartContractRegistrationCacheProvider, ISmartContractExecutiveProvider smartContractExecutiveProvider) { _deployedContractAddressProvider = deployedContractAddressProvider; _defaultContractZeroCodeProvider = defaultContractZeroCodeProvider; _smartContractRunnerContainer = smartContractRunnerContainer; _hostSmartContractBridgeContextService = hostSmartContractBridgeContextService; _chainBlockLinkService = chainBlockLinkService; _blockchainService = blockchainService; _smartContractCodeHistoryService = smartContractCodeHistoryService; _smartContractRegistrationCacheProvider = smartContractRegistrationCacheProvider; _smartContractExecutiveProvider = smartContractExecutiveProvider; Logger = new NullLogger <SmartContractExecutiveService>(); }
public ForkCacheService(IServiceContainer <IForkCacheHandler> forkCacheHandlers, IChainBlockLinkService chainBlockLinkService) { _chainBlockLinkService = chainBlockLinkService; _forkCacheHandlers = forkCacheHandlers.ToLookup(p => p.GetType()).Select(coll => coll.First()).ToList(); }
public DeployedContractAddressProvider(IChainBlockLinkService chainBlockLinkService) { _chainBlockLinkService = chainBlockLinkService; Logger = new NullLogger <DeployedContractAddressProvider>(); }