-
Notifications
You must be signed in to change notification settings - Fork 628
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
modify ICA controller NewIBCMiddleware to default to nil auth module #3020
Comments
Hi @alpe. We discussed this issue and we plan to address your first 2 items:
But we were not sure what you meant with your last point:
Could you please elaborate what you mean? |
I have only a very limited context as I was not in the design discussions. From working with the ICA, I noticed: IMHO a new interface for the concrete purpose would make more sense. Instead of using IBC semantics, you could focus on the authentication/ authorization only. In the concrete inter-tx example, an |
Thanks for the clarifications, @alpe!
Yes, that's true that inter-tx only really implements
This is the |
Revisiting this discussion. Sounds like the action items are:
The other concerns are very valid, but I think the general sentiment is that ics27 needs a whole v2 re-envisioning to simplify its construction and improve its dev UX. I think it makes to hold off on such changes until there's a deeper investigation into reworking ics27 |
Summary
I had some issues to setup the ICA controller. I understood that authentication module is optional but still the concrete setup was not clear to me.
Proposal
Some ideas that would have made it easier for me:
NewNoAuthIBCMiddleware(k keeper.Keeper)
or better name that provides the correct instantiationAcceptAllAuthIBCModule
in the module that does noop (and you can get rid of the nil checks in the methods)porttypes.IBCModule
interface with some new interface dedicated to authentication only. There is some overlap of methods but not all. IMHO a clear separation of concerns would improve the design and make it easier in the future. This would also give better IDE support to find all the implementations.For Admin Use
The text was updated successfully, but these errors were encountered: