Documentation ¶
Index ¶
- Constants
- Variables
- func EndBlocker(ctx sdk.Context, keeper Keeper)
- func ExportGenesis(_ sdk.Context) types.GenesisState
- func InitGenesis(ctx sdk.Context, k Keeper, data types.GenesisState)
- type AppModule
- func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (AppModule) ExportGenesis(_ sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (AppModule) QuerierRoute() string
- func (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(_ json.RawMessage) error
- type Keeper
- type VersionInfo
Constants ¶
View Source
const ( ModuleName = types.ModuleName StoreKey = types.StoreKey RouterKey = types.RouterKey QuerierRoute = types.QuerierRoute DefaultParamspace = types.DefaultParamspace )
Variables ¶
View Source
var ( // functions aliases NewQuerier = keeper.NewQuerier NewKeeper = keeper.NewKeeper NewVersionInfo = types.NewVersionInfo NewAppUpgradeProposalHandler = keeper.NewAppUpgradeProposalHandler // variable aliases ModuleCdc = types.ModuleCdc EventTypeUpgradeAppVersion = types.EventTypeUpgradeAppVersion EventTypeUpgradeFailure = types.EventTypeUpgradeFailure AttributeKeyAppVersion = types.AttributeKeyAppVersion )
Functions ¶
func EndBlocker ¶
EndBlocker does signal maintenance in the end of block
func ExportGenesis ¶
func ExportGenesis(_ sdk.Context) types.GenesisState
ExportGenesis outputs genesis state
func InitGenesis ¶
func InitGenesis(ctx sdk.Context, k Keeper, data types.GenesisState)
InitGenesis builds the genesis version for first version
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic // contains filtered or unexported fields }
AppModule is a struct of app module
func NewAppModule ¶
NewAppModule creates a new AppModule object for upgrade module
func (AppModule) BeginBlock ¶
func (AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock is invoked on the end of each block
func (AppModule) ExportGenesis ¶
func (AppModule) ExportGenesis(_ sdk.Context) json.RawMessage
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
InitGenesis initializes module genesis
func (AppModule) NewQuerierHandler ¶
NewQuerierHandler returns module querier
func (AppModule) QuerierRoute ¶
QuerierRoute returns module querier route name
func (AppModule) RegisterInvariants ¶
func (AppModule) RegisterInvariants(_ sdk.InvariantRegistry)
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic is a struct of app module basics object
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis() json.RawMessage
DefaultGenesis returns default genesis state
func (AppModuleBasic) GetQueryCmd ¶
func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
GetQueryCmd gets the root query command of this module
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
RegisterCodec registers module codec
func (AppModuleBasic) RegisterRESTRoutes ¶
func (AppModuleBasic) RegisterRESTRoutes(_ context.CLIContext, _ *mux.Router)
func (AppModuleBasic) ValidateGenesis ¶
func (AppModuleBasic) ValidateGenesis(_ json.RawMessage) error
nolint
type VersionInfo ¶
type VersionInfo = types.VersionInfo
Source Files ¶
Click to show internal directories.
Click to hide internal directories.