示例#1
0
 public CrossChainService(IIrreversibleBlockStateProvider irreversibleBlockStateProvider,
                          IReaderFactory readerFactory, ICrossChainCacheEntityService crossChainCacheEntityService)
 {
     _irreversibleBlockStateProvider = irreversibleBlockStateProvider;
     _readerFactory = readerFactory;
     _crossChainCacheEntityService = crossChainCacheEntityService;
 }
 public CrossChainIndexingDataService(IReaderFactory readerFactory, IBlockCacheEntityConsumer blockCacheEntityConsumer,
                                      IIndexedCrossChainBlockDataProvider indexedCrossChainBlockDataProvider, IIrreversibleBlockStateProvider irreversibleBlockStateProvider)
 {
     _readerFactory                      = readerFactory;
     _blockCacheEntityConsumer           = blockCacheEntityConsumer;
     _indexedCrossChainBlockDataProvider = indexedCrossChainBlockDataProvider;
     _irreversibleBlockStateProvider     = irreversibleBlockStateProvider;
 }
 public CrossChainIndexingDataService(IReaderFactory readerFactory,
                                      IBlockCacheEntityConsumer blockCacheEntityConsumer,
                                      ITransactionInputForBlockMiningDataProvider transactionInputForBlockMiningDataProvider,
                                      IIrreversibleBlockStateProvider irreversibleBlockStateProvider,
                                      IOptionsMonitor <TransactionPackingOptions> transactionPackingOptions)
 {
     _readerFactory            = readerFactory;
     _blockCacheEntityConsumer = blockCacheEntityConsumer;
     _transactionInputForBlockMiningDataProvider = transactionInputForBlockMiningDataProvider;
     _irreversibleBlockStateProvider             = irreversibleBlockStateProvider;
     _transactionPackingOptions = transactionPackingOptions.CurrentValue;
 }
示例#4
0
 public CrossChainIndexingDataService(IBlockCacheEntityConsumer blockCacheEntityConsumer,
                                      ITransactionInputForBlockMiningDataProvider transactionInputForBlockMiningDataProvider,
                                      IIrreversibleBlockStateProvider irreversibleBlockStateProvider,
                                      IContractReaderFactory <CrossChainContractImplContainer.CrossChainContractImplStub> contractReaderFactory,
                                      ISmartContractAddressService smartContractAddressService)
 {
     _blockCacheEntityConsumer = blockCacheEntityConsumer;
     _transactionInputForBlockMiningDataProvider = transactionInputForBlockMiningDataProvider;
     _irreversibleBlockStateProvider             = irreversibleBlockStateProvider;
     _contractReaderFactory       = contractReaderFactory;
     _smartContractAddressService = smartContractAddressService;
 }
 public CrossChainIndexingDataService(IReaderFactory readerFactory,
                                      IBlockCacheEntityConsumer blockCacheEntityConsumer,
                                      ITransactionInputForBlockMiningDataProvider transactionInputForBlockMiningDataProvider,
                                      IIrreversibleBlockStateProvider irreversibleBlockStateProvider,
                                      ITransactionPackingService transactionPackingService)
 {
     _readerFactory            = readerFactory;
     _blockCacheEntityConsumer = blockCacheEntityConsumer;
     _transactionInputForBlockMiningDataProvider = transactionInputForBlockMiningDataProvider;
     _irreversibleBlockStateProvider             = irreversibleBlockStateProvider;
     _transactionPackingService = transactionPackingService;
 }
示例#6
0
 public IrreversibleBlockStateProviderTest()
 {
     _irreversibleBlockStateProvider = GetRequiredService <IIrreversibleBlockStateProvider>();
     _crossChainTestHelper           = GetRequiredService <CrossChainTestHelper>();
 }