cosmos-sdk/baseapp/params.go
Matt Kocubinski 9f42137462
refactor: move baseapp/AppVersionModifer -> core/app (#20361)
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2024-05-13 14:53:11 +00:00

18 lines
424 B
Go

package baseapp
import (
"context"
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
)
const InitialAppVersion uint64 = 0
// ParamStore defines the interface the parameter store used by the BaseApp must
// fulfill.
type ParamStore interface {
Get(ctx context.Context) (cmtproto.ConsensusParams, error)
Has(ctx context.Context) (bool, error)
Set(ctx context.Context, cp cmtproto.ConsensusParams) error
}