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); } }
protected virtual async Task CrawlFilterLogs(CrawlerStepCompleted <TransactionReceiptVO> completedStep) { if (completedStep != null) { foreach (var log in completedStep.StepData.TransactionReceipt.Logs.ConvertToFilterLog()) { await CrawlFilterLog(completedStep, log); } } }
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); } }
protected virtual async Task CrawlTransactions(CrawlerStepCompleted <BlockWithTransactions> completedStep) { if (completedStep != null) { foreach (var txn in completedStep.StepData.Transactions) { await CrawlTransaction(completedStep, txn); } } }
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); } }
protected virtual async Task CrawlTransactionsAsync(CrawlerStepCompleted <BlockWithTransactions> completedStep) { if (completedStep != null) { foreach (var txn in completedStep.StepData.Transactions) { await CrawlTransactionAsync(completedStep, txn).ConfigureAwait(false); } } }
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); } } }
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); }
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); } }
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); }