-
Notifications
You must be signed in to change notification settings - Fork 552
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
fix: restore runtime app API registered module discovery #3785
Conversation
@clockworkgr I think that the TS client code is properly generated but there are other issues with the TS client itself I believe. Would you be able to take a look? I got these errors:
It seems that the fix is a quick one, there is a symbol name clash. |
We're still missing modules here: nft |
The IBC ones are not discovered because there is a different wiring for them until they are updated, I'm working on changes to discover them. A part from that @clockworkgr have you noticed other missing modules? |
Just those 6 I think |
This is a temporary feature that should be removed once IBC modules are injected inteas of being wired using the definitions from the scafolded app file `app/ibc.go`.
The removed snippet was not able to handle some Go import paths which were removed, like the IBC ones, also causing that the TS client generation was incomplete because of the missing modules.
The "cosmossdk.io/x" Go packages MUST search proto files in the Cosmos SDK Go package because these packages don't have the proto files included so they can't be discovered.
Discovery changed to use go mod download instead of using Go's module path which might not be present in some context.
I think the TS client generation issues are solved already but the CI checks are taking really long to complete. I'm not sure if it's only this PR or is a general issue with the runners. With these changes the "cosmossdk.io/x" Go packages search proto files within the Cosmos SDK Go package because these packages don't have the proto files included so they can't otherwise be discovered. Custom wired IBC modules from the TS client generated code was missing some modules which are now generated, like I will remove the Draft status and sync with |
@clockworkgr would you take a look to the TS generated code? I see that all the modules are generated now but we are missing some TS client fixes. |
Ok.. There is one bug with how There are the ts template updates which I'm going to push here. But the most important issue has to do with the module filepath for the cosmossdk.io modules. Here: cli/ignite/pkg/cosmosgen/template.go Lines 71 to 75 in 5f55d40
this worked to "copy" the folder structure of the proto files into the types/ subfolder. to refer to the appropriate generated types. For the cosmossdk.io ones, this now results in things like: instead of: Any ideas how to best fix this? |
Working on it 👍 Update: Fixed in b9b090a |
Ok. Will check and confirm |
Seems to generate all modules except for NFT.. Is that expected? do we add nft to keepers by default? I see an issue where the Paginated field of HTTPQueries is not set properly and all queries come up as non-paginated...Not sure where that error stems from though |
Yes, the NFT module is not scaffolded by default.
This one I'm not sure. I remember seeing someone mentioning an issue with the pagination but I can't find the issue. Maybe we can deal with it in a new issue? |
ok then
Ok, we can do that. But def needs sorting out. Along with updating the web templates once cosmjs patch is released |
Fixes #3783