keeper

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const QueryBooking = "booking"

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(keeper Keeper) sdk.Querier

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(cdc *codec.Codec, storeKey sdk.StoreKey, ask asset.Keeper, supplyKeeper supply.Keeper) Keeper

func (Keeper) DeleteBooking

func (k Keeper) DeleteBooking(ctx sdk.Context, bookID string)

func (Keeper) GetAsset

func (k Keeper) GetAsset(ctx sdk.Context, uuid string) asset.Asset

func (Keeper) GetBooking

func (k Keeper) GetBooking(ctx sdk.Context, bookID string) types.Booking

func (Keeper) GetBookingsIterator

func (k Keeper) GetBookingsIterator(ctx sdk.Context) sdk.Iterator

func (Keeper) IsBookingPresent

func (k Keeper) IsBookingPresent(ctx sdk.Context, bookID string) bool

func (Keeper) IterateBookings

func (k Keeper) IterateBookings(ctx sdk.Context, cb func(b types.Booking) bool)

func (Keeper) SendCoinsFromAccountToModule

func (k Keeper) SendCoinsFromAccountToModule(
	ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins,
) error

func (Keeper) SendCoinsFromModuleToAccount

func (k Keeper) SendCoinsFromModuleToAccount(
	ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins,
) error

func (Keeper) SetAssetStatus

func (k Keeper) SetAssetStatus(ctx sdk.Context, uuid string, status bool)

func (Keeper) SetBooking

func (k Keeper) SetBooking(ctx sdk.Context, bookID string, b types.Booking)

func (Keeper) SetBookingCompleted

func (k Keeper) SetBookingCompleted(ctx sdk.Context, bookID string)

Jump to

Keyboard shortcuts

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