Documentation ¶
Index ¶
- Constants
- Variables
- func BatchSlashing(ctx sdk.Context, k keeper.Keeper, params types.Params)
- func EndBlocker(ctx sdk.Context, k keeper.Keeper)
- func NewHandler(k keeper.Keeper) sdk.Handler
- func TestingEndBlocker(ctx sdk.Context, k keeper.Keeper)
- func ValsetSlashing(ctx sdk.Context, k keeper.Keeper, params types.Params)
- type AppModule
- func (m AppModule) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock)
- func (m AppModule) Committer(ctx sdk.Context)
- func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, bz json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) RegisterServices(cfg module.Configurator)
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis(validators []tmtypes.GenesisValidator) json.RawMessage
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(codec *codec.Codec)
- func (am AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
- func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)
Constants ¶
const ( StoreKey = types.StoreKey RouteKey = types.RouterKey ModuleName = types.ModuleName )
Variables ¶
var ( NewKeeper = k.NewKeeper NewQuerier = k.NewQuerier )
Functions ¶
func EndBlocker ¶
EndBlocker is called at the end of every block
func NewHandler ¶
NewHandler returns a handler for "Gravity" type messages.
func TestingEndBlocker ¶
TestingEndBlocker is a second endblocker function only imported in the Gravity codebase itself if you are a consuming Cosmos chain DO NOT IMPORT THIS, it simulates a chain using the arbitrary logic API to request logic calls
Types ¶
type AppModule ¶
type AppModule struct { AppModuleBasic Keeper keeper.Keeper AccKeeper account.AccountKeeper }
AppModule object for module implementation
func NewAppModule ¶
func NewAppModule(k keeper.Keeper, accKeeper account.AccountKeeper) AppModule
NewAppModule creates a new AppModule Object
func (AppModule) BeginBlocker ¶
func (m AppModule) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock)
func (AppModule) EndBlock ¶
func (am AppModule) EndBlock(ctx sdk.Context, _ abci.RequestEndBlock) []abci.ValidatorUpdate
EndBlock implements app module
func (AppModule) ExportGenesis ¶ added in v1.5.23
func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
// ExportGenesis exports the current genesis state to a json.RawMessage
func (AppModule) InitGenesis ¶
func (am AppModule) InitGenesis(ctx sdk.Context, bz json.RawMessage) []abci.ValidatorUpdate
InitGenesis initializes the genesis state for this module and implements app module.
func (AppModule) RegisterServices ¶
func (am AppModule) RegisterServices(cfg module.Configurator)
type AppModuleBasic ¶
type AppModuleBasic struct{}
AppModuleBasic object for module implementation
func (AppModuleBasic) DefaultGenesis ¶
func (AppModuleBasic) DefaultGenesis(validators []tmtypes.GenesisValidator) json.RawMessage
DefaultGenesis implements app module basic
func (AppModuleBasic) RegisterCodec ¶
func (AppModuleBasic) RegisterCodec(codec *codec.Codec)
func (AppModuleBasic) RegisterGRPCGatewayRoutes ¶
func (am AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux)
func (AppModuleBasic) RegisterInterfaces ¶
func (AppModuleBasic) RegisterInterfaces(registry codectypes.InterfaceRegistry)