params

package
v0.37.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2020 License: Apache-2.0 Imports: 15 Imported by: 1,819

Documentation

Overview

nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/cosmos/cosmos-sdk/x/params/subspace ALIASGEN: github.com/cosmos/cosmos-sdk/x/params/types

nolint: deadcode unused

Index

Constants

View Source
const (
	StoreKey             = subspace.StoreKey
	TStoreKey            = subspace.TStoreKey
	TestParamStore       = subspace.TestParamStore
	DefaultCodespace     = types.DefaultCodespace
	CodeUnknownSubspace  = types.CodeUnknownSubspace
	CodeSettingParameter = types.CodeSettingParameter
	CodeEmptyData        = types.CodeEmptyData
	ModuleName           = types.ModuleName
	RouterKey            = types.RouterKey
	ProposalTypeChange   = types.ProposalTypeChange
)

Variables

View Source
var (
	// functions aliases
	NewSubspace                = subspace.NewSubspace
	NewKeyTable                = subspace.NewKeyTable
	DefaultTestComponents      = subspace.DefaultTestComponents
	RegisterCodec              = types.RegisterCodec
	ErrUnknownSubspace         = types.ErrUnknownSubspace
	ErrSettingParameter        = types.ErrSettingParameter
	ErrEmptyChanges            = types.ErrEmptyChanges
	ErrEmptySubspace           = types.ErrEmptySubspace
	ErrEmptyKey                = types.ErrEmptyKey
	ErrEmptyValue              = types.ErrEmptyValue
	NewParameterChangeProposal = types.NewParameterChangeProposal
	NewParamChange             = types.NewParamChange
	NewParamChangeWithSubkey   = types.NewParamChangeWithSubkey
	ValidateChanges            = types.ValidateChanges

	// variable aliases
	ModuleCdc = types.ModuleCdc
)

Functions

func NewParamChangeProposalHandler

func NewParamChangeProposalHandler(k Keeper) govtypes.Handler

Types

type AppModuleBasic

type AppModuleBasic struct{}

app module basics object

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

default genesis state

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(_ *codec.Codec) *cobra.Command

get the root query command of this module

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(_ *codec.Codec) *cobra.Command

get the root tx command of this module

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

module name

func (AppModuleBasic) RegisterCodec

func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)

register module codec

func (AppModuleBasic) RegisterRESTRoutes

func (AppModuleBasic) RegisterRESTRoutes(_ context.CLIContext, _ *mux.Router)

register rest routes

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(_ json.RawMessage) error

module validate genesis

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper of the global paramstore

func NewKeeper

func NewKeeper(cdc *codec.Codec, key *sdk.KVStoreKey, tkey *sdk.TransientStoreKey, codespace sdk.CodespaceType) (k Keeper)

NewKeeper constructs a params keeper

func (Keeper) GetSubspace added in v0.25.0

func (k Keeper) GetSubspace(s string) (Subspace, bool)

Get existing substore from keeper

func (Keeper) Logger added in v0.36.0

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) Subspace added in v0.25.0

func (k Keeper) Subspace(s string) Subspace

Allocate subspace used for keepers

type KeyTable

type KeyTable = subspace.KeyTable

type ParamChange added in v0.36.0

type ParamChange = types.ParamChange

type ParamSet

type ParamSet = subspace.ParamSet

type ParamSetPair

type ParamSetPair = subspace.ParamSetPair

type ParamSetPairs

type ParamSetPairs = subspace.ParamSetPairs

type ParameterChangeProposal added in v0.36.0

type ParameterChangeProposal = types.ParameterChangeProposal

type ReadOnlySubspace

type ReadOnlySubspace = subspace.ReadOnlySubspace

type Subspace

type Subspace = subspace.Subspace

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL