Documentation ¶
Index ¶
- func ActivatedParamKey(ty string) string
- func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState)
- func NewAnteHandler(k Keeper) sdk.AnteHandler
- type GenesisState
- type Getter
- func (k Getter) Get(ctx sdk.Context, key string, ptr interface{}) error
- func (k Getter) GetBool(ctx sdk.Context, key string) (res bool, err error)
- func (k Getter) GetBoolWithDefault(ctx sdk.Context, key string, def bool) (res bool)
- func (k Getter) GetInt(ctx sdk.Context, key string) (res sdk.Int, err error)
- func (k Getter) GetInt16(ctx sdk.Context, key string) (res int16, err error)
- func (k Getter) GetInt16WithDefault(ctx sdk.Context, key string, def int16) (res int16)
- func (k Getter) GetInt32(ctx sdk.Context, key string) (res int32, err error)
- func (k Getter) GetInt32WithDefault(ctx sdk.Context, key string, def int32) (res int32)
- func (k Getter) GetInt64(ctx sdk.Context, key string) (res int64, err error)
- func (k Getter) GetInt64WithDefault(ctx sdk.Context, key string, def int64) (res int64)
- func (k Getter) GetIntWithDefault(ctx sdk.Context, key string, def sdk.Int) (res sdk.Int)
- func (k Getter) GetRat(ctx sdk.Context, key string) (res sdk.Rat, err error)
- func (k Getter) GetRatWithDefault(ctx sdk.Context, key string, def sdk.Rat) (res sdk.Rat)
- func (k Getter) GetRaw(ctx sdk.Context, key string) []byte
- func (k Getter) GetString(ctx sdk.Context, key string) (res string, err error)
- func (k Getter) GetStringWithDefault(ctx sdk.Context, key string, def string) (res string)
- func (k Getter) GetUint(ctx sdk.Context, key string) (res sdk.Uint, err error)
- func (k Getter) GetUint16(ctx sdk.Context, key string) (res uint16, err error)
- func (k Getter) GetUint16WithDefault(ctx sdk.Context, key string, def uint16) (res uint16)
- func (k Getter) GetUint32(ctx sdk.Context, key string) (res uint32, err error)
- func (k Getter) GetUint32WithDefault(ctx sdk.Context, key string, def uint32) (res uint32)
- func (k Getter) GetUint64(ctx sdk.Context, key string) (res uint64, err error)
- func (k Getter) GetUint64WithDefault(ctx sdk.Context, key string, def uint64) (res uint64)
- func (k Getter) GetUintWithDefault(ctx sdk.Context, key string, def sdk.Uint) (res sdk.Uint)
- type Keeper
- type Setter
- func (k Setter) Set(ctx sdk.Context, key string, param interface{}) error
- func (k Setter) SetBool(ctx sdk.Context, key string, param bool)
- func (k Setter) SetInt(ctx sdk.Context, key string, param sdk.Int)
- func (k Setter) SetInt16(ctx sdk.Context, key string, param int16)
- func (k Setter) SetInt32(ctx sdk.Context, key string, param int32)
- func (k Setter) SetInt64(ctx sdk.Context, key string, param int64)
- func (k Setter) SetRat(ctx sdk.Context, key string, param sdk.Rat)
- func (k Setter) SetRaw(ctx sdk.Context, key string, param []byte)
- func (k Setter) SetString(ctx sdk.Context, key string, param string)
- func (k Setter) SetUint(ctx sdk.Context, key string, param sdk.Uint)
- func (k Setter) SetUint16(ctx sdk.Context, key string, param uint16)
- func (k Setter) SetUint32(ctx sdk.Context, key string, param uint32)
- func (k Setter) SetUint64(ctx sdk.Context, key string, param uint64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActivatedParamKey ¶
ActivatedParamKey - paramstore key for msg type activation
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k Keeper, data GenesisState)
InitGenesis stores activated type to param store
func NewAnteHandler ¶
func NewAnteHandler(k Keeper) sdk.AnteHandler
NewAnteHandler returns an AnteHandler that checks whether msg type is activate or not
Types ¶
type GenesisState ¶
type GenesisState struct {
ActivatedTypes []string `json:"activated-types"`
}
GenesisState defines initial activated msg types
type Getter ¶
type Getter struct {
// contains filtered or unexported fields
}
Getter exposes methods related with only getting params
func (Getter) GetBoolWithDefault ¶
GetBoolWithDefault is helper function for bool params with default value
func (Getter) GetInt16WithDefault ¶
GetInt16WithDefault is helper function for int16 params with default value
func (Getter) GetInt32WithDefault ¶
GetInt32WithDefault is helper function for int32 params with default value
func (Getter) GetInt64WithDefault ¶
GetInt64WithDefault is helper function for int64 params with default value
func (Getter) GetIntWithDefault ¶
GetIntWithDefault is helper function for sdk.Int params with default value
func (Getter) GetRatWithDefault ¶
GetRatWithDefault is helper function for sdk.Rat params with default value
func (Getter) GetStringWithDefault ¶
GetStringWithDefault is helper function for string params with default value
func (Getter) GetUint16WithDefault ¶
GetUint16WithDefault is helper function for uint16 params with default value
func (Getter) GetUint32WithDefault ¶
GetUint32WithDefault is helper function for uint32 params with default value
func (Getter) GetUint64WithDefault ¶
GetUint64WithDefault is helper function for uint64 params with default value
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper manages global parameter store
func InitKeeper ¶
InitKeeper constructs a new Keeper with initial parameters
type Setter ¶
type Setter struct {
Getter
}
Setter exposes all methods including Set