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

     1  /*
     2  NOTE: Usage of x/params to manage parameters is deprecated in favor of x/gov
     3  controlled execution of MsgUpdateParams messages. These types remains solely
     4  for migration purposes and will be removed in a future release.
     5  */
     6  package types
     7  
     8  import (
     9  	paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
    10  )
    11  
    12  // Parameter store keys
    13  var (
    14  	KeyMintDenom           = []byte("MintDenom")
    15  	KeyInflationRateChange = []byte("InflationRateChange")
    16  	KeyInflationMax        = []byte("InflationMax")
    17  	KeyInflationMin        = []byte("InflationMin")
    18  	KeyGoalBonded          = []byte("GoalBonded")
    19  	KeyBlocksPerYear       = []byte("BlocksPerYear")
    20  )
    21  
    22  // Deprecated: ParamTable for minting module.
    23  func ParamKeyTable() paramtypes.KeyTable {
    24  	return paramtypes.NewKeyTable().RegisterParamSet(&Params{})
    25  }
    26  
    27  // Implements params.ParamSet
    28  //
    29  // Deprecated.
    30  func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs {
    31  	return paramtypes.ParamSetPairs{
    32  		paramtypes.NewParamSetPair(KeyMintDenom, &p.MintDenom, validateMintDenom),
    33  		paramtypes.NewParamSetPair(KeyInflationRateChange, &p.InflationRateChange, validateInflationRateChange),
    34  		paramtypes.NewParamSetPair(KeyInflationMax, &p.InflationMax, validateInflationMax),
    35  		paramtypes.NewParamSetPair(KeyInflationMin, &p.InflationMin, validateInflationMin),
    36  		paramtypes.NewParamSetPair(KeyGoalBonded, &p.GoalBonded, validateGoalBonded),
    37  		paramtypes.NewParamSetPair(KeyBlocksPerYear, &p.BlocksPerYear, validateBlocksPerYear),
    38  	}
    39  }