Documentation
¶
Index ¶
- Constants
- Variables
- func DefaultGenesisState() *vtypes.GenesisState
- func ExportGenesis(ctx sdk.Context, k keeper.Keeper) *vtypes.GenesisState
- func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *vtypes.GenesisState
- func InitGenesis(ctx sdk.Context, k keeper.Keeper, data *vtypes.GenesisState)
- func ValidateGenesis(data *vtypes.GenesisState) error
- type AppModule
- func (am AppModule) BeginBlock(_ context.Context) error
- func (am AppModule) ConsensusVersion() uint64
- func (am AppModule) EndBlock(ctx context.Context) error
- func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONCodec) json.RawMessage
- func (AppModule) GenerateGenesisState(_ *module.SimulationState)
- func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONCodec, data json.RawMessage)
- func (am AppModule) IsAppModule()
- func (am AppModule) IsOnePerModuleType()
- func (AppModule) Name() string
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) RegisterServices(cfg module.Configurator)
- func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry)
- func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
- func (AppModuleBasic) GetQueryCmd() *cobra.Command
- func (AppModuleBasic) GetTxCmd() *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
- func (AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
- type Keeper
Constants ¶
View Source
const ( StoreKey = module.StoreKey ModuleName = module.ModuleName )
Variables ¶
View Source
var NewKeeper = keeper.NewKeeper
Functions ¶
func DefaultGenesisState ¶
func DefaultGenesisState() *vtypes.GenesisState
func ExportGenesis ¶
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *vtypes.GenesisState
func InitGenesis ¶
func ValidateGenesis ¶
func ValidateGenesis(data *vtypes.GenesisState) error
Types ¶
type AppModule ¶
type AppModule struct {
AppModuleBasic
// contains filtered or unexported fields
}
func (AppModule) ConsensusVersion ¶
func (AppModule) ExportGenesis ¶
func (AppModule) GenerateGenesisState ¶
func (AppModule) GenerateGenesisState(_ *module.SimulationState)
func (AppModule) InitGenesis ¶
func (AppModule) IsAppModule ¶
func (am AppModule) IsAppModule()
func (AppModule) IsOnePerModuleType ¶
func (am AppModule) IsOnePerModuleType()
func (AppModule) QuerierRoute ¶
func (AppModule) RegisterInvariants ¶
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
func (AppModule) RegisterStoreDecoder ¶
func (am AppModule) RegisterStoreDecoder(_ simtypes.StoreDecoderRegistry)
func (AppModule) WeightedOperations ¶
func (am AppModule) WeightedOperations(_ module.SimulationState) []simtypes.WeightedOperation
type AppModuleBasic ¶
type AppModuleBasic struct {
// contains filtered or unexported fields
}
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis(cdc codec.JSONCodec) json.RawMessage
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd() *cobra.Command
func (AppModuleBasic) GetTxCmd ¶
func (AppModuleBasic) GetTxCmd() *cobra.Command
func (AppModuleBasic) Name ¶
func (AppModuleBasic) Name() string
func (AppModuleBasic) RegisterGRPCGatewayRoutes ¶
func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
func (AppModuleBasic) RegisterInterfaces ¶
func (AppModuleBasic) RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func (AppModuleBasic) RegisterLegacyAminoCodec ¶
func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(cdc codec.JSONCodec, _ client.TxEncodingConfig, bz json.RawMessage) error
Click to show internal directories.
Click to hide internal directories.