Skip to content

chore(x/vaas/consumer): remove fabricated staking.Params response fields#45

Merged
giunatale merged 2 commits into
mainfrom
giunatale/clean-consumer-stakingparam-query
May 19, 2026
Merged

chore(x/vaas/consumer): remove fabricated staking.Params response fields#45
giunatale merged 2 commits into
mainfrom
giunatale/clean-consumer-stakingparam-query

Conversation

@giunatale
Copy link
Copy Markdown
Contributor

The consumer module registers a stub cosmos.staking.v1beta1.Query/Params handler so IBC relayers can read UnbondingTime when deriving the trusting_period of a Tendermint light client targeting the consumer chain.

The stub used to fill in the rest of the response with hardcoded values, but they are fictional and misleading. On top of that, they are essentially not needed. Removing these hard-coded values to clean-up the code. Added also a test for regression, although it could be arguably "too much".

A second-degree consideration here: why are we providing this stub? I guess because ts-relayer doesn't have a "vaas mode" to read the required values directly from querying the consumer module's params? The interchain-security implementation doesn't provide this stub.

Copy link
Copy Markdown
Contributor

@tbruyelle tbruyelle left a comment

Choose a reason for hiding this comment

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

I'm not sure either why these values were added in the first place, but it looks legitimate to remove them.

Since the e2e tests are still passing, this tends to prove that these values aren't really needed.

@giunatale giunatale merged commit 538a0af into main May 19, 2026
4 checks passed
@giunatale giunatale deleted the giunatale/clean-consumer-stakingparam-query branch May 19, 2026 12:04
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.

2 participants