cosmos-sdk/x/consensus/exported/exported.go
2024-08-27 11:22:47 +00:00

16 lines
432 B
Go

package exported
import (
"context"
cmtproto "github.com/cometbft/cometbft/api/cometbft/types/v1"
)
// ConsensusParamSetter defines the interface fulfilled by BaseApp's
// ParamStore which allows setting its appVersion field.
type ConsensusParamSetter interface {
Get(ctx context.Context) (cmtproto.ConsensusParams, error)
Has(ctx context.Context) (bool, error)
Set(ctx context.Context, cp cmtproto.ConsensusParams) error
}