params

package
v0.0.0-...-16df0a4 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/BITCOIVA/Bitcoiva-sdk/x/params/subspace ALIASGEN: github.com/BITCOIVA/Bitcoiva-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

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

Get existing substore from keeper

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) Subspace

func (k Keeper) Subspace(s string) Subspace

Allocate subspace used for keepers

type KeyTable

type KeyTable = subspace.KeyTable

type ParamChange

type ParamChange = types.ParamChange

type ParamSet

type ParamSet = subspace.ParamSet

type ParamSetPair

type ParamSetPair = subspace.ParamSetPair

type ParamSetPairs

type ParamSetPairs = subspace.ParamSetPairs

type ParameterChangeProposal

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