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
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 ✅
src/breakers/block/*→src/block/breakers/*✅Transaction Breakers ✅
src/breakers/transaction/*→src/transaction/breakers/*✅API Module
src/api.rsCLI Structure
src/cli/src/cli.rsinto multiple files insidesrc/cli/Test Modules
src/test/Blockchain Features
src/blockchain/for blockchain-specific logic and functionalityGoal:
This refactor aims to: