cosmos-sdk: github.com/cosmos/cosmos-sdk/x/crisis Index | Files | Directories

package crisis

import "github.com/cosmos/cosmos-sdk/x/crisis"

Index

Package Files

abci.go handler.go module.go

Constants

const RouterKey = types.ModuleName

RouterKey

func EndBlocker Uses

func EndBlocker(ctx sdk.Context, k keeper.Keeper)

check all registered invariants

func NewHandler Uses

func NewHandler(k keeper.Keeper) sdk.Handler

type AppModule Uses

type AppModule struct {
    AppModuleBasic
    // contains filtered or unexported fields
}

AppModule implements an application module for the crisis module.

func NewAppModule Uses

func NewAppModule(keeper *keeper.Keeper) AppModule

NewAppModule creates a new AppModule object

func (AppModule) BeginBlock Uses

func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)

BeginBlock performs a no-op.

func (AppModule) EndBlock Uses

func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate

EndBlock returns the end blocker for the crisis module. It returns no validator updates.

func (AppModule) ExportGenesis Uses

func (am AppModule) ExportGenesis(ctx sdk.Context, cdc codec.JSONMarshaler) json.RawMessage

ExportGenesis returns the exported genesis state as raw bytes for the crisis module.

func (AppModule) InitGenesis Uses

func (am AppModule) InitGenesis(ctx sdk.Context, cdc codec.JSONMarshaler, data json.RawMessage) []abci.ValidatorUpdate

InitGenesis performs genesis initialization for the crisis module. It returns no validator updates.

func (AppModule) LegacyQuerierHandler Uses

func (AppModule) LegacyQuerierHandler(codec.JSONMarshaler) sdk.Querier

LegacyQuerierHandler returns no sdk.Querier.

func (AppModule) Name Uses

func (AppModule) Name() string

Name returns the crisis module's name.

func (AppModule) QuerierRoute Uses

func (AppModule) QuerierRoute() string

QuerierRoute returns no querier route.

func (AppModule) RegisterInvariants Uses

func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

RegisterInvariants performs a no-op.

func (AppModule) RegisterQueryService Uses

func (am AppModule) RegisterQueryService(grpc.Server)

RegisterQueryService registers a GRPC query service to respond to the module-specific GRPC queries.

func (AppModule) Route Uses

func (am AppModule) Route() sdk.Route

Route returns the message routing key for the crisis module.

type AppModuleBasic Uses

type AppModuleBasic struct{}

AppModuleBasic defines the basic application module used by the crisis module.

func (AppModuleBasic) DefaultGenesis Uses

func (AppModuleBasic) DefaultGenesis(cdc codec.JSONMarshaler) json.RawMessage

DefaultGenesis returns default genesis state as raw bytes for the crisis module.

func (AppModuleBasic) GetQueryCmd Uses

func (AppModuleBasic) GetQueryCmd() *cobra.Command

GetQueryCmd returns no root query command for the crisis module.

func (AppModuleBasic) GetTxCmd Uses

func (b AppModuleBasic) GetTxCmd() *cobra.Command

GetTxCmd returns the root tx command for the crisis module.

func (AppModuleBasic) Name Uses

func (AppModuleBasic) Name() string

Name returns the crisis module's name.

func (AppModuleBasic) RegisterCodec Uses

func (AppModuleBasic) RegisterCodec(cdc *codec.LegacyAmino)

RegisterCodec registers the crisis module's types for the given codec.

func (AppModuleBasic) RegisterInterfaces Uses

func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers interfaces and implementations of the crisis module.

func (AppModuleBasic) RegisterRESTRoutes Uses

func (AppModuleBasic) RegisterRESTRoutes(_ client.Context, _ *mux.Router)

RegisterRESTRoutes registers no REST routes for the crisis module.

func (AppModuleBasic) ValidateGenesis Uses

func (AppModuleBasic) ValidateGenesis(cdc codec.JSONMarshaler, config client.TxEncodingConfig, bz json.RawMessage) error

ValidateGenesis performs genesis state validation for the crisis module.

Directories

PathSynopsis
client/cli
keeper
types

Package crisis imports 17 packages (graph) and is imported by 20 packages. Updated 2020-08-13. Refresh now. Tools for package owners.