gravity

package
v1.5.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StoreKey   = types.StoreKey
	RouteKey   = types.RouterKey
	ModuleName = types.ModuleName
)

Variables

View Source
var (
	NewKeeper  = k.NewKeeper
	NewQuerier = k.NewQuerier
)

Functions

func BatchSlashing

func BatchSlashing(ctx sdk.Context, k keeper.Keeper, params types.Params)

func EndBlocker

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

EndBlocker is called at the end of every block

func NewHandler

func NewHandler(k keeper.Keeper) sdk.Handler

NewHandler returns a handler for "Gravity" type messages.

func TestingEndBlocker

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

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

func ValsetSlashing

func ValsetSlashing(ctx sdk.Context, k keeper.Keeper, params types.Params)

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) Committer

func (m AppModule) Committer(ctx sdk.Context)

func (AppModule) EndBlock

EndBlock implements app module

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) Name

func (AppModule) Name() string

Name 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) Name

func (AppModuleBasic) Name() string

Name 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)

Directories

Path Synopsis
client
cli
Package types is a reverse proxy.
Package types is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL