def __init__(self, start_block, end_block, batch_size, batch_web3_provider, max_workers, item_exporter, export_blocks=True, export_transactions=True): validate_range(start_block, end_block) self.start_block = start_block self.end_block = end_block self.batch_web3_provider = batch_web3_provider self.batch_work_executor = BatchWorkExecutor(batch_size, max_workers) self.item_exporter = item_exporter self.export_blocks = export_blocks self.export_transactions = export_transactions if not self.export_blocks and not self.export_transactions: raise ValueError( 'At least one of export_blocks or export_transactions must be True' ) self.block_mapper = EthBlockMapper() self.transaction_mapper = EthTransactionMapper()
def __init__( self, start_block, end_block, batch_size, web3, item_exporter, max_workers, include_genesis_traces=False, include_daofork_traces=False): validate_range(start_block, end_block) self.start_block = start_block self.end_block = end_block self.web3 = web3 # TODO: use batch_size when this issue is fixed https://github.com/paritytech/parity-ethereum/issues/9822 self.batch_work_executor = BatchWorkExecutor(1, max_workers) self.item_exporter = item_exporter self.trace_mapper = EthTraceMapper() self.special_trace_service = EthSpecialTraceService() self.include_genesis_traces = include_genesis_traces self.include_daofork_traces = include_daofork_traces
def __init__(self, start_block, end_block, batch_size, batch_web3_provider, max_workers, item_exporter): validate_range(start_block, end_block) self.start_block = start_block self.end_block = end_block self.batch_web3_provider = batch_web3_provider self.batch_work_executor = BatchWorkExecutor(batch_size, max_workers) self.item_exporter = item_exporter self.geth_trace_mapper = EthGethTraceMapper()
def __init__( self, start_block, end_block, batch_size, web3, item_exporter, max_workers): validate_range(start_block, end_block) self.start_block = start_block self.end_block = end_block self.web3 = web3 self.batch_work_executor = BatchWorkExecutor(batch_size, max_workers) self.item_exporter = item_exporter self.trace_mapper = EthTraceMapper()
def __init__(self, start_block, end_block, batch_size, web3, ipfs_client, marketplace_listing_exporter, shop_product_exporter, max_workers): validate_range(start_block, end_block) self.start_block = start_block self.end_block = end_block self.web3 = web3 self.marketplace_listing_exporter = marketplace_listing_exporter self.shop_product_exporter = shop_product_exporter self.batch_work_executor = BatchWorkExecutor(batch_size, max_workers) self.event_extractor = OriginEventExtractor(ipfs_client) self.receipt_log_mapper = EthReceiptLogMapper() self.marketplace_listing_mapper = OriginMarketplaceListingMapper() self.shop_listing_mapper = OriginShopProductMapper()
def __init__(self, start_block, end_block, batch_size, web3, item_exporter, max_workers, tokens=None): validate_range(start_block, end_block) self.start_block = start_block self.end_block = end_block self.web3 = web3 self.tokens = tokens self.item_exporter = item_exporter self.batch_work_executor = BatchWorkExecutor(batch_size, max_workers) self.receipt_log_mapper = EthReceiptLogMapper() self.token_transfer_mapper = EthTokenTransferMapper() self.token_transfer_extractor = EthTokenTransferExtractor()