Co-authored-by: marbar3778 <marbar3778@yahoo.com> Co-authored-by: cool-developer <51834436+cool-develope@users.noreply.github.com> Co-authored-by: Aaron Craelius <aaron@regen.network> Co-authored-by: Matt Kocubinski <mkocubinski@gmail.com> Co-authored-by: Julien Robert <julien@rbrt.fr>
28 lines
738 B
Go
28 lines
738 B
Go
package exported
|
|
|
|
import (
|
|
"context"
|
|
|
|
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
)
|
|
|
|
type (
|
|
// ParamStore defines an interface that implements the legacy x/params Subspace
|
|
// type.
|
|
//
|
|
// NOTE: This is used solely for migration of x/params managed parameters.
|
|
ParamStore interface {
|
|
Get(ctx sdk.Context, key []byte, ptr interface{})
|
|
}
|
|
|
|
// ConsensusParamSetter defines the interface fulfilled by BaseApp's
|
|
// ParamStore which allows setting its appVersion field.
|
|
ConsensusParamSetter interface {
|
|
Get(ctx context.Context) (cmtproto.ConsensusParams, error)
|
|
Has(ctx context.Context) (bool, error)
|
|
Set(ctx context.Context, cp cmtproto.ConsensusParams) error
|
|
}
|
|
)
|