github.com/cosmos/cosmos-sdk@v0.50.10/x/staking/types/params_legacy.go (about)

     1  package types
     2  
     3  import paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
     4  
     5  var (
     6  	KeyUnbondingTime     = []byte("UnbondingTime")
     7  	KeyMaxValidators     = []byte("MaxValidators")
     8  	KeyMaxEntries        = []byte("MaxEntries")
     9  	KeyBondDenom         = []byte("BondDenom")
    10  	KeyHistoricalEntries = []byte("HistoricalEntries")
    11  	KeyMinCommissionRate = []byte("MinCommissionRate")
    12  )
    13  
    14  var _ paramtypes.ParamSet = (*Params)(nil)
    15  
    16  // Deprecated: now params can be accessed on key `0x51` on the staking store.
    17  // ParamTable for staking module
    18  func ParamKeyTable() paramtypes.KeyTable {
    19  	return paramtypes.NewKeyTable().RegisterParamSet(&Params{})
    20  }
    21  
    22  // Deprecated: Implements params.ParamSet
    23  func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs {
    24  	return paramtypes.ParamSetPairs{
    25  		paramtypes.NewParamSetPair(KeyUnbondingTime, &p.UnbondingTime, validateUnbondingTime),
    26  		paramtypes.NewParamSetPair(KeyMaxValidators, &p.MaxValidators, validateMaxValidators),
    27  		paramtypes.NewParamSetPair(KeyMaxEntries, &p.MaxEntries, validateMaxEntries),
    28  		paramtypes.NewParamSetPair(KeyHistoricalEntries, &p.HistoricalEntries, validateHistoricalEntries),
    29  		paramtypes.NewParamSetPair(KeyBondDenom, &p.BondDenom, validateBondDenom),
    30  		paramtypes.NewParamSetPair(KeyMinCommissionRate, &p.MinCommissionRate, validateMinCommissionRate),
    31  	}
    32  }