Skip to content

Cosmos SDK: provide an API for accessing state and store #2610

@melekes

Description

@melekes

Feature Request

Summary

The latest version of Cosmos SDK imports state and store packages (which in v1 are internal, meaning can't be imported outside of CometBFT).

Problem Definition

Previously, the way to test something on a testnet for a single validator was by modifying the genesis.json file and skipping blocksync as indicated in #1679. A new solution was developed because exporting genesis.json can take minutes and requires lots of RAM. Instead of modifying the genesis.json file, Cosmos SDK directly modifies the chain's state and updates the store: https://github.com/cosmos/cosmos-sdk/blob/main/server/start.go#L729. For that, it needs access to state and store packages, which are currently internal.

Proposal

Either create a subset of API needed for ^ or completely reexport state and store packages.

Metadata

Metadata

Labels

rfcRequest for comments

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions