* Implement simulate endpoint * Add GetProtoTx() * Add signing in test * Add txBuilderFromProto * Remove stray println * Update to master * Merge master * Fix tests * Make tests pass * Integrate in router * Make proto-gen * Fix lint * Really fix lint * Refactor to fix import cycles * Rename builder -> wrapper * Update proto/cosmos/base/reflection/v1beta1/reflection.proto * Fix after merge * t->w Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
29 lines
1018 B
Go
29 lines
1018 B
Go
package keeper
|
|
|
|
import (
|
|
abci "github.com/tendermint/tendermint/abci/types"
|
|
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
|
|
|
|
"github.com/cosmos/cosmos-sdk/baseapp"
|
|
"github.com/cosmos/cosmos-sdk/x/params/types"
|
|
)
|
|
|
|
// ConsensusParamsKeyTable returns an x/params module keyTable to be used in
|
|
// the BaseApp's ParamStore. The KeyTable registers the types along with the
|
|
// standard validation functions. Applications can choose to adopt this KeyTable
|
|
// or provider their own when the existing validation functions do not suite their
|
|
// needs.
|
|
func ConsensusParamsKeyTable() types.KeyTable {
|
|
return types.NewKeyTable(
|
|
types.NewParamSetPair(
|
|
baseapp.ParamStoreKeyBlockParams, abci.BlockParams{}, baseapp.ValidateBlockParams,
|
|
),
|
|
types.NewParamSetPair(
|
|
baseapp.ParamStoreKeyEvidenceParams, tmproto.EvidenceParams{}, baseapp.ValidateEvidenceParams,
|
|
),
|
|
types.NewParamSetPair(
|
|
baseapp.ParamStoreKeyValidatorParams, tmproto.ValidatorParams{}, baseapp.ValidateValidatorParams,
|
|
),
|
|
)
|
|
}
|