Back to

Package expense

Latest Go to latest

The highest tagged major version is .

Published: Jun 21, 2020 | License: MPL-2.0 | Module:



const (
	ModuleName   = types.ModuleName
	RouterKey    = types.RouterKey
	StoreKey     = types.StoreKey
	QuerierRoute = types.QuerierRoute


var (
	NewKeeper     = keeper.NewKeeper
	NewQuerier    = keeper.NewQuerier
	ModuleCodec   = types.ModuleCodec
	RegisterCodec = types.RegisterCodec

func NewHandler

func NewHandler(keeper Keeper) sdk.Handler

Handles all messages coming in from the network (or locally) to the expense module. Messages could be from the blockchain or from the mempool. Essentially just a router to route messages to the right functions within the module.

type AppModule

type AppModule struct {
	// contains filtered or unexported fields

func NewAppModule

func NewAppModule(k Keeper) AppModule

NewAppModule creates a new AppModule Object

func (AppModule) BeginBlock

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

func (AppModule) EndBlock

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

func (AppModule) ExportGenesis

func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage

func (AppModule) InitGenesis

func (am AppModule) InitGenesis(_ sdk.Context, _ json.RawMessage) []abci.ValidatorUpdate

func (AppModule) Name

func (AppModule) Name() string

Return this module's name

func (AppModule) NewHandler

func (am AppModule) NewHandler() sdk.Handler

TODO Return a new handler

func (AppModule) NewQuerierHandler

func (am AppModule) NewQuerierHandler() sdk.Querier

func (AppModule) QuerierRoute

func (am AppModule) QuerierRoute() string

func (AppModule) RegisterInvariants

func (am AppModule) RegisterInvariants(_ sdk.InvariantRegistry)

func (AppModule) Route

func (am AppModule) Route() string

Return this module's name

type AppModuleBasic

type AppModuleBasic struct{}

app module Basics object

func (AppModuleBasic) DefaultGenesis

func (AppModuleBasic) DefaultGenesis() json.RawMessage

func (AppModuleBasic) GetQueryCmd

func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command

TODO: add CLI Get the root query command of this module

func (AppModuleBasic) GetTxCmd

func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command

TODO: add CLI Get the root tx command of this module

func (AppModuleBasic) Name

func (AppModuleBasic) Name() string

Returns this module's name

func (AppModuleBasic) RegisterCodec

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

func (AppModuleBasic) RegisterRESTRoutes

func (b AppModuleBasic) RegisterRESTRoutes(cliContext context.CLIContext, router *mux.Router)

func (AppModuleBasic) ValidateGenesis

func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error

type Expense

type Expense = types.Expense

type Keeper

type Keeper = keeper.Keeper

Package Files

  • alias.go
  • handlers.go
  • module.go
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier