docs(sdk): fix and expand the Upgrades and Cosmovisor guides#331
docs(sdk): fix and expand the Upgrades and Cosmovisor guides#331evanorti wants to merge 3 commits into
Conversation
Greptile SummaryThis PR fixes and expands the Cosmovisor and upgrade guides for Cosmos SDK v0.54, correcting broken code snippets and rewriting the SimApp walkthrough around a tested v0.53.7→v0.54.3 end-to-end run. Changes are applied identically to both
Confidence Score: 4/5Safe to merge after fixing the two bold-text style violations in the cosmovisor intro paragraph. The documentation changes are well-reasoned and the author verified them end-to-end against real SDK versions. The only finding is cosmetic: two version strings are wrapped in bold in both cosmovisor files, which the repo style rules explicitly prohibit. All code snippets, CLI commands, and import paths look accurate for v0.54. sdk/latest/guides/upgrades/cosmovisor.mdx and sdk/next/guides/upgrades/cosmovisor.mdx — both have the bold version strings on the SimApp example intro line. Important Files Changed
|
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Corrects broken code in the upgrade guide, restructures it for first-time readers, and modernizes the Cosmovisor example. All verified against Cosmos SDK v0.54 by running a real upgrade, store migration, and Cosmovisor run end to end.
upgrade.mdx:
Fixed the InitGenesis override snippet (used context.Context where sdk.Context is required), InitChainer now handles the SetModuleVersionMap error, and added the correct x/upgrade import path for v0.54.
Reordered around a lifecycle overview, added x/upgrade setup and a real migration body, and a counter upgrade example linking the tutorial and cosmos/example.
cosmovisor.mdx:
Fixed BeginBlocker→PreBlocker, simapp/upgrade.go→upgrades.go, and added the prepare-upgrade command.
Rewrote the SimApp example from v0.47→v0.50 to a tested v0.53.7→v0.54.3 run; bumped pins to v1.7.1.