Skip to content

Refactor Project Structure for Improved Readability and Modularity #29

@TheMhv

Description

@TheMhv

The current project structure can be simplified and made more modular to better support library use cases and improve overall readability. I propose a refactor with the following changes:

Proposed Changes

  • Block Breakers

    • Move all functions from src/breakers/block/*src/block/breakers/*
  • Transaction Breakers

    • Move all functions from src/breakers/transaction/*src/transaction/breakers/*
  • API Module

    • Remove the monolithic src/api.rs
    • Split functionalities into separate files (and possibly subfolders as needed)
  • CLI Structure

    • Create a new folder: src/cli/
    • Move and split src/cli.rs into multiple files inside src/cli/
  • Test Modules

    • Create a new folder: src/test/
    • Move and organize all test-related code into this folder
  • Blockchain Features

    • Create a new folder: src/blockchain/ for blockchain-specific logic and functionality

Goal:
This refactor aims to:

  • Improve project clarity and navigation
  • Facilitate future maintenance and scaling
  • Make the codebase friendlier for both library consumers and contributors

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions