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

Generalize Components Coupled to Chain Package #1760

Open
aaronbuchwald opened this issue Nov 12, 2024 · 0 comments
Open

Generalize Components Coupled to Chain Package #1760

aaronbuchwald opened this issue Nov 12, 2024 · 0 comments

Comments

@aaronbuchwald
Copy link
Collaborator

aaronbuchwald commented Nov 12, 2024

Decouple components that are unnecessarily tied to the chain package because they depend on either the block or transaction types. We should remove the pattern of using a resolutions.go and dependencies.go file to pass around mega objects and switch to passing in the required parameters to each type we need to construct.

Replace the dependencies.go file with passing in the minimal required functionality for the package and use a generic type for blocks/transactions where necessary, so that the code can be re-used with alternative block/transaction types:

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

No branches or pull requests

1 participant