Example #1
0
 protected virtual async Task CrawlFilterLogAsync(CrawlerStepCompleted <TransactionReceiptVO> completedStep, FilterLog filterLog)
 {
     if (FilterLogCrawlerStep.Enabled)
     {
         var currentStepCompleted = await FilterLogCrawlerStep.ExecuteStepAsync(
             new FilterLogVO(completedStep.StepData.Transaction, completedStep.StepData.TransactionReceipt,
                             filterLog), completedStep.ExecutedStepsCollection).ConfigureAwait(false);
     }
 }
Example #2
0
 protected virtual async Task CrawlFilterLogs(CrawlerStepCompleted <TransactionReceiptVO> completedStep)
 {
     if (completedStep != null)
     {
         foreach (var log in completedStep.StepData.TransactionReceipt.Logs.ConvertToFilterLog())
         {
             await CrawlFilterLog(completedStep, log);
         }
     }
 }
Example #3
0
        protected virtual async Task CrawlTransaction(CrawlerStepCompleted <BlockWithTransactions> completedStep, Transaction txn)
        {
            var currentStepCompleted = await TransactionWithBlockCrawlerStep.ExecuteStepAsync(
                new TransactionVO(txn, completedStep.StepData), completedStep.ExecutedStepsCollection);

            if (currentStepCompleted.ExecutedStepsCollection.Any())
            {
                await CrawlTransactionReceipt(currentStepCompleted);
            }
        }
Example #4
0
 protected virtual async Task CrawlTransactions(CrawlerStepCompleted <BlockWithTransactions> completedStep)
 {
     if (completedStep != null)
     {
         foreach (var txn in completedStep.StepData.Transactions)
         {
             await CrawlTransaction(completedStep, txn);
         }
     }
 }
Example #5
0
        protected virtual async Task CrawlTransactionAsync(CrawlerStepCompleted <BlockWithTransactions> completedStep, Transaction txn)
        {
            var currentStepCompleted = await TransactionWithBlockCrawlerStep.ExecuteStepAsync(
                new TransactionVO(txn, completedStep.StepData), completedStep.ExecutedStepsCollection).ConfigureAwait(false);

            if (currentStepCompleted.ExecutedStepsCollection.Any() && TransactionWithReceiptCrawlerStep.Enabled)
            {
                await CrawlTransactionReceiptAsync(currentStepCompleted).ConfigureAwait(false);
            }
        }
Example #6
0
 protected virtual async Task CrawlTransactionsAsync(CrawlerStepCompleted <BlockWithTransactions> completedStep)
 {
     if (completedStep != null)
     {
         foreach (var txn in completedStep.StepData.Transactions)
         {
             await CrawlTransactionAsync(completedStep, txn).ConfigureAwait(false);
         }
     }
 }
Example #7
0
 protected virtual async Task CrawlFilterLogsAsync(CrawlerStepCompleted <TransactionReceiptVO> completedStep)
 {
     if (completedStep != null && FilterLogCrawlerStep.Enabled)
     {
         foreach (var log in completedStep.StepData.TransactionReceipt.Logs.ConvertToFilterLog())
         {
             await CrawlFilterLogAsync(completedStep, log).ConfigureAwait(false);
         }
     }
 }
Example #8
0
        protected virtual async Task CrawlTransactionReceipt(CrawlerStepCompleted <TransactionVO> completedStep)
        {
            var currentStepCompleted = await TransactionWithReceiptCrawlerStep.ExecuteStepAsync(completedStep.StepData,
                                                                                                completedStep.ExecutedStepsCollection);

            if (currentStepCompleted != null && currentStepCompleted.StepData.IsForContractCreation())
            {
                await ContractCreatedCrawlerStep.ExecuteStepAsync(currentStepCompleted.StepData, completedStep.ExecutedStepsCollection);
            }

            await CrawlFilterLogs(currentStepCompleted);
        }
Example #9
0
        protected virtual async Task CrawlTransactionReceiptAsync(CrawlerStepCompleted <TransactionVO> completedStep)
        {
            if (TransactionWithReceiptCrawlerStep.Enabled)
            {
                var currentStepCompleted = await TransactionWithReceiptCrawlerStep.ExecuteStepAsync(
                    completedStep.StepData,
                    completedStep.ExecutedStepsCollection).ConfigureAwait(false);

                if (currentStepCompleted != null && currentStepCompleted.StepData.IsForContractCreation() &&
                    ContractCreatedCrawlerStep.Enabled)
                {
                    await ContractCreatedCrawlerStep.ExecuteStepAsync(currentStepCompleted.StepData,
                                                                      completedStep.ExecutedStepsCollection).ConfigureAwait(false);
                }

                await CrawlFilterLogsAsync(currentStepCompleted).ConfigureAwait(false);
            }
        }
Example #10
0
 protected virtual async Task CrawlFilterLog(CrawlerStepCompleted <TransactionReceiptVO> completedStep, FilterLog filterLog)
 {
     var currentStepCompleted = await FilterLogCrawlerStep.ExecuteStepAsync(
         new FilterLogVO(completedStep.StepData.Transaction, completedStep.StepData.TransactionReceipt, filterLog), completedStep.ExecutedStepsCollection);
 }