Skip to content

Generic support for upgrades and for action module as v1.0.0#20

Merged
a-ok123 merged 2 commits intomasterfrom
upgrade-loigc
May 5, 2025
Merged

Generic support for upgrades and for action module as v1.0.0#20
a-ok123 merged 2 commits intomasterfrom
upgrade-loigc

Conversation

@a-ok123
Copy link
Copy Markdown
Contributor

@a-ok123 a-ok123 commented May 3, 2025

Added generic support for upgrades and for action module as v1.0.0

@a-ok123 a-ok123 requested a review from Copilot May 3, 2025 18:36
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds generic upgrade support for the action module, preparing the codebase for v1.0.0 releases. Key changes include:

  • Adding a consensus version constant in the action module types.
  • Creating a new upgrade handler with initial genesis configuration for the action module.
  • Updating the application startup to register the upgrade handler and configure the store loader.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
x/action/types/genesis.go Added ConsensusVersion constant to support module version tracking.
app/upgrades/v1_0_0/upgrade.go Introduced the v1.0.0 upgrade handler with genesis initialization and store upgrades.
app/app.go Registered the upgrade handler and set up the store loader for v1.0.0.

Copy link
Copy Markdown
Contributor

@akobrin1 akobrin1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we use versioning for action module from the beginning? (https://docs.cosmos.network/main/build/architecture/adr-054-semver-compatible-modules) - like "/x/action/v1" instead of "x/action". That will make so much easier to maintain multiple versions of action module - in case we introduce some breaking changes like changing field names/types, params. etc.

@a-ok123 a-ok123 merged commit 4a7f34a into master May 5, 2025
8 checks passed
@mateeullahmalik mateeullahmalik deleted the upgrade-loigc branch December 16, 2025 14:00
@roomote-v0 roomote-v0 Bot mentioned this pull request May 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants