Enable all module query commands via AutoCLI integration - #30
Merged
vNodesV merged 4 commits intoFeb 11, 2026
Merged
Conversation
Integrate SDK 0.50 AutoCLI to generate query commands for all core modules (auth, bank, staking, distribution, gov, slashing, mint, params, feegrant, authz, evidence, upgrade). Uses ModuleOptions with static proto descriptors from zero-value AppModule instances to avoid nil keeper panics. Wasm module uses Modules map for custom command detection. All 19 query subcommands now available. Co-authored-by: vNodesV <100853686+vNodesV@users.noreply.github.com>
Co-authored-by: vNodesV <100853686+vNodesV@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add and activate all query modules for functionality
Enable all module query commands via AutoCLI integration
Feb 11, 2026
vNodesV
marked this pull request as ready for review
February 11, 2026 19:38
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
vNodesV
merged commit Feb 11, 2026
40fa2dd
into
copilot/investigate-command-module-loss
9 of 15 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Most
memed qsubcommands were missing because SDK 0.50 core modules (auth, bank, staking, etc.) droppedGetQueryCmd()in favor of AutoCLI proto-generated commands. Only ibc, transfer, and wasm still use the legacy pattern.Approach
Integrate
autocli.AppOptions.EnhanceRootCommand()to auto-generate query (and tx) commands from protobuf service descriptors for all core modules.ModuleOptionsmap populated viaAppModule{}.AutoCLIOptions()on zero-value structs — safe because these methods only return static proto descriptors, no keeper accessModuleOptions(notModules) to avoid nil-pointer panics fromGetTxCmd()on zero-value structs with unexported codec fieldsModulesmap soHasCustomQueryCommand/HasCustomTxCommanddetection worksResult
memed qnow exposes 19 subcommands: auth, authz, bank, block, comet-validator-set, distribution, evidence, feegrant, gov, ibc, ibc-transfer, mint, params, slashing, staking, tx, txs, upgrade, wasm.Tx commands also gain auth, mint, slashing entries via the same
EnhanceRootCommandcall.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.