Documentation ¶
Index ¶
- Constants
- Variables
- func InitGenesisParameter(p Parameter, ctx sdk.Context, genesisData interface{})
- func RegisterGovParamMapping(gps ...GovParameter)
- func SetParamReadWriter(paramSpace Subspace, ps ...Parameter)
- type GovArrayParameter
- type GovParameter
- type Keeper
- type KeyValuePairs
- type ParamSet
- type Parameter
- type ReadOnlySubspace
- type SignalParameter
- type Subspace
- type TypeTable
Constants ¶
View Source
const ( DefaultCodespace sdk.CodespaceType = "params" CodeInvalidMinDeposit sdk.CodeType = 100 CodeInvalidMinDepositDenom sdk.CodeType = 101 CodeInvalidMinDepositAmount sdk.CodeType = 102 CodeInvalidDepositPeriod sdk.CodeType = 103 CodeInvalidCurrentUpgradeProposalID sdk.CodeType = 104 CodeInvalidVotingPeriod sdk.CodeType = 105 CodeInvalidVotingProcedure sdk.CodeType = 106 CodeInvalidThreshold sdk.CodeType = 107 CodeInvalidParticipation sdk.CodeType = 108 CodeInvalidVeto sdk.CodeType = 109 CodeInvalidTallyingProcedure sdk.CodeType = 110 CodeInvalidKey sdk.CodeType = 111 CodeInvalidParamString sdk.CodeType = 112 CodeInvalidModule sdk.CodeType = 113 CodeInvalidQueryParams sdk.CodeType = 114 CodeInvalidMaxRequestTimeout sdk.CodeType = 115 CodeInvalidMinDepositMultiple sdk.CodeType = 116 )
View Source
const ( SignalParamspace = "Sig" GovParamspace = "Gov" )
Variables ¶
View Source
var ParamMapping = make(map[string]GovParameter)
Functions ¶
func InitGenesisParameter ¶
func RegisterGovParamMapping ¶
func RegisterGovParamMapping(gps ...GovParameter)
func SetParamReadWriter ¶
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) GetSubspace ¶
Get existing substore from keeper
type ReadOnlySubspace ¶
type ReadOnlySubspace = subspace.ReadOnlySubspace
re-export types from subspace
type SignalParameter ¶
type SignalParameter interface { Parameter }
Click to show internal directories.
Click to hide internal directories.