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

Improvement: Switch chain based configuration of controllers to pallet based configuration #1544

Open
filvecchiato opened this issue Nov 11, 2024 · 0 comments
Labels
I8 - Enhancement Additional feature request P7 - Nice to Have Nice, but not urgent

Comments

@filvecchiato
Copy link
Contributor

Proposed Change or Idea

While working on a new controller, it seems like it could be beneficial to move away from a chain based configuration (src/chains-config) to instead inject the required controllers of sidecar depending on the pallets detected from the chain metadata. More than one controller could be configured for a pallet, and overrides could be available for specific chains, as well as base controllers available for any given chain.

This method would maintain the current dep-injection of controllers in express, but instead of having a list of chains with the required controllers, it would remove the need to create new configuration files for new chains created, instead being mostly supported out of the box by checking the chain's metadata.

@filvecchiato filvecchiato added I8 - Enhancement Additional feature request P7 - Nice to Have Nice, but not urgent labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I8 - Enhancement Additional feature request P7 - Nice to Have Nice, but not urgent
Projects
None yet
Development

No branches or pull requests

1 participant