Documentation ¶
Overview ¶
nolint autogenerated code using github.com/rigelrozanski/multitool aliases generated for the following subdirectories: ALIASGEN: github.com/bianjieai/irita/modules/guardian/internal/keeper ALIASGEN: github.com/bianjieai/irita/modules/guardian/internal/types
Index ¶
- Constants
- Variables
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
- func NewHandler(k Keeper) sdk.Handler
- type AccountType
- type AddGuardian
- type AppModule
- func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
- func (AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(_ context.CLIContext, _ *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type DeleteGuardian
- type GenesisState
- type Guardian
- type Keeper
- type MsgAddProfiler
- type MsgAddTrustee
- type MsgDeleteProfiler
- type MsgDeleteTrustee
- type Profilers
- type Trustees
Constants ¶
const ( EventTypeAddProfiler = types.EventTypeAddProfiler EventTypeAddTrustee = types.EventTypeAddTrustee EventTypeDeleteProfiler = types.EventTypeDeleteProfiler EventTypeDeleteTrustee = types.EventTypeDeleteTrustee AttributeKeyProfilerAddress = types.AttributeKeyProfilerAddress AttributeKeyTrusteeAddress = types.AttributeKeyTrusteeAddress AttributeKeyAddedBy = types.AttributeKeyAddedBy AttributeKeyDeletedBy = types.AttributeKeyDeletedBy AttributeValueCategory = types.AttributeValueCategory ModuleName = types.ModuleName StoreKey = types.StoreKey RouterKey = types.RouterKey TypeMsgAddProfiler = types.TypeMsgAddProfiler TypeMsgDeleteProfiler = types.TypeMsgDeleteProfiler TypeMsgAddTrustee = types.TypeMsgAddTrustee TypeMsgDeleteTrustee = types.TypeMsgDeleteTrustee QuerierRoute = types.QuerierRoute QueryProfilers = types.QueryProfilers QueryTrustees = types.QueryTrustees Genesis = types.Genesis Ordinary = types.Ordinary )
Variables ¶
var ( // functions aliases NewKeeper = keeper.NewKeeper NewQuerier = keeper.NewQuerier RegisterCodec = types.RegisterCodec ErrUnknownOperator = types.ErrUnknownOperator ErrUnknownProfiler = types.ErrUnknownProfiler ErrUnknownTrustee = types.ErrUnknownTrustee ErrDeleteGenesisProfiler = types.ErrDeleteGenesisProfiler ErrDeleteGenesisTrustee = types.ErrDeleteGenesisTrustee NewGenesisState = types.NewGenesisState DefaultGenesisState = types.DefaultGenesisState ProfilerKey = types.ProfilerKey TrusteeKey = types.TrusteeKey GetProfilerKey = types.GetProfilerKey GetTrusteeKey = types.GetTrusteeKey GetProfilersSubspaceKey = types.GetProfilersSubspaceKey GetTrusteesSubspaceKey = types.GetTrusteesSubspaceKey NewMsgAddProfiler = types.NewMsgAddProfiler NewMsgDeleteProfiler = types.NewMsgDeleteProfiler NewMsgAddTrustee = types.NewMsgAddTrustee NewMsgDeleteTrustee = types.NewMsgDeleteTrustee NewGuardian = types.NewGuardian AccountTypeFromString = types.AccountTypeFromString // variable aliases ModuleCdc = types.ModuleCdc )
Functions ¶
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
InitGenesis stores genesis data
func NewHandler ¶
NewHandler returns a handler for all "guardian" type messages.
Types ¶
type AccountType ¶
type AccountType = types.AccountType
type AddGuardian ¶
type AddGuardian = types.AddGuardian
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule implements an application module for the guardian module.
func NewAppModule ¶
NewAppModule creates a new AppModule object
func (AppModule) BeginBlock ¶
func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
BeginBlock returns the begin blocker for the guardian module.
func (AppModule) EndBlock ¶
func (AppModule) EndBlock(_ sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock returns the end blocker for the guardian module. It returns no validator updates.
func (AppModule) ExportGenesis ¶
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
ExportGenesis returns the exported genesis state as raw bytes for the mint module.
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis performs genesis initialization for the guardian module. It returns no validator updates.
func (AppModule) NewHandler ¶
NewHandler returns an sdk.Handler for the guardian module.
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns the guardian module sdk.Querier.
func (AppModule) QuerierRoute ¶
QuerierRoute returns the guardian module's querier route name.
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
RegisterInvariants registers the guardian module invariants.
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic defines the basic application module used by the guardian module.
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis returns default genesis state as raw bytes for the guardian module
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd returns the root query command for the guardian module.
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
GetTxCmd returns no root tx command for the guardian module.
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
Name returns the guardian module's name.
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec registers the guardian module's types for the given codec.
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(_ context.CLIContext, _ *mux.Router)
RegisterRESTRoutes registers the REST routes for the guardian module.
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
ValidateGenesis performs genesis state validation for the guardian module.
type DeleteGuardian ¶
type DeleteGuardian = types.DeleteGuardian
type GenesisState ¶
type GenesisState = types.GenesisState
func ExportGenesis ¶
func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState
ExportGenesis outputs genesis data
type MsgAddProfiler ¶
type MsgAddProfiler = types.MsgAddProfiler
type MsgAddTrustee ¶
type MsgAddTrustee = types.MsgAddTrustee
type MsgDeleteProfiler ¶
type MsgDeleteProfiler = types.MsgDeleteProfiler
type MsgDeleteTrustee ¶
type MsgDeleteTrustee = types.MsgDeleteTrustee