def process_all_assignment_files(config, stats: dict) -> int: line_count = 0 for file in os.scandir(config.assignments_dir): print(f'Reading assignments from "{file.path}"') line_count += csv_map( file.path, lambda i, row: process_participant(config, stats, *row), skip_header=True) return line_count
def load_kyc(config, stats): csv_map(config.kyc_file, lambda i, row: whitelist_wit_id(stats, *row), skip_header=True)
def load_all_direct_assignments(config, stats): csv_map(config.direct_assignment_csv_file, lambda i, row: load_direct_assignment_for_wit_id(stats, *row))
def load_blocks_count(stats, file_path): csv_map(file_path, lambda i, row: ascribe_blocks_to_address(stats, *row))
def download_all_participants(config, stats): csv_map(config.nodes_csv_file, lambda i, row: download_participant(config, stats, i, *row), skip_header=True, limit=int(config.limit))