booking

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName          = types.ModuleName
	RouterKey           = types.RouterKey
	StoreKey            = types.StoreKey
	QuerierRoute        = types.QuerierRoute
	TypeBookMsg         = types.TypeBookMsg
	TypeBookCompleteMsg = types.TypeBookCompleteMsg
)
View Source
const (
	EventTypeBookingStart    = "BookingStart"
	EventTypeBookingComplete = "BookingComplete"

	AttributeAmount    = "Amount"
	AttributeBookingID = "BookingId"
	AttributeUUID      = "UUID"
)

Variables

View Source
var (
	NewKeeper          = keeper.NewKeeper
	NewQuerier         = keeper.NewQuerier
	NewBookMsg         = types.NewMsgBook
	NewBookCompleteMsg = types.NewMsgComplete
	NewBooking         = types.NewBooking
	ModuleCdc          = types.ModuleCdc
	RegisterCodec      = types.RegisterCodec
)

Functions

func GenBookID added in v1.1.0

func GenBookID(inp interface{}) (string, error)

func InitGenesis added in v1.1.0

func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)

func NewHandler

func NewHandler(keeper Keeper) sdk.Handler

func ValidateGenesis added in v1.1.0

func ValidateGenesis(data GenesisState) error

Types

type AppModule added in v1.1.0

type AppModule struct {
	AppModuleBasic
	// contains filtered or unexported fields
}

func NewAppModule added in v1.1.0

func NewAppModule(k Keeper) AppModule

NewAppModule creates a new AppModule Object

func (AppModule) BeginBlock added in v1.1.0

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

func (AppModule) EndBlock added in v1.1.0

func (AppModule) ExportGenesis added in v1.1.0

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

func (AppModule) InitGenesis added in v1.1.0

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

func (AppModule) Name added in v1.1.0

func (AppModule) Name() string

func (AppModule) NewHandler added in v1.1.0

func (am AppModule) NewHandler() sdk.Handler

func (AppModule) NewQuerierHandler added in v1.1.0

func (am AppModule) NewQuerierHandler() sdk.Querier

func (AppModule) QuerierRoute added in v1.1.0

func (am AppModule) QuerierRoute() string

func (AppModule) RegisterInvariants added in v1.1.0

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

func (AppModule) Route added in v1.1.0

func (am AppModule) Route() string

type AppModuleBasic added in v1.1.0

type AppModuleBasic struct{}

app module Basics object

func (AppModuleBasic) DefaultGenesis added in v1.1.0

func (AppModuleBasic) DefaultGenesis() json.RawMessage

func (AppModuleBasic) GetQueryCmd added in v1.1.0

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

Get the root query command of this module

func (AppModuleBasic) GetTxCmd added in v1.1.0

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

Get the root tx command of this module

func (AppModuleBasic) Name added in v1.1.0

func (AppModuleBasic) Name() string

func (AppModuleBasic) RegisterCodec added in v1.1.0

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

func (AppModuleBasic) RegisterRESTRoutes added in v1.1.0

func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)

Register rest routes

func (AppModuleBasic) ValidateGenesis added in v1.1.0

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

Validation check of the Genesis

type Booking added in v1.1.0

type Booking = types.Booking

type GenesisState added in v1.1.0

type GenesisState struct {
	Bookings []types.Booking
}

func DefaultGenesisState added in v1.1.0

func DefaultGenesisState() GenesisState

func ExportGenesis added in v1.1.0

func ExportGenesis(ctx sdk.Context, k Keeper) GenesisState

func NewGenesisState added in v1.1.0

func NewGenesisState() GenesisState

type Keeper

type Keeper = keeper.Keeper

type MsgBook added in v1.1.0

type MsgBook = types.MsgBook

type MsgBookComplete added in v1.1.0

type MsgBookComplete = types.MsgComplete

type QueryResNames added in v1.1.0

type QueryResNames = types.QueryResNames

type QueryResResolve added in v1.1.0

type QueryResResolve = types.QueryResResolve

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

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