Documentation ¶
Index ¶
- Constants
- func ErrInvalidString(valuestr string) sdk.Error
- func GetParamKey(keystr string) string
- func GetParamSpaceFromKey(keystr string) string
- func NewQuerier(keeper Keeper) sdk.Querier
- func RegisterCodec(cdc *codec.Codec)
- func RegisterParamSet(paramSets map[string]ParamSet, ps ...ParamSet)
- type GovArrayParameter
- type GovParameter
- type Keeper
- type KeyValuePairs
- type ParamSet
- type ParamSets
- type Parameter
- type QueryModuleParams
- type ReadOnlySubspace
- type SignalParameter
- type Subspace
- type TypeTable
Constants ¶
View Source
const ( DefaultCodespace sdk.CodespaceType = "params" // CodeInvalidString sdk.CodeType = 0 //gov CodeInvalidMinDeposit sdk.CodeType = 100 CodeInvalidMinDepositDenom sdk.CodeType = 101 CodeInvalidMinDepositAmount sdk.CodeType = 102 CodeInvalidDepositPeriod sdk.CodeType = 103 CodeInvalidVotingPeriod sdk.CodeType = 104 CodeInvalidVotingProcedure sdk.CodeType = 105 CodeInvalidThreshold sdk.CodeType = 106 CodeInvalidParticipation sdk.CodeType = 107 CodeInvalidVeto sdk.CodeType = 108 CodeInvalidGovernancePenalty sdk.CodeType = 109 CodeInvalidTallyingProcedure sdk.CodeType = 110 CodeInvalidKey sdk.CodeType = 111 CodeInvalidModule sdk.CodeType = 112 CodeInvalidQueryParams sdk.CodeType = 113 CodeInvalidMaxProposalNum sdk.CodeType = 114 CodeInvalidSystemHaltPeriod sdk.CodeType = 115 //service CodeInvalidMaxRequestTimeout sdk.CodeType = 200 CodeInvalidMinDepositMultiple sdk.CodeType = 201 CodeInvalidServiceFeeTax sdk.CodeType = 202 CodeInvalidSlashFraction sdk.CodeType = 203 CodeInvalidArbitrationTimeLimit sdk.CodeType = 204 CodeComplaintRetrospect sdk.CodeType = 205 CodeInvalidServiceTxSizeLimit sdk.CodeType = 206 //upgrade CodeInvalidUpgradeParams sdk.CodeType = 300 //mint CodeInvalidMintInflation sdk.CodeType = 400 //stake CodeInvalidUnbondingTime sdk.CodeType = 500 CodeInvalidMaxValidators sdk.CodeType = 501 CodeInvalidBondDenom sdk.CodeType = 502 //auth CodeInvalidGasPriceThreshold sdk.CodeType = 600 CodeInvalidTxSizeLimit sdk.CodeType = 601 //distribution CodeInvalidCommunityTax sdk.CodeType = 700 CodeInvalidBaseProposerReward sdk.CodeType = 701 CodeInvalidBonusProposerReward sdk.CodeType = 702 //slash CodeInvalidSlashParams sdk.CodeType = 800 //asset CodeInvalidAssetTaxRate sdk.CodeType = 900 CodeInvalidMintTokenFeeRatio sdk.CodeType = 901 CodeInvalidGatewayAssetFeeRatio sdk.CodeType = 902 CodeInvalidIssueTokenBaseFee sdk.CodeType = 903 CodeInvalidCreateGatewayBaseFee sdk.CodeType = 904 )
View Source
const ( SignalParamspace = "Sig" GovParamspace = "Gov" )
View Source
const (
QueryModule = "module"
)
query endpoints supported by the params Querier
Variables ¶
This section is empty.
Functions ¶
func ErrInvalidString ¶
func GetParamKey ¶
func GetParamSpaceFromKey ¶
func NewQuerier ¶
creates a querier for params REST endpoints
func RegisterParamSet ¶
Types ¶
type GovArrayParameter ¶
type GovParameter ¶
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) (k Keeper)
NewKeeper constructs a params keeper
func (Keeper) GetParamSet ¶
Get existing substore from keeper
func (Keeper) GetSubspace ¶
Get existing substore from keeper
func (Keeper) RegisterParamSet ¶
type QueryModuleParams ¶
type QueryModuleParams struct {
Module string
}
defines the params for query: "custom/params/module"
type ReadOnlySubspace ¶
type ReadOnlySubspace = subspace.ReadOnlySubspace
re-export types from subspace
type SignalParameter ¶
type SignalParameter interface { Parameter }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.