public TransactionExecutingService(ITransactionResultService transactionResultService,
                                    ISmartContractExecutiveService smartContractExecutiveService, IEnumerable <IExecutionPlugin> plugins)
 {
     _transactionResultService      = transactionResultService;
     _smartContractExecutiveService = smartContractExecutiveService;
     _plugins = GetUniquePlugins(plugins);
     Logger   = NullLogger <TransactionExecutingService> .Instance;
 }
Exemplo n.º 2
0
 public PlainTransactionExecutingAsPluginService
     (ISmartContractExecutiveService smartContractExecutiveService,
     IEnumerable <IPostExecutionPlugin> postPlugins, IEnumerable <IPreExecutionPlugin> prePlugins,
     ITransactionContextFactory transactionContextFactory) : base(
         smartContractExecutiveService, postPlugins, prePlugins, transactionContextFactory)
 {
     _smartContractExecutiveService = smartContractExecutiveService;
 }
        public TransactionToAddressValidationProvider(IBlockchainService blockchainService,
                                                      ISmartContractExecutiveService smartContractExecutiveService)
        {
            _blockchainService             = blockchainService;
            _smartContractExecutiveService = smartContractExecutiveService;

            Logger = NullLogger <TransactionToAddressValidationProvider> .Instance;
        }
Exemplo n.º 4
0
 public ContractBasicTests()
 {
     _blockchainService             = GetRequiredService <IBlockchainService>();
     _miningService                 = GetRequiredService <IMiningService>();
     _blockAttachService            = GetRequiredService <IBlockAttachService>();
     _smartContractExecutiveService = GetRequiredService <ISmartContractExecutiveService>();
     _transactionResultManager      = GetRequiredService <ITransactionResultManager>();
     InitializeTestContracts();
 }
Exemplo n.º 5
0
        public ResourceExtractionService(IBlockchainService blockchainService,
                                         ISmartContractExecutiveService smartContractExecutiveService, ICodeRemarksManager codeRemarksManager)
        {
            _smartContractExecutiveService = smartContractExecutiveService;
            _codeRemarksManager            = codeRemarksManager;
            _blockchainService             = blockchainService;

            Logger = NullLogger <ResourceExtractionService> .Instance;
        }
Exemplo n.º 6
0
 public SmartContractService(
     ISmartContractRunnerContainer smartContractRunnerContainer,
     ISmartContractAddressService smartContractAddressService,
     ISmartContractExecutiveService smartContractExecutiveService)
 {
     _smartContractRunnerContainer  = smartContractRunnerContainer;
     _smartContractAddressService   = smartContractAddressService;
     _smartContractExecutiveService = smartContractExecutiveService;
 }
Exemplo n.º 7
0
        public ResourceExtractionService(IBlockchainService blockchainService,
                                         ISmartContractExecutiveService smartContractExecutiveService,
                                         INonparallelContractCodeProvider nonparallelContractCodeProvider)
        {
            _smartContractExecutiveService   = smartContractExecutiveService;
            _nonparallelContractCodeProvider = nonparallelContractCodeProvider;
            _blockchainService = blockchainService;

            Logger = NullLogger <ResourceExtractionService> .Instance;
        }
Exemplo n.º 8
0
 public PlainTransactionExecutingService(ISmartContractExecutiveService smartContractExecutiveService,
                                         IEnumerable <IPostExecutionPlugin> postPlugins, IEnumerable <IPreExecutionPlugin> prePlugins,
                                         ITransactionContextFactory transactionContextFactory)
 {
     _smartContractExecutiveService = smartContractExecutiveService;
     _transactionContextFactory     = transactionContextFactory;
     _prePlugins   = GetUniquePlugins(prePlugins);
     _postPlugins  = GetUniquePlugins(postPlugins);
     Logger        = NullLogger <PlainTransactionExecutingService> .Instance;
     LocalEventBus = NullLocalEventBus.Instance;
 }
Exemplo n.º 9
0
 public TransactionExecutingService(ITransactionResultService transactionResultService,
                                    ISmartContractExecutiveService smartContractExecutiveService, IEnumerable <IPostExecutionPlugin> postPlugins, IEnumerable <IPreExecutionPlugin> prePlugins
                                    )
 {
     _transactionResultService      = transactionResultService;
     _smartContractExecutiveService = smartContractExecutiveService;
     _prePlugins   = GetUniquePrePlugins(prePlugins);
     _postPlugins  = GetUniquePostPlugins(postPlugins);
     Logger        = NullLogger <TransactionExecutingService> .Instance;
     LocalEventBus = NullLocalEventBus.Instance;
 }
Exemplo n.º 10
0
        public CodeUpdatedLogEventProcessor(ISmartContractAddressService smartContractAddressService,
                                            ISmartContractRegistrationProvider smartContractRegistrationProvider,
                                            ISmartContractRegistrationInStateProvider smartContractRegistrationInStateProvider,
                                            ISmartContractExecutiveService smartContractExecutiveService)
        {
            _smartContractAddressService              = smartContractAddressService;
            _smartContractRegistrationProvider        = smartContractRegistrationProvider;
            _smartContractRegistrationInStateProvider = smartContractRegistrationInStateProvider;
            _smartContractExecutiveService            = smartContractExecutiveService;

            Logger = NullLogger <CodeUpdatedLogEventProcessor> .Instance;
        }
Exemplo n.º 11
0
 public SmartContractService(
     ISmartContractRunnerContainer smartContractRunnerContainer,
     IFunctionMetadataService functionMetadataService, IBlockchainService chainService,
     ISmartContractAddressService smartContractAddressService,
     ISmartContractExecutiveService smartContractExecutiveService)
 {
     _smartContractRunnerContainer = smartContractRunnerContainer;
     _functionMetadataService      = functionMetadataService;
     _chainService = chainService;
     _smartContractAddressService   = smartContractAddressService;
     _smartContractExecutiveService = smartContractExecutiveService;
 }
 public LocalParallelTransactionExecutingService(ITransactionGrouper grouper,
                                                 ITransactionResultService transactionResultService,
                                                 ISmartContractExecutiveService smartContractExecutiveService, IEnumerable <IPreExecutionPlugin> prePlugins,
                                                 IEnumerable <IPostExecutionPlugin> postPlugins)
 {
     _grouper = grouper;
     _plainExecutingService =
         new TransactionExecutingService(transactionResultService, smartContractExecutiveService, postPlugins, prePlugins
                                         );
     _transactionResultService = transactionResultService;
     EventBus = NullLocalEventBus.Instance;
     Logger   = NullLogger <LocalParallelTransactionExecutingService> .Instance;
 }
Exemplo n.º 13
0
 public LocalTransactionExecutingService(ITransactionResultService transactionResultService,
                                         ISmartContractExecutiveService smartContractExecutiveService,
                                         IEnumerable <IPostExecutionPlugin> postPlugins, IEnumerable <IPreExecutionPlugin> prePlugins,
                                         IOptionsSnapshot <ContractOptions> contractOptionsSnapshot
                                         )
 {
     _transactionResultService      = transactionResultService;
     _smartContractExecutiveService = smartContractExecutiveService;
     _prePlugins      = GetUniquePrePlugins(prePlugins);
     _postPlugins     = GetUniquePostPlugins(postPlugins);
     _contractOptions = contractOptionsSnapshot.Value;
     Logger           = NullLogger <LocalTransactionExecutingService> .Instance;
     LocalEventBus    = NullLocalEventBus.Instance;
 }
Exemplo n.º 14
0
 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 TransactionReadOnlyExecutionService(ISmartContractExecutiveService smartContractExecutiveService)
 {
     _smartContractExecutiveService = smartContractExecutiveService;
 }
Exemplo n.º 16
0
 public TransactionReadOnlyExecutionService(ISmartContractExecutiveService smartContractExecutiveService,
                                            ITransactionContextFactory transactionContextFactory)
 {
     _smartContractExecutiveService = smartContractExecutiveService;
     _transactionContextFactory     = transactionContextFactory;
 }
Exemplo n.º 17
0
 public CodeRemarksService(ICodeRemarksManager codeRemarksManager,
                           ISmartContractExecutiveService smartContractExecutiveService)
 {
     _codeRemarksManager            = codeRemarksManager;
     _smartContractExecutiveService = smartContractExecutiveService;
 }