Documentation ¶
Index ¶
- Constants
- Variables
- func GenBookID(inp interface{}) (string, error)
- func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
- func NewHandler(keeper Keeper) sdk.Handler
- func ValidateGenesis(data GenesisState) error
- type AppModule
- func (am AppModule) BeginBlock(_ sdk.Context, _ abci.RequestBeginBlock)
- func (am AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
- func (am AppModule) ExportGenesis(ctx sdk.Context) json.RawMessage
- func (am AppModule) InitGenesis(ctx sdk.Context, data json.RawMessage) []abci.ValidatorUpdate
- func (AppModule) Name() string
- func (am AppModule) NewHandler() sdk.Handler
- func (am AppModule) NewQuerierHandler() sdk.Querier
- func (am AppModule) QuerierRoute() string
- func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
- func (am AppModule) Route() string
- type AppModuleBasic
- func (AppModuleBasic) DefaultGenesis() json.RawMessage
- func (AppModuleBasic) GetQueryCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) GetTxCmd(cdc *codec.Codec) *cobra.Command
- func (AppModuleBasic) Name() string
- func (AppModuleBasic) RegisterCodec(cdc *codec.Codec)
- func (AppModuleBasic) RegisterRESTRoutes(ctx context.CLIContext, rtr *mux.Router)
- func (AppModuleBasic) ValidateGenesis(bz json.RawMessage) error
- type Booking
- type GenesisState
- type Keeper
- type MsgBook
- type MsgBookComplete
- type QueryResNames
- type QueryResResolve
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 InitGenesis ¶ added in v1.1.0
func InitGenesis(ctx sdk.Context, keeper Keeper, data GenesisState)
func NewHandler ¶
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
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 (am AppModule) EndBlock(sdk.Context, abci.RequestEndBlock) []abci.ValidatorUpdate
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) NewHandler ¶ added in v1.1.0
func (AppModule) NewQuerierHandler ¶ added in v1.1.0
func (AppModule) QuerierRoute ¶ added in v1.1.0
func (AppModule) RegisterInvariants ¶ added in v1.1.0
func (am AppModule) RegisterInvariants(ir sdk.InvariantRegistry)
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 GenesisState ¶ added in v1.1.0
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 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
Click to show internal directories.
Click to hide internal directories.