Documentation ¶
Index ¶
- func GetMigrationHandler(k Keeper) func(sdk.Context) error
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetGovernanceKey(ctx sdk.Context) (multisig.LegacyAminoPubKey, bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetRole(ctx sdk.Context, address sdk.AccAddress) exported.Role
- func (k Keeper) GovernanceKey(c context.Context, req *types.QueryGovernanceKeyRequest) (*types.QueryGovernanceKeyResponse, error)
- func (k Keeper) InitGenesis(ctx sdk.Context, genState *types.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMigrationHandler ¶ added in v0.17.0
GetMigrationHandler returns a migration handler from v1 to v2 The order of role enums has changed, so we have to migrate all government accounts. Enums are int32 underneath, so without this migration, the meaning of the value would change and open up the system to attacks
func NewMsgServerImpl ¶
NewMsgServerImpl returns a new msg server instance
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper provides access to all state changes regarding the gov module
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
ExportGenesis returns the reward module's genesis state.
func (Keeper) GetGovernanceKey ¶
GetGovernanceKey gets the multisig governance key
func (Keeper) GovernanceKey ¶
func (k Keeper) GovernanceKey(c context.Context, req *types.QueryGovernanceKeyRequest) (*types.QueryGovernanceKeyResponse, error)
GovernanceKey returns the multisig governance key
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, genState *types.GenesisState)
InitGenesis initializes the reward module's state from a given genesis state.
Click to show internal directories.
Click to hide internal directories.