Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor File Structure and Method Organization for Improved Modularity #47

Open
jrwbabylonlab opened this issue Nov 26, 2024 · 0 comments
Assignees

Comments

@jrwbabylonlab
Copy link
Collaborator

The current file structure and organization of methods can be improved to enhance readability and maintainability. While this isn’t a priority before the testnet launch, it’s something we can address afterward.

Proposed Improvements:

1.	Refactor the main class to produce a custom-typed class instance, which would encapsulate methods like:
•	toPsbt
•	toTransaction
•	Other related functionality.
2.	Introduce static methods in the new class, such as fromTransaction, allowing for operations like toPsbt to be invoked on a well-structured instance.

These changes would make the codebase cleaner and more modular for future development.

Link to the conversation: #44 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant