gravity

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 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 BeginBlocker added in v1.6.47

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

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.

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 (am 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) 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 todo gogo protobuf encoding

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)

type Keeper added in v1.6.3

type Keeper = k.Keeper

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